Class JMemberDecl
java.lang.Object
com.inductiveautomation.snap.javatree.JNode
com.inductiveautomation.snap.javatree.JMemberDecl
- Direct Known Subclasses:
JClassDecl,JClassStaticDecl,JFieldDecl,JMethodDecl
A JNode for type members: Initializer, TypeDeclaration, EnumDeclaration, ConstructorDeclaration,
FieldDeclaration, MedthodDeclaration, AnnotationTypeDeclaration.
For JavaParseRule: ClassOrInterfaceBodyDeclaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the declaring class.Returns the identifier.intReturns the modifiers.protected StringReturns the member name.Returns the member that this member overrides or implements, if available.protected MemberReturns the member that this member overrides or implements, if available.getTypeParameter(String aName) Returns the type parameters for this member.Returns the type parameters for this member.voidsetIdentifier(JIdentifier anId) Sets the identifier.voidsetModifiers(int aValue) Sets the modifiers.Methods inherited from class com.inductiveautomation.snap.javatree.JNode
addChild, buildChildren, getBlock, getChild, getChildCount, getChildren, getClassLoader, getClassName, getClassNameImpl, getClassRef, getClassRefImpl, getEnclosingClassDecl, getEnclosingMemberDecl, getEnclosingMethodDecl, getEnd, getEndToken, getFile, getJClass, getLineIndex, getName, getNodeAtCharIndex, getNodeFields, getNodeFieldsImpl, getNodeParents, getNodePath, getNodeString, getOthers, getParent, getParent, getReferencedClasses, getReferencedClassNames, getReferencedClassNames, getReferencedClassNames, getStart, getStartToken, getString, getVariableDecl, getVariableDeclInside, getVariableDecls, isBlock, setClassName, setClassRef, setEndToken, setJClass, setParent, setStartToken, toString
-
Constructor Details
-
JMemberDecl
public JMemberDecl()
-
-
Method Details
-
getNameImpl
Returns the member name.- Overrides:
getNameImplin classJNode
-
getModifiers
public int getModifiers()Returns the modifiers. -
setModifiers
public void setModifiers(int aValue) Sets the modifiers. -
getIdentifier
Returns the identifier. -
setIdentifier
Sets the identifier. -
getDeclaringClass
Returns the declaring class. -
getTypeParameters
Returns the type parameters for this member. -
getTypeParameter
Returns the type parameters for this member. -
getSuperMember
Returns the member that this member overrides or implements, if available. -
getSuperMemberImpl
Returns the member that this member overrides or implements, if available.
-