Changeset 155
- Timestamp:
- 02/19/07 15:51:56 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/jni/resources/jre-stubs/java/lang/Class.java
r95 r155 20 20 // java.lang.reflect.AnnotatedElement 21 21 { 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 22 31 public String toString() {} 23 32 branches/jni/src/tioport/de/tionex/port/DModWriter.d
r142 r155 27 27 import tango.text.convert.Integer; 28 28 import tango.io.Stdout; 29 import tango.io.FileConst; 29 30 import tango.io.Console; 30 31 import tango.io.Buffer; … … 45 46 else { 46 47 if( cur.mName.length ){ 47 packagePath = cur.mName ~ pathSep~packagePath;48 packagePath = cur.mName ~FileConst.PathSeparatorString ~packagePath; 48 49 } 49 50 } … … 53 54 char[] filename; 54 55 if( aRootPath.length > 0 ){ 55 filename = aRootPath ~ pathSep;56 filename = aRootPath ~FileConst.PathSeparatorString; 56 57 } 57 58 if( packagePath.length > 0 ){ 58 filename ~= packagePath ~ pathSep;59 filename ~= packagePath ~FileConst.PathSeparatorString; 59 60 60 61 char[] dir =(new FilePath( filename )).asParent(); … … 806 807 } 807 808 808 const char pathSep = '/';809 809 const char[] dmoduleExtension = ".d"; 810 810 branches/jni/src/tioport/de/tionex/port/Refactorings.d
r142 r155 2340 2340 alias PartTraversVisitor.visit visit; 2341 2341 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 2342 2355 public this(){ 2343 2356 // add this to the dejavu.lang.Class … … 2433 2446 // add this 2434 2447 // 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 // ----------------------------- 2435 2471 PExprMethodCall mcall = new PExprMethodCall; 2436 2472 { … … 2463 2499 mcall.mArguments ~= ci; 2464 2500 } 2465 2466 2467 2501 } 2468 2502 }
