Interface ClassInfo

    • Method Detail

      • majorVersion

        int majorVersion()
        Gets the class file's major version.
        Returns:
        the class file's major version.
      • minorVersion

        int minorVersion()
        Gets the class file's minor version.
        Returns:
        the class file's minor version.
      • resolveConstant

        <T extends Constant> T resolveConstant​(int index,
                                               java.lang.Class<T> type)
                                        throws java.io.IOException
        Resolves a constant from the class file's constant pool.
        Type Parameters:
        T - the actual type of the constant to resolve.
        Parameters:
        index - the constant pool index to resolve.
        type - the type of the constant to resolve.
        Returns:
        the resolved constant.
        Throws:
        java.io.IOException - if the constant cannot be resolved.
      • resolveRuntimeSymbol

        java.lang.String resolveRuntimeSymbol​(int index)
        Resolves a run-time constant pool index to it's corresponding symbol.
        Parameters:
        index - the run-time constant pool index to resolve.
        Returns:
        the resolved symbol.
      • accessFlags

        int accessFlags()
        Gets the class' access flags.
        Returns:
        the class' access flags.
      • thisClass

        ClassName thisClass()
        Gets the class' name.
        Returns:
        the class' name.
      • superClass

        ClassName superClass()
        Gets the class' super class.
        Returns:
        the class' super class.
      • interfaces

        java.util.List<ClassName> interfaces()
        Gets the class' super interfaces.
        Returns:
        the class' super interfaces.
      • fields

        java.util.List<FieldInfo> fields()
        Gets the class' field informations.
        Returns:
        the class' field informations.
      • methods

        java.util.List<MethodInfo> methods()
        Gets the class' method informations.
        Returns:
        the class' method informations.
      • attributes

        java.util.List<Attribute> attributes()
        Gets the class' attributes.
        Returns:
        the class' attributes.