Class EntityDeclaration
java.lang.Object
com.strobel.core.Freezable
com.strobel.decompiler.languages.java.ast.AstNode
com.strobel.decompiler.languages.java.ast.EntityDeclaration
- All Implemented Interfaces:
UserDataStore
,IFreezable
,INode
,Cloneable
- Direct Known Subclasses:
ConstructorDeclaration
,EnumValueDeclaration
,FieldDeclaration
,InstanceInitializer
,MethodDeclaration
,ModuleDeclaration
,ParameterDeclaration
,TypeDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
static final Role
<Annotation> static final Role
<JavaModifierToken> static final Role
<ParameterDeclaration> static final Role
<Annotation> Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, NULL, ROLE_INDEX_MASK, ROOT_ROLE
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addModifier
(Flags.Flag modifier) (package private) static void
addModifier
(AstNode node, Flags.Flag modifier) clone()
final AstNodeCollection
<Annotation> abstract EntityType
(package private) static List
<Flags.Flag> getModifiers
(AstNode node) final String
getName()
final Identifier
final AstType
Role
<? extends EntityDeclaration> getRole()
final boolean
hasModifier
(Flags.Flag modifier) final boolean
Gets the "any" modifiers flag used during pattern matching.protected final boolean
matchAnnotationsAndModifiers
(EntityDeclaration other, Match match) final void
removeModifier
(Flags.Flag modifier) (package private) static boolean
removeModifier
(AstNode node, Flags.Flag modifier) final void
setAnyModifiers
(boolean value) Sets the "any" modifiers flag used during pattern matching.(package private) static void
setModifiers
(AstNode node, Collection<Flags.Flag> modifiers) final void
setModifiers
(List<Flags.Flag> modifiers) final void
final void
setNameToken
(Identifier value) final void
setReturnType
(AstType type) Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
acceptVisitor, addChild, addChildUnsafe, contains, contains, copyUserDataFrom, debugToString, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
Field Details
-
ANNOTATION_ROLE
-
UNATTACHED_ANNOTATION_ROLE
-
MODIFIER_ROLE
-
PRIVATE_IMPLEMENTATION_TYPE_ROLE
-
RECORD_COMPONENT
-
_anyModifiers
private boolean _anyModifiers
-
-
Constructor Details
-
EntityDeclaration
public EntityDeclaration()
-
-
Method Details
-
isAnyModifiers
public final boolean isAnyModifiers()Gets the "any" modifiers flag used during pattern matching. -
setAnyModifiers
public final void setAnyModifiers(boolean value) Sets the "any" modifiers flag used during pattern matching. -
getNodeType
- Specified by:
getNodeType
in classAstNode
-
getRole
-
getEntityType
-
getAnnotations
-
hasModifier
-
getModifiers
-
getName
-
setName
-
getNameToken
-
setNameToken
-
getReturnType
-
setReturnType
-
clone
-
matchAnnotationsAndModifiers
-
addModifier
-
removeModifier
-
setModifiers
-
getModifiers
-
setModifiers
-
addModifier
-
removeModifier
-