public class IdentifierTreeImpl extends JavaScriptTree implements IdentifierTree, TypableTree
| Constructor and Description |
|---|
IdentifierTreeImpl(Tree.Kind kind,
InternalSyntaxToken nameToken) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DoubleDispatchVisitor visitor) |
void |
add(Type type) |
List<IdentifierTree> |
bindingIdentifiers() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
Tree.Kind |
getKind() |
SyntaxToken |
identifierToken() |
String |
name() |
Scope |
scope() |
void |
scope(Scope scope) |
void |
setSymbol(Symbol symbol) |
Symbol |
symbol() |
String |
toString() |
TypeSet |
types()
Returns an unmodifiable set of the possible types for the expression.
|
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParentpublic IdentifierTreeImpl(Tree.Kind kind, InternalSyntaxToken nameToken)
public Tree.Kind getKind()
getKind in class JavaScriptTreepublic SyntaxToken identifierToken()
identifierToken in interface IdentifierTreepublic String name()
name in interface IdentifierTreepublic Symbol symbol()
symbol in interface IdentifierTreepublic void setSymbol(Symbol symbol)
public TypeSet types()
ExpressionTreetypes in interface ExpressionTreepublic void add(Type type)
add in interface TypableTreepublic Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(DoubleDispatchVisitor visitor)
public Scope scope()
scope in interface IdentifierTreepublic void scope(Scope scope)
public List<IdentifierTree> bindingIdentifiers()
bindingIdentifiers in interface BindingElementTreeCopyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.