public class JavaTokenNode extends AstNode
| Modifier and Type | Field and Description |
|---|---|
static JavaTokenNode |
NULL |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
JavaTokenNode(TextLocation startLocation) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
TextLocation |
getEndLocation() |
NodeType |
getNodeType() |
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() |
addChild, clone, contains, contains, copyUserDataFrom, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRolepublic static final JavaTokenNode NULL
public JavaTokenNode(TextLocation startLocation)
public TextLocation getStartLocation()
getStartLocation in class AstNodepublic void setStartLocation(TextLocation startLocation)
public TextLocation getEndLocation()
getEndLocation in class AstNodepublic java.lang.String getText(JavaFormattingOptions options)
protected int getTokenLength()
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNodepublic NodeType getNodeType()
getNodeType in class AstNode