Package org.fife.rsta.ac.java.rjc.ast
Class AbstractMember
- java.lang.Object
-
- org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
-
- org.fife.rsta.ac.java.rjc.ast.AbstractMember
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDeclarationparentTypeDec
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMember(java.lang.String name, Offset start)protectedAbstractMember(java.lang.String name, Offset start, Offset end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDeclarationgetParentTypeDeclaration()Returns the parent type declaration of this member.booleanisStatic()Shortcut forgetModifiers().isStatic(); useful sincegetModifiers()may returnnull.voidsetParentTypeDeclaration(TypeDeclaration dec)Sets the parent type declaration of this member.-
Methods inherited from class org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsets, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.fife.rsta.ac.java.rjc.ast.Member
getDocComment, getModifiers, getName, getNameEndOffset, getNameStartOffset, getType, isDeprecated
-
-
-
-
Field Detail
-
parentTypeDec
private TypeDeclaration parentTypeDec
-
-
Method Detail
-
getParentTypeDeclaration
public TypeDeclaration getParentTypeDeclaration()
Description copied from interface:MemberReturns the parent type declaration of this member.- Specified by:
getParentTypeDeclarationin interfaceMember- Returns:
- The parent type declaration.
- See Also:
Member.setParentTypeDeclaration(TypeDeclaration)
-
isStatic
public boolean isStatic()
Shortcut forgetModifiers().isStatic(); useful sincegetModifiers()may returnnull.- Specified by:
isStaticin interfaceMember- Returns:
- Whether this member is static.
- See Also:
Member.getModifiers()
-
setParentTypeDeclaration
public void setParentTypeDeclaration(TypeDeclaration dec)
Sets the parent type declaration of this member.- Specified by:
setParentTypeDeclarationin interfaceMember- Parameters:
dec- The parent type declaration.- See Also:
Member.getParentTypeDeclaration()
-
-