Module openj9.dtfj

Class JCJavaClass

    • Method Detail

      • getModifiers

        public int getModifiers()
                         throws CorruptDataException
        Description copied from interface: JavaClass
        Return the Java language modifiers for this class.

        The modifiers are defined by the JVM Specification.

        Return MODIFIERS_UNAVAILABLE if the modifiers are unavailable. This might be the case if DTFJ is operating against an artefact such as a portable heap dump that does not contain information about a class's modifiers.

        Note that, for inner classes, the actual modifiers are returned, not the synthetic modifiers. For instance, a class will never have its 'protected' modifier set, even if the inner class was a protected member, since 'protected' is not a legal modifier for a class file.

        Specified by:
        getModifiers in interface JavaClass
        Returns:
        the modifiers for this class
        Throws:
        CorruptDataException - if modifiers not set
        See Also:
        JavaClass.getModifiers()
      • setID

        public void setID​(long classID)
                   throws JCInvalidArgumentsException
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        classID - which is a valid hexadecimal address
        Throws:
        JCInvalidArgumentsException - if invalid address is passed as an ID
      • internalGetName

        public String internalGetName()
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Returns:
        class Name
      • setClassLoader

        public void setClassLoader​(JavaClassLoader classLoader)
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        classLoader -
      • setJavaSuperClass

        public void setJavaSuperClass​(long superClassID)
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        superClassID -
      • setJavaObject

        public void setJavaObject​(JavaObject javaObject)
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        javaObject -
      • setModifiers

        public void setModifiers​(int modifiers)
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        java - class modifiers
      • addMethod

        public void addMethod​(JavaMethod method)
        NON-DTFJ
        For internal building purposes only. Do not call outside the DTFJ implementation.

        Parameters:
        java - method - a method declared by this class