Changeset 155

Show
Ignore:
Timestamp:
02/19/07 15:51:56 (2 years ago)
Author:
keinfarbton
Message:

...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/jni/resources/jre-stubs/java/lang/Class.java

    r95 r155  
    2020//                              java.lang.reflect.AnnotatedElement  
    2121{ 
     22    /// for internal class registration in tioported programs 
     23    public void regField( Field field ){} 
     24    /// for internal class registration in tioported programs 
     25    public void regConstructor( Constructor ctor ){} 
     26    /// for internal class registration in tioported programs 
     27    public void regMethod( Method method ){} 
     28    /// for internal class registration in tioported programs 
     29    public static Class regClass( ClassInfo aClassInfo ){} 
     30 
    2231    public String toString() {} 
    2332 
  • branches/jni/src/tioport/de/tionex/port/DModWriter.d

    r142 r155  
    2727import tango.text.convert.Integer; 
    2828import tango.io.Stdout; 
     29import tango.io.FileConst; 
    2930import tango.io.Console; 
    3031import tango.io.Buffer; 
     
    4546        else { 
    4647            if( cur.mName.length ){ 
    47                 packagePath = cur.mName ~pathSep ~packagePath; 
     48                packagePath = cur.mName ~FileConst.PathSeparatorString ~packagePath; 
    4849            } 
    4950        } 
     
    5354    char[]        filename; 
    5455    if( aRootPath.length > 0 ){ 
    55         filename = aRootPath ~pathSep
     56        filename = aRootPath ~FileConst.PathSeparatorString
    5657    } 
    5758    if( packagePath.length > 0 ){ 
    58         filename ~= packagePath ~pathSep
     59        filename ~= packagePath ~FileConst.PathSeparatorString
    5960 
    6061        char[] dir =(new FilePath( filename )).asParent(); 
     
    806807    } 
    807808 
    808     const char   pathSep          = '/'; 
    809809    const char[] dmoduleExtension = ".d"; 
    810810 
  • branches/jni/src/tioport/de/tionex/port/Refactorings.d

    r142 r155  
    23402340    alias      PartTraversVisitor.visit visit; 
    23412341    PMethodDef mRegFunc; 
     2342 
     2343    PClassDef  mClassClass; 
     2344    PMethodDef mMethRegClass; 
     2345    PMethodDef mMethRegField; 
     2346    PMethodDef mMethRegMethod; 
     2347    PMethodDef mMethRegCtor; 
     2348 
     2349    PClassDef  mClassField; 
     2350    PCtor      mFieldCtor; 
     2351 
     2352    PClassDef  mClassMethod; 
     2353    PCtor      mCtorMethod; 
     2354 
    23422355    public this(){ 
    23432356        // add this to the dejavu.lang.Class 
     
    24332446        // add this 
    24342447        // dejavu.lang.Class.Class.dejavu_registerClass( "fqn", fqn.classinfo, &fqn.dejavu_classNewInstance ); 
     2448 
     2449        // ----------------------------- 
     2450        // Class clazz = dejavu.lang.Class.Class.regClass( fqn.classinfo ); 
     2451        // ----------------------------- 
     2452        // clazz.regField( new dejavu.lang.reflect.Field( 
     2453        //   /* declaring class      */ clazz, 
     2454        //   /* field name           */ new String( w"fieldname" ), 
     2455        //   /* type class           */ null, 
     2456        //   /* modifiers            */ 0, 
     2457        //   /* slot                 */ fieldname.offsetof, 
     2458        //   /* signature            */ new String( w"I" ), 
     2459        //   /* annotations          */ null ); 
     2460        // // ----------------------------- 
     2461        // // clazz.addCtor( new dejavu.lang.reflect.Constructor( 
     2462        // //   /* declaring class      */ clazz, 
     2463        // //   /* parameterTypes       */ null, 
     2464        // //   /* checkedExceptions    */ null,  
     2465        // //   /* modifiers            */ 0, 
     2466        // //   /* slot                 */ 0, 
     2467        // //   /* signature            */ new String( w"" ), 
     2468        // //   /* annotations          */ null, 
     2469        // //   /* parameterAnnotations */ null )); 
     2470        // ----------------------------- 
    24352471        PExprMethodCall mcall = new PExprMethodCall; 
    24362472        { 
     
    24632499            mcall.mArguments ~= ci; 
    24642500        } 
    2465  
    2466  
    24672501    } 
    24682502}