Class ClassDescriptor

    • Constructor Detail

      • ClassDescriptor

        protected ClassDescriptor​(java.lang.String name,
                                  int access,
                                  java.lang.Object newNode,
                                  java.io.File sourceJar)
        Instantiates a new Class descriptor.
        Parameters:
        name - the name
        access - the access
        newNode - the new node
        sourceJar - the source jar
      • ClassDescriptor

        protected ClassDescriptor​(java.lang.String name,
                                  java.lang.String superName,
                                  java.lang.String[] interfaces,
                                  int access,
                                  java.lang.Object newNode,
                                  java.io.File sourceJar)
        Instantiates a new Class descriptor.
        Parameters:
        name - the name
        superName - the super name
        interfaces - the interfaces
        access - the access
        newNode - the new node
        sourceJar - the source jar
    • Method Detail

      • setEnclosingClass

        public void setEnclosingClass​(java.lang.String enclosingClass)
        Sets enclosing class.
        Parameters:
        enclosingClass - the enclosing class
      • setEnclosingMethod

        public void setEnclosingMethod​(java.lang.String methodName,
                                       java.lang.String methodDesc)
        Sets enclosing method.
        Parameters:
        methodName - the method name
        methodDesc - the method desc
      • getEnclosingClass

        public java.lang.String getEnclosingClass()
        Gets enclosing class.
        Returns:
        the enclosing class
      • getEnclosingMethod

        public java.util.AbstractMap.SimpleEntry<java.lang.Object,​java.lang.Object> getEnclosingMethod()
        Gets enclosing method.
        Returns:
        the enclosing method
      • addMethod

        public void addMethod​(MethodDescriptor method)
        Add method.
        Parameters:
        method - the method
      • addField

        public void addField​(FieldDescriptor field)
        Add field.
        Parameters:
        field - the field
      • setHasExternalAncestors

        public void setHasExternalAncestors​(boolean hasExternalAncestors)
        Sets has external ancestors.
        Parameters:
        hasExternalAncestors - the has external ancestors
      • getName

        public java.lang.String getName()
        Gets name.
        Returns:
        the name
      • getShortName

        public java.lang.String getShortName()
        Gets short name.
        Returns:
        the short name
      • getSuperName

        public java.lang.String getSuperName()
        Gets super name.
        Returns:
        the super name
      • setSuperName

        public void setSuperName​(java.lang.String superName)
        Sets super name.
        Parameters:
        superName - the super name
      • setInterfaces

        public void setInterfaces​(java.lang.String[] interfaces)
        Sets interfaces.
        Parameters:
        interfaces - the interfaces
      • getInterfaces

        public java.lang.String[] getInterfaces()
        Get interfaces string [ ].
        Returns:
        the string [ ]
      • getMethod

        public MethodDescriptor getMethod​(java.lang.String name,
                                          java.lang.String desc)
        Gets method.
        Parameters:
        name - the name
        desc - the desc
        Returns:
        the method
      • getMethod

        public MethodDescriptor getMethod​(java.util.AbstractMap.SimpleEntry<java.lang.Object,​java.lang.Object> method)
        Gets method.
        Parameters:
        method - the method
        Returns:
        the method
      • getField

        public FieldDescriptor getField​(java.lang.String name)
        Gets field.
        Parameters:
        name - the name
        Returns:
        the field
      • getMethods

        public java.util.Collection<MethodDescriptor> getMethods()
        Gets methods.
        Returns:
        the methods
      • isInterface

        public boolean isInterface()
        Is interface boolean.
        Returns:
        the boolean
      • isEnum

        public boolean isEnum()
        Is enum boolean.
        Returns:
        the boolean
      • isAnnotation

        public boolean isAnnotation()
        Is annotation boolean.
        Returns:
        the boolean
      • isInnerClass

        public boolean isInnerClass()
        Is inner class boolean.
        Returns:
        the boolean
      • implementsMethod

        public boolean implementsMethod​(java.lang.String methodName,
                                        java.lang.String methodDesc)
        Implements method boolean.
        Parameters:
        methodName - the method name
        methodDesc - the method desc
        Returns:
        the boolean
      • declaresField

        public boolean declaresField​(java.lang.String fieldName)
        Declares field boolean.
        Parameters:
        fieldName - the field name
        Returns:
        the boolean
      • getFields

        public java.util.Collection<FieldDescriptor> getFields()
        Gets fields.
        Returns:
        the fields
      • getAllImplementedInterfaces

        public java.util.Set<java.lang.String> getAllImplementedInterfaces​(Model model)
        Gets all implemented interfaces.
        Parameters:
        model - the model
        Returns:
        the all implemented interfaces
      • getAllAncestorClasses

        public java.util.Set<java.lang.String> getAllAncestorClasses​(Model model)
        Gets all ancestor classes.
        Parameters:
        model - the model
        Returns:
        the all ancestor classes
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getNewNode

        public java.lang.Object getNewNode()
        Gets new node.
        Returns:
        the new node
      • setRetainAttribute

        public void setRetainAttribute​(java.lang.String attr)
        Sets retain attribute.
        Parameters:
        attr - the attr
      • getRetainAttribute

        public boolean getRetainAttribute​(java.lang.String attr)
        Gets retain attribute.
        Parameters:
        attr - the attr
        Returns:
        the retain attribute
      • getHasNestMembers

        public boolean getHasNestMembers()
        Gets has nest members.
        Returns:
        the has nest members
      • setHasNestMembers

        public void setHasNestMembers​(boolean nestMembers)
        Sets has nest members.
        Parameters:
        nestMembers - the nest members