Class DTFJJavaField
java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaField
- All Implemented Interfaces:
JavaField
,JavaMember
,IDTFJJavaField
- Direct Known Subclasses:
DTFJJavaFieldInstance
,DTFJJavaFieldStatic
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Class<?>[]
protected DTFJJavaClass
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected final J9ObjectFieldOffset
protected final com.ibm.j9ddr.vm29.pointer.generated.J9ROMFieldShapePointer
protected int
protected final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
checkDataTypeConversion
(DTFJJavaObject object, int mask) boolean
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Get the class which declares this field or methodint
Get the set of modifiers for this field or method - a set of bitsgetName()
Get the name of the field or methodprotected char
Get the signature of the field or methodint
hashCode()
Answers an integer hash code for the receiver.protected boolean
isAncestorOf
(JavaClass theClass) Function to check that the supplied class is an ancestor of this oneprotected DTFJJavaObject
validateJavaObject
(JavaObject object) Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface com.ibm.dtfj.java.JavaField
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, getString, isNestedPacked, isNestedPackedArray
-
Field Details
-
allowlist
-
FIELD_BOOLEAN
protected static final int FIELD_BOOLEAN- See Also:
-
FIELD_BYTE
protected static final int FIELD_BYTE- See Also:
-
FIELD_SHORT
protected static final int FIELD_SHORT- See Also:
-
FIELD_CHAR
protected static final int FIELD_CHAR- See Also:
-
FIELD_INTEGER
protected static final int FIELD_INTEGER- See Also:
-
FIELD_FLOAT
protected static final int FIELD_FLOAT- See Also:
-
FIELD_LONG
protected static final int FIELD_LONG- See Also:
-
FIELD_DOUBLE
protected static final int FIELD_DOUBLE- See Also:
-
FIELD_ARRAY
protected static final int FIELD_ARRAY- See Also:
-
FIELD_OBJECT
protected static final int FIELD_OBJECT- See Also:
-
j9field
protected final com.ibm.j9ddr.vm29.pointer.generated.J9ROMFieldShapePointer j9field -
fieldOffset
-
name
-
clazz
-
modifiers
protected int modifiers
-
-
Constructor Details
-
DTFJJavaField
- Throws:
CorruptDataException
-
-
Method Details
-
getSigFlag
- Throws:
CorruptDataException
-
validateJavaObject
- Throws:
CorruptDataException
-
checkDataTypeConversion
- Throws:
CorruptDataException
-
isAncestorOf
Function to check that the supplied class is an ancestor of this one- Parameters:
theClass
-- Returns:
-
getDeclaringClass
Description copied from interface:JavaMember
Get the class which declares this field or method- Specified by:
getDeclaringClass
in interfaceJavaMember
- Returns:
- the JavaClass which declared this field or method
- Throws:
CorruptDataException
DataUnavailable
-
getModifiers
Description copied from interface:JavaMember
Get the set of modifiers for this field or method - a set of bits- Specified by:
getModifiers
in interfaceJavaMember
- Returns:
- the modifiers for this field or method. The values for the constants representing the modifiers can be obtained from java.lang.reflect.Modifier.
- Throws:
CorruptDataException
-
getName
Description copied from interface:JavaMember
Get the name of the field or method- Specified by:
getName
in interfaceJavaMember
- Returns:
- the name of the field or method
- Throws:
CorruptDataException
-
getSignature
Description copied from interface:JavaMember
Get the signature of the field or method- Specified by:
getSignature
in interfaceIDTFJJavaField
- Specified by:
getSignature
in interfaceJavaMember
- Returns:
- the signature of the field or method. e.g. "(Ljava/lang/String;)V"
- Throws:
CorruptDataException
-
equals
Description copied from class:java.lang.Object
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Specified by:
equals
in interfaceJavaMember
- Overrides:
equals
in classObject
- Parameters:
obj
-- Returns:
- True if the given object refers to the same Java Member in the image
- See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.Object
Answers an integer hash code for the receiver. Any two objects which answertrue
when passed to.equals
must answer the same value for this method.- Specified by:
hashCode
in interfaceJavaMember
- Overrides:
hashCode
in classObject
- Returns:
- the receiver's hash.
- See Also:
-