FileDocCategorySizeDatePackage
Reflect.javaAPI DocphoneME MR2 API (J2ME)3139Wed May 02 17:59:54 BST 2007com.sun.cldchi.test

Reflect

public class Reflect extends Object

Fields Summary
private Object
obj
Constructors Summary
private Reflect()

        obj = new Object();
    
Methods Summary
public static com.sun.cldchi.test.Reflectget(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 booleangetBooleanField(java.lang.Object obj, java.lang.String fieldName)

public booleangetBooleanValue(java.lang.String fieldName)

        return getBooleanField(this.obj, fieldName);
    
public com.sun.cldchi.test.ReflectgetField(java.lang.String fieldName)

        Reflect r = new Reflect();
        r.obj = getInstanceField(this.obj, fieldName);
        return r;
    
private native java.lang.ObjectgetInstanceField(java.lang.Object obj, java.lang.String fieldName)

private native intgetIntField(java.lang.Object obj, java.lang.String fieldName)

public intgetIntValue(java.lang.String fieldName)

        return getIntField(this.obj, fieldName);
    
public java.lang.ObjectgetObjectValue()

        return this.obj;
    
private static native booleangetStaticBooleanField(int taskId, java.lang.String className, java.lang.String fieldName)

public static booleangetStaticBooleanValue(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.ObjectgetStaticField(int taskId, java.lang.String className, java.lang.String fieldName)

private static native intgetStaticIntField(int taskId, java.lang.String className, java.lang.String fieldName)

public static intgetStaticIntValue(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)

        return getStaticIntField(iso.id(), className, fieldName);
    
public static java.lang.StringgetStaticStringValue(com.sun.cldc.isolate.Isolate iso, java.lang.String className, java.lang.String fieldName)

        return (String)(getStaticField(iso.id(), className, fieldName));
    
public java.lang.StringgetStringValue(java.lang.String fieldName)

        return (String)getInstanceField(this.obj, fieldName);