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 |
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() |
getParent, is, setParentpublic 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 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(DoubleDispatchVisitor visitor)
public boolean is(com.sonar.sslr.api.TokenType type)
public SyntaxToken getFirstToken()
getFirstToken in class JavaScriptTreepublic SyntaxToken getLastToken()
getLastToken in class JavaScriptTreeCopyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.