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 TypeFieldDescriptionstatic 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, NULLFields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddModifier(Flags.Flag modifier) clone()final AstNodeCollection<Annotation> abstract EntityTypefinal 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) final voidsetAnyModifiers(boolean value) Sets the "any" modifiers flag used during pattern matching.final voidsetModifiers(List<Flags.Flag> modifiers) final voidfinal voidsetNameToken(Identifier value) final voidsetReturnType(AstType type) Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
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, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, 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, toString, withNameMethods 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
-
-
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
-