public class LiteralTreeImpl extends JavaScriptTree implements LiteralTree, TypableTree
| Constructor and Description |
|---|
LiteralTreeImpl(Tree.Kind kind,
SyntaxToken token) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DoubleDispatchVisitor visitor) |
void |
add(Type type) |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
Tree.Kind |
getKind() |
SyntaxToken |
token() |
String |
toString() |
TypeSet |
types()
Returns an unmodifiable set of the possible types for the expression.
|
String |
value() |
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParentpublic LiteralTreeImpl(Tree.Kind kind, SyntaxToken token)
public Tree.Kind getKind()
getKind in class JavaScriptTreepublic String value()
value in interface LiteralTreepublic TypeSet types()
ExpressionTreetypes in interface ExpressionTreepublic void add(Type type)
add in interface TypableTreepublic SyntaxToken token()
token in interface LiteralTreepublic Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(DoubleDispatchVisitor visitor)
Copyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.