- java.lang.Object
-
- com.ibm.j9ddr.vm29.pointer.helper.J9ClassHelper
-
- Direct Known Subclasses:
J9ArrayClassHelper
public class J9ClassHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description J9ClassHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areExtensionsEnabled()
static J9ObjectFieldOffset
checkFieldOffsetCache(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, String fieldName, String signature)
static UDATA
classDepth(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static UDATA
classDepthAndFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static UDATA
classFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
currentClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static U32
extendedClassFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static String
formatFullInteractive(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static String
getArrayName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static Iterator<J9ObjectFieldOffset>
getFieldOffsets(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static int
getJavaLangClassModifiers(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
Returns class modifiers as returned from java.lang.Class.getModifiers()static String
getJavaName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer
getMethodFromPCAndClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer localClass, U8Pointer pc)
static String
getName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static int
getRawModifiers(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
Returns "raw" modifiersstatic String
getSignature(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
hasValidEyeCatcher(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
isAnonymousClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
isArrayClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
isObsolete(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class)
static boolean
isRefOrValSignature(char firstChar)
Queries if a given char is the first character of a reference or value type signature.static boolean
isSameOrSuperClassOf(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer superClazz, com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static boolean
isSwappedOut(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static UDATAPointer
oldVTable(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static void
setFieldOffsetCache(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, J9ObjectFieldOffset offset, String fieldName, String signature)
static UDATA
size(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm)
static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer
superclass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
static UDATAPointer
vTable(com.ibm.j9ddr.vm29.pointer.generated.J9VTableHeaderPointer vTableHeader)
static com.ibm.j9ddr.vm29.pointer.generated.J9VTableHeaderPointer
vTableHeader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
-
-
Method Detail
-
isArrayClass
public static boolean isArrayClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
getName
public static String getName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
getSignature
public static String getSignature(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
getArrayName
public static String getArrayName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
getJavaName
public static String getJavaName(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
formatFullInteractive
public static String formatFullInteractive(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
getFieldOffsets
public static Iterator<J9ObjectFieldOffset> getFieldOffsets(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
superclass
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer superclass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
checkFieldOffsetCache
public static J9ObjectFieldOffset checkFieldOffsetCache(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, String fieldName, String signature)
-
setFieldOffsetCache
public static void setFieldOffsetCache(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, J9ObjectFieldOffset offset, String fieldName, String signature)
-
isSameOrSuperClassOf
public static boolean isSameOrSuperClassOf(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer superClazz, com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
vTableHeader
public static com.ibm.j9ddr.vm29.pointer.generated.J9VTableHeaderPointer vTableHeader(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
vTable
public static UDATAPointer vTable(com.ibm.j9ddr.vm29.pointer.generated.J9VTableHeaderPointer vTableHeader)
-
oldVTable
public static UDATAPointer oldVTable(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
-
size
public static UDATA size(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm) throws CorruptDataException
- Throws:
CorruptDataException
-
getJavaLangClassModifiers
public static int getJavaLangClassModifiers(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
Returns class modifiers as returned from java.lang.Class.getModifiers()- Parameters:
j9class
- Class to get modifiers for- Returns:
- Modifier flags, as returned from java.lang.Class.getModifiers()
- Throws:
CorruptDataException
-
getRawModifiers
public static int getRawModifiers(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
Returns "raw" modifiers- Parameters:
j9class
-- Returns:
- Throws:
CorruptDataException
-
classDepthAndFlags
public static UDATA classDepthAndFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
classDepth
public static UDATA classDepth(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
extendedClassFlags
public static U32 extendedClassFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
classFlags
public static UDATA classFlags(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
isObsolete
public static boolean isObsolete(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
currentClass
public static com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer currentClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer j9class) throws CorruptDataException
- Throws:
CorruptDataException
-
getMethodFromPCAndClass
public static com.ibm.j9ddr.vm29.pointer.generated.J9MethodPointer getMethodFromPCAndClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer localClass, U8Pointer pc) throws CorruptDataException
- Throws:
CorruptDataException
-
isSwappedOut
public static boolean isSwappedOut(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
hasValidEyeCatcher
public static boolean hasValidEyeCatcher(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
areExtensionsEnabled
public static boolean areExtensionsEnabled() throws CorruptDataException
- Throws:
CorruptDataException
-
isAnonymousClass
public static boolean isAnonymousClass(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz) throws CorruptDataException
- Throws:
CorruptDataException
-
isRefOrValSignature
public static boolean isRefOrValSignature(char firstChar)
Queries if a given char is the first character of a reference or value type signature. Equivalent to J9's IS_REF_OR_VAL_SIGNATURE macro.- Parameters:
firstChar
- the first character of the signature being checked- Returns:
- true if the character indicates the beginning of a reference or value signature, false otherwise
-
-