Class JavaInstanceField
java.lang.Object
com.ibm.dtfj.java.j9.JavaField
com.ibm.dtfj.java.j9.JavaInstanceField
- All Implemented Interfaces:
JavaField, JavaMember
-
Field Summary
Fields declared in class JavaField
_javaVM, ARRAY_PREFIX_SIGNATURE, BOOLEAN_SIGNATURE, BYTE_SIGNATURE, CHAR_SIGNATURE, DOUBLE_SIGNATURE, FLOAT_SIGNATURE, INTEGER_SIGNATURE, LONG_SIGNATURE, OBJECT_PREFIX_SIGNATURE, SHORT_SIGNATUREModifier and TypeFieldDescriptionprotected JavaRuntimeprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionJavaInstanceField(JavaRuntime vm, String name, String signature, int modifiers, int offset, long classID) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(JavaObject object) Get the contents of a boolean field.bytegetByte(JavaObject object) Get the contents of a byte field.chargetChar(JavaObject object) Get the contents of a char field.getReferenceType(JavaObject object) Methods declared in class JavaField
equals, get, getDeclaringClass, getDouble, getFloat, getInt, getLong, getModifiers, getName, getShort, getSignature, getString, hashCodeModifier and TypeMethodDescriptionbooleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.get(JavaObject object) Get the contents of an Object field.Get the class which declares this field or methoddoublegetDouble(JavaObject object) Get the contents of a double field.floatgetFloat(JavaObject object) Get the contents of a float field.intgetInt(JavaObject object) Get the contents of an int field.longgetLong(JavaObject object) Get the contents of a long field.intGet the set of modifiers for this field or method - a set of bitsgetName()Get the name of the field or methodshortgetShort(JavaObject object) Get the contents of a short field.Get the signature of the field or methodgetString(JavaObject hostObject) Get the contents of a string field.inthashCode()Answers an integer hash code for the receiver.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface JavaField
isNestedPacked, isNestedPackedArrayModifier and TypeMethodDescriptiondefault booleanDeprecated.default booleanDeprecated.
-
Constructor Details
-
JavaInstanceField
public JavaInstanceField(JavaRuntime vm, String name, String signature, int modifiers, int offset, long classID)
-
-
Method Details
-
getReferenceType
public Object getReferenceType(JavaObject object) throws CorruptDataException, MemoryAccessException -
getBoolean
Description copied from interface:JavaFieldGet the contents of a boolean field.- Parameters:
object- to fetch the field from. Ignored for static fields.- Returns:
- the field contents
- Throws:
CorruptDataExceptionMemoryAccessException
-
getByte
Description copied from interface:JavaFieldGet the contents of a byte field.- Parameters:
object- to fetch the field from. Ignored for static fields- Returns:
- the field contents
- Throws:
CorruptDataExceptionMemoryAccessException
-
getChar
Description copied from interface:JavaFieldGet the contents of a char field.- Parameters:
object- to fetch the field from. Ignored for static fields.- Returns:
- the field contents
- Throws:
CorruptDataExceptionMemoryAccessException
-