[Nice-commit] Nice/stdlib/nice/lang native.nice,1.8,1.9 java.nice,1.54,1.55
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-07-31 10:06:06
|
Update of /cvsroot/nice/Nice/stdlib/nice/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28558/stdlib/nice/lang Modified Files: native.nice java.nice Log Message: Cleanup, using the new Class<T> handling since bootstrap. (This means one needs a recent development version to bootstrap) Index: java.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/java.nice,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** java.nice 30 Jul 2004 19:08:43 -0000 1.54 --- java.nice 31 Jul 2004 10:05:56 -0000 1.55 *************** *** 41,56 **** Process exec(Runtime, String[]) = native Process Runtime.exec(String[]); ! // Class classForName(String name) = native Class Class.forName(String); ! // Field[] getFields(Class) = native Field[] Class.getFields(); ! // Method[] getMethods(Class) = native Method[] Class.getMethods(); - /*TBD*/<T> Method getMethod(Class<T>, String, ?(Class<Object>[])) = native Method[] Class.getMethod(String, Class[]); - /*TBD*/<T> String getName(Class<T>) = native String Class.getName(); <T, V> V get(Field, T) = native Object Field.get(Object); <T, V> void set(Field, T, V) = native void Field.set(Object, Object); String getName(Field) = native String Field.getName(); - // Class getType(Field) = native Class Field.getType(); - /*TBD*/<T> java.net.URL getResource(Class<T>, String) = native java.net.URL Class.getResource(String); - <T> T newInstance(Class<T>) = native Object Class.newInstance(); String concat(String, String) = native String String.concat(String); --- 41,53 ---- Process exec(Runtime, String[]) = native Process Runtime.exec(String[]); ! Class classForName(String name) = native Class Class.forName(String); ! Field[] getFields(Class) = native Field[] Class.getFields(); ! Method[] getMethods(Class) = native Method[] Class.getMethods(); ! Class getType(Field) = native Class Field.getType(); ! <T> T newInstance(Class<T>) = native Object Class.newInstance(); <T, V> V get(Field, T) = native Object Field.get(Object); <T, V> void set(Field, T, V) = native void Field.set(Object, Object); String getName(Field) = native String Field.getName(); String concat(String, String) = native String String.concat(String); Index: native.nice =================================================================== RCS file: /cvsroot/nice/Nice/stdlib/nice/lang/native.nice,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** native.nice 30 Jul 2004 19:08:43 -0000 1.8 --- native.nice 31 Jul 2004 10:05:56 -0000 1.9 *************** *** 29,35 **** <T,U> boolean `instanceof`(T value, Class<U>) = inline nice.lang.inline.Instanceof(); - - <T> boolean `instanceof`(T value, Type) = - inline nice.lang.inline.Instanceof(); - - <T> Class<T> `class`(Type) = inline nice.lang.inline.Class(); --- 29,30 ---- |