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 SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetClassDecl(String aName) Returns the class declaration for class name.Returns the class constructor declarations.protected StringReturns 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 StringReturns 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.booleanReturns whether class is anonymous class.booleanReturns whether class type is Interface.voidsetClassType(JClassDecl.ClassType aType) Sets the class type.voidsetMemberDecls(List<JMemberDecl> theMDs) Sets the list of member declarations.voidsetTypeParameters(List<JTypeParam> theTPs) Sets the JTypeParameters.Methods inherited from class com.inductiveautomation.snap.javatree.JMemberDeclgetDeclaringClass, getIdentifier, getModifiers, getSuperMember, getSuperMemberImpl, getTypeParameter, setIdentifier, setModifiersMethods inherited from class com.inductiveautomation.snap.javatree.JNodeaddChild, 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- 
JClassDeclpublic JClassDecl()
 
- 
- 
Method Details- 
getSimpleNameReturns the simple name.
- 
getTypeParametersReturns the JTypeParameters.- Overrides:
- getTypeParametersin class- JMemberDecl
 
- 
setTypeParametersSets the JTypeParameters.
- 
getExtendsTypesReturns the extends list.
- 
getImplementsTypesReturns the implements list.
- 
getEnumConstantsReturns the list of enum constants.
- 
getNameImplReturns the simple name.- Overrides:
- getNameImplin class- JMemberDecl
 
- 
getClassNameImplReturns the class name.- Overrides:
- getClassNameImplin class- JNode
 
- 
getSuperClassRefReturns the superclass.
- 
getSuperClassReturns the superclass.
- 
getInterfacesReturns implemented interfaces.
- 
getInterfacesImplReturns implemented interfaces.
- 
getClassTypeReturns the class type.
- 
setClassTypeSets the class type.
- 
isInterfacepublic boolean isInterface()Returns whether class type is Interface.
- 
isAnonymousClasspublic boolean isAnonymousClass()Returns whether class is anonymous class.
- 
getMemberDeclsReturns the list of member declarations.
- 
setMemberDeclsSets the list of member declarations.
- 
getFieldDeclsReturns the class field declarations.
- 
getMethodDeclsReturns the class method declarations.
- 
getMethodDeclReturns the JMethodDecl for given name.
- 
getConstructorDeclsReturns the class constructor declarations.
- 
getConstructorDeclReturns the JConstructorDecl for given name.
- 
getClassDeclReturns the class declaration for class name.
- 
getClassDeclsReturns the class constructor declarations.
- 
getVariableDeclInsideReturns a variable with given name.- Overrides:
- getVariableDeclInsidein class- JNode
 
- 
getVariableDeclsReturns a variable with given name.- Overrides:
- getVariableDeclsin class- JNode
 
- 
getNodeStringReturns the part name.- Overrides:
- getNodeStringin class- JNode
 
 
-