Class JClassDecl


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

    • JClassDecl

      public JClassDecl()
  • Method Details

    • getSimpleName

      public String getSimpleName()
      Returns the simple name.
    • getTypeParameters

      public List<JTypeParam> getTypeParameters()
      Returns the JTypeParameters.
      Overrides:
      getTypeParameters in class JMemberDecl
    • setTypeParameters

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

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

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

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

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

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

      public JClassRef getSuperClassRef()
      Returns the superclass.
    • getSuperClass

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

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

      protected Class[] getInterfacesImpl()
      Returns implemented interfaces.
    • getClassType

      public JClassDecl.ClassType getClassType()
      Returns the class type.
    • setClassType

      public void setClassType(JClassDecl.ClassType aType)
      Sets the class type.
    • isInterface

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

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

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

      public void setMemberDecls(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(String aName, Class[] theClasses)
      Returns the JMethodDecl for given name.
    • getConstructorDecls

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

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

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

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

      public JVariableDecl getVariableDeclInside(String aName)
      Returns a variable with given name.
      Overrides:
      getVariableDeclInside in class JNode
    • getVariableDecls

      public List<JVariableDecl> getVariableDecls(String aPrefix, List<JVariableDecl> theVariables)
      Returns a variable with given name.
      Overrides:
      getVariableDecls in class JNode
    • getNodeString

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