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(TreeVisitor visitor) |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
int |
column() |
SyntaxToken |
getFirstToken() |
Tree.Kind |
getKind() |
SyntaxToken |
getLastToken() |
int |
getLine()
Deprecated.
Use
SyntaxToken.line() instead. |
boolean |
is(com.sonar.sslr.api.TokenType type) |
boolean |
isEOF() |
boolean |
isLeaf() |
int |
line() |
int |
startIndex() |
String |
text() |
int |
toIndex() |
List<SyntaxTrivia> |
trivias() |
ispublic InternalSyntaxToken(int line,
int column,
String value,
List<SyntaxTrivia> trivias,
int startIndex,
boolean isEOF)
public int toIndex()
public String text()
text in interface SyntaxTokenpublic List<SyntaxTrivia> trivias()
trivias in interface SyntaxToken@Deprecated public int getLine()
SyntaxToken.line() instead.getLine in class JavaScriptTreepublic 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(TreeVisitor visitor)
public boolean is(com.sonar.sslr.api.TokenType type)
public SyntaxToken getFirstToken()
getFirstToken in class JavaScriptTreepublic SyntaxToken getLastToken()
getLastToken in class JavaScriptTreeCopyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.