public class InternalSyntaxToken extends JavaScriptTree implements SyntaxToken
| Constructor and Description |
|---|
InternalSyntaxToken(int line,
int column,
String value,
List<SyntaxTrivia> trivias,
int startIndex,
boolean isEOF) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DoubleDispatchVisitor visitor) |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
int |
column() |
int |
endColumn() |
int |
endLine() |
SyntaxToken |
firstToken() |
Tree.Kind |
getKind() |
boolean |
is(com.sonar.sslr.api.TokenType type) |
boolean |
isEOF() |
boolean |
isLeaf() |
SyntaxToken |
lastToken() |
int |
line() |
int |
startIndex() |
String |
text() |
int |
toIndex() |
String |
toString() |
List<SyntaxTrivia> |
trivias() |
childrenStream, descendants, is, isAncestorOf, parent, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchildrenStream, descendants, is, isAncestorOf, parentpublic InternalSyntaxToken(int line,
int column,
String value,
List<SyntaxTrivia> trivias,
int startIndex,
boolean isEOF)
public int endLine()
endLine in interface SyntaxTokenpublic int endColumn()
endColumn in interface SyntaxTokenpublic int toIndex()
public String text()
text in interface SyntaxTokenpublic List<SyntaxTrivia> trivias()
trivias in interface SyntaxTokenpublic int line()
line in interface SyntaxTokenpublic int column()
column in interface SyntaxTokenpublic int startIndex()
public Tree.Kind getKind()
getKind in class JavaScriptTreepublic boolean isLeaf()
isLeaf in class JavaScriptTreepublic boolean isEOF()
public Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(DoubleDispatchVisitor visitor)
public boolean is(com.sonar.sslr.api.TokenType type)
public SyntaxToken firstToken()
firstToken in interface TreefirstToken in class JavaScriptTreepublic SyntaxToken lastToken()
lastToken in interface TreelastToken in class JavaScriptTreepublic String toString()
toString in class JavaScriptTreeCopyright © 2011–2017 SonarSource and Eriks Nukis. All rights reserved.