Package org.sonar.php.tree.impl.lexical
Class InternalSyntaxToken
java.lang.Object
org.sonar.php.tree.impl.PHPTree
org.sonar.php.tree.impl.lexical.InternalSyntaxToken
- All Implemented Interfaces:
SyntaxToken
,Tree
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInternalSyntaxToken
(int line, int column, String value, List<SyntaxTrivia> trivias, int startIndex, boolean isEOF) -
Method Summary
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getLine, getParent, is, setParent, toString
-
Constructor Details
-
InternalSyntaxToken
public InternalSyntaxToken(int line, int column, String value, List<SyntaxTrivia> trivias, int startIndex, boolean isEOF)
-
-
Method Details
-
toIndex
public int toIndex() -
text
- Specified by:
text
in interfaceSyntaxToken
-
trivias
- Specified by:
trivias
in interfaceSyntaxToken
-
line
public int line()- Specified by:
line
in interfaceSyntaxToken
-
column
public int column()- Specified by:
column
in interfaceSyntaxToken
-
endLine
public int endLine()- Specified by:
endLine
in interfaceSyntaxToken
-
endColumn
public int endColumn()- Specified by:
endColumn
in interfaceSyntaxToken
-
startIndex
public int startIndex() -
isEOF
public boolean isEOF() -
is
public boolean is(com.sonar.sslr.api.TokenType type) -
getKind
-
childrenIterator
Description copied from class:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
isLeaf
public boolean isLeaf() -
accept
-
getFirstToken
- Overrides:
getFirstToken
in classPHPTree
-
getLastToken
- Overrides:
getLastToken
in classPHPTree
-