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 class
Identifier.NullIdentifier
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
_name
private TextLocation
_startLocation
static Identifier
NULL
-
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 private
Identifier()
protected
Identifier(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)
Identifier
clone()
static Identifier
create(java.lang.String name)
static Identifier
create(java.lang.String name, TextLocation location)
TextLocation
getEndLocation()
java.lang.String
getName()
NodeType
getNodeType()
Role<? extends Identifier>
getRole()
TextLocation
getStartLocation()
boolean
matches(INode other, Match match)
void
setName(java.lang.String name)
void
setStartLocation(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:
getStartLocation
in classAstNode
-
setStartLocation
public void setStartLocation(TextLocation startLocation)
-
getEndLocation
public TextLocation getEndLocation()
- Overrides:
getEndLocation
in classAstNode
-
getRole
public Role<? extends Identifier> getRole()
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitor
in classAstNode
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in 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)
-
-