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 classJavaTokenNode.NullJavaTokenNode
-
Field Summary
Fields Modifier and Type Field Description private TextLocation_startLocationstatic JavaTokenNodeNULL-
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)TextLocationgetEndLocation()NodeTypegetNodeType()Role<? extends JavaTokenNode>getRole()TextLocationgetStartLocation()java.lang.StringgetText(JavaFormattingOptions options)protected intgetTokenLength()booleanmatches(INode other, Match match)voidsetStartLocation(TextLocation startLocation)java.lang.StringtoString()-
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:
getStartLocationin classAstNode
-
setStartLocation
public void setStartLocation(TextLocation startLocation)
-
getEndLocation
public TextLocation getEndLocation()
- Overrides:
getEndLocationin 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:
acceptVisitorin classAstNode
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classAstNode
-
-