Save This Page
Home » openjdk-7 » java » lang » reflect » [javadoc | source]
java.lang.reflect
final class: VMField [javadoc | source]
java.lang.Object
   java.lang.reflect.VMField
Method from java.lang.reflect.VMField Summary:
getBoolean,   getByte,   getChar,   getDouble,   getFloat,   getInt,   getLong,   getObject,   getShort,   setBoolean,   setByte,   setChar,   setDouble,   setFloat,   setInt,   setLong,   setObject,   setShort
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.reflect.VMField Detail:
 static native boolean getBoolean(Object object,
    long field_id)
 static native byte getByte(Object object,
    long field_id)
 static native char getChar(Object object,
    long field_id)
 static native double getDouble(Object object,
    long field_id)
 static native float getFloat(Object object,
    long field_id)
 static native int getInt(Object object,
    long field_id)
 static native long getLong(Object object,
    long field_id)
 static native Object getObject(Object object,
    long field_id)
    Obtaines a value of the field with specified identifier. If the id argument corresponds to a static field then the object argument must be null. The value of a static field will be returned in this case. If the id argument corresponds to non-static field then object's field value will be returned.

    This method is used for the Field.get(Object obj) method implementation.

 static native short getShort(Object object,
    long field_id)
 static native  void setBoolean(Object object,
    long field_id,
    boolean value)
 static native  void setByte(Object object,
    long field_id,
    byte value)
 static native  void setChar(Object object,
    long field_id,
    char value)
 static native  void setDouble(Object object,
    long field_id,
    double value)
 static native  void setFloat(Object object,
    long field_id,
    float value)
 static native  void setInt(Object object,
    long field_id,
    int value)
 static native  void setLong(Object object,
    long field_id,
    long value)
 static native  void setObject(Object object,
    long field_id,
    Object value)
    Sets a value for the field with specified identifier. If the id argument corresponds to a static field then the object argument must be null. An attempt to set a new value to a static field will be made in this case. If the id argument corresponds to a non-static field then an attempt to assign new value to object's field will be made.

    This method is used for the Object) obj, Object value) method implementation.

 static native  void setShort(Object object,
    long field_id,
    short value)