Class ClassInfo

    • Field Detail

      • version

        private int version
        The classfile version number.
      • signature

        private java.lang.String signature
        The class signature.
      • supername

        private java.lang.String supername
        The internal classname of the superclass.
      • interfaces

        private java.lang.String[] interfaces
        An array of names of internal classnames of interfaces implmented by the class.
      • methodMap

        private java.util.Map methodMap
        A map of method signature to MethodInfo, for the methods provided by this class.
      • fieldMap

        private java.util.Map fieldMap
        A map of field signature to FieldInfo, for the fields provided by this class.
    • Constructor Detail

      • ClassInfo

        public ClassInfo​(int version,
                         int access,
                         java.lang.String name,
                         java.lang.String signature,
                         java.lang.String supername,
                         java.lang.String[] interfaces,
                         java.util.Map methodMap,
                         java.util.Map fieldMap)
        Create a new classinfo.
        Parameters:
        version - the class file version number.
        access - the access flags for the class.
        name - the internal name of the class.
        signature - the signature of the class.
        interfaces - an array of internal names of interfaces implemented by the class.
        methodMap - a map of methods provided by this class.
        fieldMap - a map of fields provided by this class.
    • Method Detail

      • getVersion

        public final int getVersion()
        Get the class file version.
        Returns:
        The class file version as specified in the java language spec.
      • getSignature

        public final java.lang.String getSignature()
        Get the class signature.
        Returns:
        the class signature
      • getSupername

        public final java.lang.String getSupername()
        Get the internal name of the superclass.
        Returns:
        the internal name of the superclass
      • getInterfaces

        public final java.lang.String[] getInterfaces()
        Get the internal names of the interfaces implemented by this class
        Returns:
        an array of internal names of classes implemented by the class.
      • getMethodMap

        public final java.util.Map getMethodMap()
        Get the map of method signatures to methods.
        Returns:
        a map with method signatures as keys, and MethodInfos as values.
      • getFieldMap

        public final java.util.Map getFieldMap()
        Get the map of field signatures to fields.
        Returns:
        a map with field signatures as keys, and FieldInfos as values.