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 booleanstatic final Role<Annotation> static final Role<JavaModifierToken> static final Role<ParameterDeclaration> static final Role<Annotation> Fields inherited from class AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, NULL, ROLE_INDEX_MASK, ROOT_ROLEFields inherited from interface INode
CHILD_ITERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddModifier(Flags.Flag modifier) (package private) static voidaddModifier(AstNode node, Flags.Flag modifier) clone()final AstNodeCollection<Annotation> abstract EntityType(package private) static List<Flags.Flag> getModifiers(AstNode node) final StringgetName()final Identifierfinal AstTypeRole<? extends EntityDeclaration> getRole()final booleanhasModifier(Flags.Flag modifier) final booleanGets the "any" modifiers flag used during pattern matching.protected final booleanmatchAnnotationsAndModifiers(EntityDeclaration other, Match match) final voidremoveModifier(Flags.Flag modifier) (package private) static booleanremoveModifier(AstNode node, Flags.Flag modifier) final voidsetAnyModifiers(boolean value) Sets the "any" modifiers flag used during pattern matching.(package private) static voidsetModifiers(AstNode node, Collection<Flags.Flag> modifiers) final voidsetModifiers(List<Flags.Flag> modifiers) final voidfinal voidsetNameToken(Identifier value) final voidsetReturnType(AstType type) Methods inherited from class 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, withNameMethods inherited from class 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:
getNodeTypein classAstNode
-
getRole
-
getEntityType
-
getAnnotations
-
hasModifier
-
getModifiers
-
getName
-
setName
-
getNameToken
-
setNameToken
-
getReturnType
-
setReturnType
-
clone
-
matchAnnotationsAndModifiers
-
addModifier
-
removeModifier
-
setModifiers
-
getModifiers
-
setModifiers
-
addModifier
-
removeModifier
-