Package org.sonar.python.tree
Class TokenImpl
- java.lang.Object
-
- org.sonar.python.tree.PyTree
-
- org.sonar.python.tree.TokenImpl
-
-
Constructor Summary
Constructors Constructor Description TokenImpl(com.sonar.sslr.api.Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TreeVisitor visitor)List<Tree>children()intcolumn()TokenfirstToken()Tree.KindgetKind()TokenlastToken()intline()com.sonar.sslr.api.Tokentoken()List<com.sonar.sslr.api.Trivia>trivia()com.sonar.sslr.api.TokenTypetype()Stringvalue()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.python.api.tree.Tree
ancestors, astNode, descendants, descendants, is, parent
-
-
-
-
Method Detail
-
accept
public void accept(TreeVisitor visitor)
-
firstToken
public Token firstToken()
- Specified by:
firstTokenin interfaceTree- Overrides:
firstTokenin classPyTree
-
-