public class TokenTextElement extends TextElement
Modifier and Type | Method and Description |
---|---|
void |
accept(LexicalPreservingVisitor visitor) |
boolean |
equals(Object o) |
String |
expand() |
String |
getText() |
JavaToken |
getToken() |
int |
getTokenKind() |
int |
hashCode() |
boolean |
isChildOfClass(Class<? extends Node> nodeClass)
Is this TextElement representing a child of the given class?
|
boolean |
isComment() |
boolean |
isIdentifier() |
boolean |
isKeyword() |
boolean |
isLiteral() |
boolean |
isNewline() |
boolean |
isPrimitive() |
boolean |
isSeparator() |
boolean |
isSpaceOrTab() |
boolean |
isWhiteSpace() |
String |
toString() |
isChild, isWhiteSpaceOrComment, match
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and
public String expand()
public String getText()
public int getTokenKind()
public JavaToken getToken()
public boolean isWhiteSpace()
isWhiteSpace
in class TextElement
public boolean isSpaceOrTab()
isSpaceOrTab
in class TextElement
public boolean isComment()
isComment
in class TextElement
public boolean isSeparator()
isSeparator
in class TextElement
public boolean isNewline()
isNewline
in class TextElement
public boolean isChildOfClass(Class<? extends Node> nodeClass)
TextElement
isChildOfClass
in class TextElement
public boolean isIdentifier()
isIdentifier
in class TextElement
public boolean isKeyword()
isKeyword
in class TextElement
public boolean isLiteral()
isLiteral
in class TextElement
public boolean isPrimitive()
isPrimitive
in class TextElement
public void accept(LexicalPreservingVisitor visitor)
Copyright © 2007–2024. All rights reserved.