public abstract class JavaScriptTree extends Object implements Tree
| Constructor and Description |
|---|
JavaScriptTree() |
| Modifier and Type | Method and Description |
|---|---|
abstract Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
Stream<Tree> |
childrenStream() |
Stream<JavaScriptTree> |
descendants() |
SyntaxToken |
firstToken() |
abstract Tree.Kind |
getKind() |
boolean |
is(Kinds... kind) |
boolean |
isAncestorOf(Tree tree) |
boolean |
isLeaf() |
SyntaxToken |
lastToken() |
Tree |
parent() |
void |
setParent(Tree parent) |
String |
toString() |
public abstract Tree.Kind getKind()
public abstract Iterator<Tree> childrenIterator()
null elements.UnsupportedOperationException - if isLeaf() returns truepublic boolean isLeaf()
public SyntaxToken lastToken()
public SyntaxToken firstToken()
firstToken in interface Treepublic boolean isAncestorOf(Tree tree)
isAncestorOf in interface Treepublic Stream<JavaScriptTree> descendants()
descendants in interface Treepublic Stream<Tree> childrenStream()
childrenStream in interface Treepublic void setParent(Tree parent)
Copyright © 2011–2017 SonarSource and Eriks Nukis. All rights reserved.