| java.lang.Object java.lang.reflect.VMField
VMField | final class VMField (Code) | | |
Method Summary | |
native static boolean | getBoolean(Object object, long field_id) | native static byte | getByte(Object object, long field_id) | native static char | getChar(Object object, long field_id) | native static double | getDouble(Object object, long field_id) | native static float | getFloat(Object object, long field_id) | native static int | getInt(Object object, long field_id) | native static long | getLong(Object object, long field_id) | native static Object | getObject(Object object, long field_id) Obtaines a value of the field with specified identifier. | native static short | getShort(Object object, long field_id) | native static void | setBoolean(Object object, long field_id, boolean value) | native static void | setByte(Object object, long field_id, byte value) | native static void | setChar(Object object, long field_id, char value) | native static void | setDouble(Object object, long field_id, double value) | native static void | setFloat(Object object, long field_id, float value) | native static void | setInt(Object object, long field_id, int value) | native static void | setLong(Object object, long field_id, long value) | native static void | setObject(Object object, long field_id, Object value) Sets a value for the field with specified identifier. | native static void | setShort(Object object, long field_id, short value) |
getBoolean | native static boolean getBoolean(Object object, long field_id)(Code) | | |
getByte | native static byte getByte(Object object, long field_id)(Code) | | |
getChar | native static char getChar(Object object, long field_id)(Code) | | |
getDouble | native static double getDouble(Object object, long field_id)(Code) | | |
getFloat | native static float getFloat(Object object, long field_id)(Code) | | |
getInt | native static int getInt(Object object, long field_id)(Code) | | |
getLong | native static long getLong(Object object, long field_id)(Code) | | |
getObject | native static Object getObject(Object object, long field_id)(Code) | | 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) Field.get(Object obj) method implementation.
Parameters: object - the object to get a field value from. Parameters: id - an identifier of the caller class. a value of the object. The values of primitive type are wrappedby corresponding object from the java.lang package. throws: ExceptionInInitializerError - if initialization fails. |
getShort | native static short getShort(Object object, long field_id)(Code) | | |
setBoolean | native static void setBoolean(Object object, long field_id, boolean value)(Code) | | |
setByte | native static void setByte(Object object, long field_id, byte value)(Code) | | |
setChar | native static void setChar(Object object, long field_id, char value)(Code) | | |
setDouble | native static void setDouble(Object object, long field_id, double value)(Code) | | |
setFloat | native static void setFloat(Object object, long field_id, float value)(Code) | | |
setInt | native static void setInt(Object object, long field_id, int value)(Code) | | |
setLong | native static void setLong(Object object, long field_id, long value)(Code) | | |
setObject | native static void setObject(Object object, long field_id, Object value)(Code) | | 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
Field.set(ObjectObject)Field.set(Object obj, Object value) method implementation.
Parameters: object - the object to set a field value in. Parameters: id - an identifier of the caller class. Parameters: value - a new field value. If the field has primitive type then thevalue argument should be unwrapped. throws: ExceptionInInitializerError - if initialization fails. |
setShort | native static void setShort(Object object, long field_id, short value)(Code) | | |
|
|