Methods Summary |
---|
public static com.sun.cldchi.test.Reflect | get(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)
Reflect r = new Reflect();
r.obj = getStaticField(iso.id(), className, fieldName);
return r;
|
private native boolean | getBooleanField(java.lang.Object obj, java.lang.String fieldName)
|
public boolean | getBooleanValue(java.lang.String fieldName)
return getBooleanField(this.obj, fieldName);
|
public com.sun.cldchi.test.Reflect | getField(java.lang.String fieldName)
Reflect r = new Reflect();
r.obj = getInstanceField(this.obj, fieldName);
return r;
|
private native java.lang.Object | getInstanceField(java.lang.Object obj, java.lang.String fieldName)
|
private native int | getIntField(java.lang.Object obj, java.lang.String fieldName)
|
public int | getIntValue(java.lang.String fieldName)
return getIntField(this.obj, fieldName);
|
public java.lang.Object | getObjectValue()
return this.obj;
|
private static native boolean | getStaticBooleanField(int taskId, java.lang.String className, java.lang.String fieldName)
|
public static boolean | getStaticBooleanValue(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)
return getStaticBooleanField(iso.id(), className, fieldName);
|
private static native java.lang.Object | getStaticField(int taskId, java.lang.String className, java.lang.String fieldName)
|
private static native int | getStaticIntField(int taskId, java.lang.String className, java.lang.String fieldName)
|
public static int | getStaticIntValue(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)
return getStaticIntField(iso.id(), className, fieldName);
|
public static java.lang.String | getStaticStringValue(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)
return (String)(getStaticField(iso.id(), className, fieldName));
|
public java.lang.String | getStringValue(java.lang.String fieldName)
return (String)getInstanceField(this.obj, fieldName);
|