public abstract class EntityDeclaration extends AstNode
| Modifier and Type | Field and Description |
|---|---|
static Role<Annotation> |
ANNOTATION_ROLE |
static Role<JavaModifierToken> |
MODIFIER_ROLE |
static Role<AstType> |
PRIVATE_IMPLEMENTATION_TYPE_ROLE |
static Role<Annotation> |
UNATTACHED_ANNOTATION_ROLE |
AST_NODE_USED_FLAGS, flags, NULLCHILD_ITERATOR| Constructor and Description |
|---|
EntityDeclaration() |
| Modifier and Type | Method and Description |
|---|---|
EntityDeclaration |
clone() |
AstNodeCollection<Annotation> |
getAnnotations() |
abstract EntityType |
getEntityType() |
AstNodeCollection<JavaModifierToken> |
getModifiers() |
java.lang.String |
getName() |
Identifier |
getNameToken() |
NodeType |
getNodeType() |
AstType |
getReturnType() |
boolean |
hasModifier(javax.lang.model.element.Modifier modifier) |
boolean |
isAnyModifiers()
Gets the "any" modifiers flag used during pattern matching.
|
protected boolean |
matchAnnotationsAndModifiers(EntityDeclaration other,
Match match) |
void |
setAnyModifiers(boolean value)
Sets the "any" modifiers flag used during pattern matching.
|
void |
setName(java.lang.String value) |
void |
setNameToken(Identifier value) |
void |
setReturnType(AstType type) |
acceptVisitor, addChild, contains, contains, copyUserDataFrom, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final Role<Annotation> ANNOTATION_ROLE
public static final Role<Annotation> UNATTACHED_ANNOTATION_ROLE
public static final Role<JavaModifierToken> MODIFIER_ROLE
public final boolean isAnyModifiers()
public final void setAnyModifiers(boolean value)
public NodeType getNodeType()
getNodeType in class AstNodepublic abstract EntityType getEntityType()
public final AstNodeCollection<Annotation> getAnnotations()
public final boolean hasModifier(javax.lang.model.element.Modifier modifier)
public final AstNodeCollection<JavaModifierToken> getModifiers()
public final java.lang.String getName()
public final void setName(java.lang.String value)
public final Identifier getNameToken()
public final void setNameToken(Identifier value)
public final AstType getReturnType()
public final void setReturnType(AstType type)
public EntityDeclaration clone()
protected final boolean matchAnnotationsAndModifiers(EntityDeclaration other, Match match)