Class JavaTokenNode
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.JavaTokenNode
-
- All Implemented Interfaces:
UserDataStore
,IFreezable
,INode
,java.lang.Cloneable
- Direct Known Subclasses:
JavaModifierToken
,JavaTokenNode.NullJavaTokenNode
public class JavaTokenNode extends AstNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JavaTokenNode.NullJavaTokenNode
-
Field Summary
Fields Modifier and Type Field Description private TextLocation
_startLocation
static JavaTokenNode
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 Constructor Description JavaTokenNode(TextLocation startLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
RacceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
TextLocation
getEndLocation()
NodeType
getNodeType()
Role<? extends JavaTokenNode>
getRole()
TextLocation
getStartLocation()
java.lang.String
getText(JavaFormattingOptions options)
protected int
getTokenLength()
boolean
matches(INode other, Match match)
void
setStartLocation(TextLocation startLocation)
java.lang.String
toString()
-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
addChild, addChildUnsafe, clone, 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, 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, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Field Detail
-
_startLocation
private TextLocation _startLocation
-
NULL
public static final JavaTokenNode NULL
-
-
Constructor Detail
-
JavaTokenNode
public JavaTokenNode(TextLocation startLocation)
-
-
Method Detail
-
getStartLocation
public TextLocation getStartLocation()
- Overrides:
getStartLocation
in classAstNode
-
setStartLocation
public void setStartLocation(TextLocation startLocation)
-
getEndLocation
public TextLocation getEndLocation()
- Overrides:
getEndLocation
in classAstNode
-
getText
public java.lang.String getText(JavaFormattingOptions options)
-
getTokenLength
protected int getTokenLength()
-
getRole
public Role<? extends JavaTokenNode> 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
-
-