Class JMemberDecl
- java.lang.Object
-
- com.inductiveautomation.snap.javatree.JNode
-
- com.inductiveautomation.snap.javatree.JMemberDecl
-
- Direct Known Subclasses:
JClassDecl
,JClassStaticDecl
,JFieldDecl
,JMethodDecl
public class JMemberDecl extends JNode
A JNode for type members: Initializer, TypeDeclaration, EnumDeclaration, ConstructorDeclaration, FieldDeclaration, MedthodDeclaration, AnnotationTypeDeclaration. For JavaParseRule: ClassOrInterfaceBodyDeclaration.
-
-
Constructor Summary
Constructors Constructor Description JMemberDecl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getDeclaringClass()
Returns the declaring class.JIdentifier
getIdentifier()
Returns the identifier.int
getModifiers()
Returns the modifiers.protected java.lang.String
getNameImpl()
Returns the member name.java.lang.reflect.Member
getSuperMember()
Returns the member that this member overrides or implements, if available.protected java.lang.reflect.Member
getSuperMemberImpl()
Returns the member that this member overrides or implements, if available.JTypeParam
getTypeParameter(java.lang.String aName)
Returns the type parameters for this member.java.util.List<JTypeParam>
getTypeParameters()
Returns the type parameters for this member.void
setIdentifier(JIdentifier anId)
Sets the identifier.void
setModifiers(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
-
-
-
-
Method Detail
-
getNameImpl
protected java.lang.String getNameImpl()
Returns the member name.- Overrides:
getNameImpl
in classJNode
-
getModifiers
public int getModifiers()
Returns the modifiers.
-
setModifiers
public void setModifiers(int aValue)
Sets the modifiers.
-
getIdentifier
public JIdentifier getIdentifier()
Returns the identifier.
-
setIdentifier
public void setIdentifier(JIdentifier anId)
Sets the identifier.
-
getDeclaringClass
public java.lang.Class getDeclaringClass()
Returns the declaring class.
-
getTypeParameters
public java.util.List<JTypeParam> getTypeParameters()
Returns the type parameters for this member.
-
getTypeParameter
public JTypeParam getTypeParameter(java.lang.String aName)
Returns the type parameters for this member.
-
getSuperMember
public java.lang.reflect.Member getSuperMember()
Returns the member that this member overrides or implements, if available.
-
getSuperMemberImpl
protected java.lang.reflect.Member getSuperMemberImpl()
Returns the member that this member overrides or implements, if available.
-
-