- java.lang.Object
-
- com.ibm.dtfj.java.j9.JavaObject
-
- All Implemented Interfaces:
JavaObject
public class JavaObject extends Object implements JavaObject
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ARRAY_PREFIX_SIGNATURE
protected static String
BOOLEAN_SIGNATURE
protected static String
BYTE_SIGNATURE
protected static String
CHAR_SIGNATURE
protected static String
DOUBLE_SIGNATURE
protected static String
FLOAT_SIGNATURE
protected static String
INTEGER_SIGNATURE
protected static String
LONG_SIGNATURE
protected static String
OBJECT_PREFIX_SIGNATURE
protected static String
SHORT_SIGNATURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JavaObject
createJavaObject(JavaRuntime vm, ImagePointer address)
Deprecated.UseJavaRuntime.getObjectAtAddress(ImagePointer)
insteadstatic JavaObject
createJavaObject(JavaRuntime vm, ImagePointer address, JavaHeap containingHeap, JavaHeapRegion containingRegion)
Deprecated.UseJavaRuntime#getObjectInHeapRegion(ImagePointer,JavaHeap,JavaHeapRegion)
insteadJavaClass
getAssociatedClass()
JavaClassLoader
getAssociatedClassLoader()
JavaMonitor
getAssociatedMonitor()
JavaThread
getAssociatedThread()
ImagePointer
getFObjectAtOffset(int offset)
int
getFObjectSize()
A method required for the JavaArrayClass so it can ask the instance it is trying to size how big reference fields are in its heapboolean
isArraylet()
boolean
isClass()
boolean
isClassLoader()
boolean
isMonitor()
boolean
isThread()
void
setAssociatedClass(JavaClass associatedClass)
void
setAssociatedClassLoader(JavaClassLoader associatedClassLoader)
void
setAssociatedMonitor(JavaMonitor associatedMonitor)
void
setAssociatedThread(JavaThread associatedThread)
-
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.JavaObject
arraycopy, equals, getArraySize, getHashcode, getHeap, getID, getJavaClass, getPersistentHashcode, getReferences, getSections, getSize, hashCode, isArray
-
-
-
-
Field Detail
-
BOOLEAN_SIGNATURE
protected static final String BOOLEAN_SIGNATURE
- See Also:
- Constant Field Values
-
BYTE_SIGNATURE
protected static final String BYTE_SIGNATURE
- See Also:
- Constant Field Values
-
CHAR_SIGNATURE
protected static final String CHAR_SIGNATURE
- See Also:
- Constant Field Values
-
SHORT_SIGNATURE
protected static final String SHORT_SIGNATURE
- See Also:
- Constant Field Values
-
INTEGER_SIGNATURE
protected static final String INTEGER_SIGNATURE
- See Also:
- Constant Field Values
-
LONG_SIGNATURE
protected static final String LONG_SIGNATURE
- See Also:
- Constant Field Values
-
FLOAT_SIGNATURE
protected static final String FLOAT_SIGNATURE
- See Also:
- Constant Field Values
-
DOUBLE_SIGNATURE
protected static final String DOUBLE_SIGNATURE
- See Also:
- Constant Field Values
-
ARRAY_PREFIX_SIGNATURE
protected static final String ARRAY_PREFIX_SIGNATURE
- See Also:
- Constant Field Values
-
OBJECT_PREFIX_SIGNATURE
protected static final String OBJECT_PREFIX_SIGNATURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
createJavaObject
@Deprecated public static JavaObject createJavaObject(JavaRuntime vm, ImagePointer address) throws CorruptDataException
Deprecated.UseJavaRuntime.getObjectAtAddress(ImagePointer)
instead- Throws:
CorruptDataException
-
createJavaObject
@Deprecated public static JavaObject createJavaObject(JavaRuntime vm, ImagePointer address, JavaHeap containingHeap, JavaHeapRegion containingRegion) throws CorruptDataException
Deprecated.UseJavaRuntime#getObjectInHeapRegion(ImagePointer,JavaHeap,JavaHeapRegion)
instead- Throws:
CorruptDataException
-
isArraylet
public boolean isArraylet()
-
getFObjectAtOffset
public ImagePointer getFObjectAtOffset(int offset) throws MemoryAccessException, CorruptDataException
-
getFObjectSize
public int getFObjectSize()
A method required for the JavaArrayClass so it can ask the instance it is trying to size how big reference fields are in its heap- Returns:
- The size of fj9object_t in the heap containing this instance
-
isClass
public boolean isClass()
-
isMonitor
public boolean isMonitor()
-
isThread
public boolean isThread()
-
isClassLoader
public boolean isClassLoader()
-
getAssociatedClass
public JavaClass getAssociatedClass()
- Returns:
- the associatedClass
-
setAssociatedClass
public void setAssociatedClass(JavaClass associatedClass)
- Parameters:
associatedClass
- the associatedClass to set
-
getAssociatedMonitor
public JavaMonitor getAssociatedMonitor()
- Returns:
- the associatedMonitor
-
setAssociatedMonitor
public void setAssociatedMonitor(JavaMonitor associatedMonitor)
- Parameters:
associatedMonitor
- the associatedMonitor to set
-
getAssociatedThread
public JavaThread getAssociatedThread()
- Returns:
- the associatedThread
-
setAssociatedThread
public void setAssociatedThread(JavaThread associatedThread)
- Parameters:
associatedThread
- the associatedThread to set
-
getAssociatedClassLoader
public JavaClassLoader getAssociatedClassLoader()
- Returns:
- the associatedClassLoader
-
setAssociatedClassLoader
public void setAssociatedClassLoader(JavaClassLoader associatedClassLoader)
- Parameters:
associatedClassLoader
- the associatedClassLoader to set
-
-