Module openj9.dtfj

Class J9ClassHelper

    • 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" modifiers
      static 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)  
    • Constructor Detail

      • J9ClassHelper

        public J9ClassHelper()
    • Method Detail

      • formatFullInteractive

        public static String formatFullInteractive​(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz)
      • 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)
      • 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
      • 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
      • 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