Class Identifier
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.Identifier
-
- All Implemented Interfaces:
UserDataStore,IFreezable,INode,java.lang.Cloneable
- Direct Known Subclasses:
Identifier.NullIdentifier
public class Identifier extends AstNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classIdentifier.NullIdentifier
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_nameprivate TextLocation_startLocationstatic IdentifierNULL-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIdentifier()protectedIdentifier(java.lang.String name, TextLocation location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
RacceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)Identifierclone()static Identifiercreate(java.lang.String name)static Identifiercreate(java.lang.String name, TextLocation location)TextLocationgetEndLocation()java.lang.StringgetName()NodeTypegetNodeType()Role<? extends Identifier>getRole()TextLocationgetStartLocation()booleanmatches(INode other, Match match)voidsetName(java.lang.String name)voidsetStartLocation(TextLocation startLocation)-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
addChild, addChildUnsafe, contains, contains, copyUserDataFrom, debugToString, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, 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 Detail
-
_startLocation
private TextLocation _startLocation
-
_name
private java.lang.String _name
-
NULL
public static final Identifier NULL
-
-
Constructor Detail
-
Identifier
private Identifier()
-
Identifier
protected Identifier(java.lang.String name, TextLocation location)
-
-
Method Detail
-
getName
public final java.lang.String getName()
-
setName
public final void setName(java.lang.String name)
-
getStartLocation
public TextLocation getStartLocation()
- Overrides:
getStartLocationin classAstNode
-
setStartLocation
public void setStartLocation(TextLocation startLocation)
-
getEndLocation
public TextLocation getEndLocation()
- Overrides:
getEndLocationin classAstNode
-
getRole
public Role<? extends Identifier> getRole()
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitorin classAstNode
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classAstNode
-
clone
public Identifier clone()
-
create
public static Identifier create(java.lang.String name)
-
create
public static Identifier create(java.lang.String name, TextLocation location)
-
-