Class JClassDecl


  • public class JClassDecl
    extends JMemberDecl
    A Java member for ClassOrInterfaceDeclaration.
    • Constructor Detail

      • JClassDecl

        public JClassDecl()
    • Method Detail

      • getSimpleName

        public java.lang.String getSimpleName()
        Returns the simple name.
      • setTypeParameters

        public void setTypeParameters​(java.util.List<JTypeParam> theTPs)
        Sets the JTypeParameters.
      • getExtendsTypes

        public java.util.List<JType> getExtendsTypes()
        Returns the extends list.
      • getImplementsTypes

        public java.util.List<JType> getImplementsTypes()
        Returns the implements list.
      • getEnumConstants

        public java.util.List<JEnumConstant> getEnumConstants()
        Returns the list of enum constants.
      • getNameImpl

        @Nullable
        protected java.lang.String getNameImpl()
        Returns the simple name.
        Overrides:
        getNameImpl in class JMemberDecl
      • getClassNameImpl

        protected java.lang.String getClassNameImpl()
        Returns the class name.
        Overrides:
        getClassNameImpl in class JNode
      • getSuperClassRef

        public JClassRef getSuperClassRef()
        Returns the superclass.
      • getSuperClass

        @Nullable
        public java.lang.Class getSuperClass()
        Returns the superclass.
      • getInterfaces

        public java.lang.Class[] getInterfaces()
        Returns implemented interfaces.
      • getInterfacesImpl

        protected java.lang.Class[] getInterfacesImpl()
        Returns implemented interfaces.
      • isInterface

        public boolean isInterface()
        Returns whether class type is Interface.
      • isAnonymousClass

        public boolean isAnonymousClass()
        Returns whether class is anonymous class.
      • getMemberDecls

        public java.util.List<JMemberDecl> getMemberDecls()
        Returns the list of member declarations.
      • setMemberDecls

        public void setMemberDecls​(java.util.List<JMemberDecl> theMDs)
        Sets the list of member declarations.
      • getFieldDecls

        public JFieldDecl[] getFieldDecls()
        Returns the class field declarations.
      • getMethodDecls

        public JMethodDecl[] getMethodDecls()
        Returns the class method declarations.
      • getMethodDecl

        public JMethodDecl getMethodDecl​(java.lang.String aName,
                                         java.lang.Class[] theClasses)
        Returns the JMethodDecl for given name.
      • getConstructorDecls

        public JConstructorDecl[] getConstructorDecls()
        Returns the class constructor declarations.
      • getConstructorDecl

        public JConstructorDecl getConstructorDecl​(java.lang.String aName,
                                                   java.lang.Class[] theClasses)
        Returns the JConstructorDecl for given name.
      • getClassDecl

        public JClassDecl getClassDecl​(java.lang.String aName)
        Returns the class declaration for class name.
      • getClassDecls

        public JClassDecl[] getClassDecls()
        Returns the class constructor declarations.
      • getNodeString

        public java.lang.String getNodeString()
        Returns the part name.
        Overrides:
        getNodeString in class JNode