Class JClassDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JMemberDecl
com.inductiveautomation.snap.javatree.JClassDecl
A Java member for ClassOrInterfaceDeclaration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassDecl
(String aName) Returns the class declaration for class name.Returns the class constructor declarations.protected String
Returns the class name.Returns the class type.getConstructorDecl
(String aName, Class[] theClasses) Returns the JConstructorDecl for given name.Returns the class constructor declarations.Returns the list of enum constants.Returns the extends list.Returns the class field declarations.Returns the implements list.Class[]
Returns implemented interfaces.protected Class[]
Returns implemented interfaces.Returns the list of member declarations.getMethodDecl
(String aName, Class[] theClasses) Returns the JMethodDecl for given name.Returns the class method declarations.protected String
Returns the simple name.Returns the part name.Returns the simple name.Returns the superclass.Returns the superclass.Returns the JTypeParameters.getVariableDeclInside
(String aName) Returns a variable with given name.getVariableDecls
(String aPrefix, List<JVariableDecl> theVariables) Returns a variable with given name.boolean
Returns whether class is anonymous class.boolean
Returns whether class type is Interface.void
setClassType
(JClassDecl.ClassType aType) Sets the class type.void
setMemberDecls
(List<JMemberDecl> theMDs) Sets the list of member declarations.void
setTypeParameters
(List<JTypeParam> theTPs) Sets the JTypeParameters.Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDecl
getDeclaringClass, getIdentifier, getModifiers, getSuperMember, getSuperMemberImpl, getTypeParameter, setIdentifier, setModifiers
Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
Constructor Details
-
JClassDecl
public JClassDecl()
-
-
Method Details
-
getSimpleName
Returns the simple name. -
getTypeParameters
Returns the JTypeParameters.- Overrides:
getTypeParameters
in classJMemberDecl
-
setTypeParameters
Sets the JTypeParameters. -
getExtendsTypes
Returns the extends list. -
getImplementsTypes
Returns the implements list. -
getEnumConstants
Returns the list of enum constants. -
getNameImpl
Returns the simple name.- Overrides:
getNameImpl
in classJMemberDecl
-
getClassNameImpl
Returns the class name.- Overrides:
getClassNameImpl
in classJNode
-
getSuperClassRef
Returns the superclass. -
getSuperClass
Returns the superclass. -
getInterfaces
Returns implemented interfaces. -
getInterfacesImpl
Returns implemented interfaces. -
getClassType
Returns the class type. -
setClassType
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
Returns the list of member declarations. -
setMemberDecls
Sets the list of member declarations. -
getFieldDecls
Returns the class field declarations. -
getMethodDecls
Returns the class method declarations. -
getMethodDecl
Returns the JMethodDecl for given name. -
getConstructorDecls
Returns the class constructor declarations. -
getConstructorDecl
Returns the JConstructorDecl for given name. -
getClassDecl
Returns the class declaration for class name. -
getClassDecls
Returns the class constructor declarations. -
getVariableDeclInside
Returns a variable with given name.- Overrides:
getVariableDeclInside
in classJNode
-
getVariableDecls
Returns a variable with given name.- Overrides:
getVariableDecls
in classJNode
-
getNodeString
Returns the part name.- Overrides:
getNodeString
in classJNode
-