public class FunctionExpressionTreeImpl extends JavaScriptTree implements FunctionExpressionTree
| Constructor and Description |
|---|
FunctionExpressionTreeImpl(Tree.Kind kind,
InternalSyntaxToken functionKeyword,
IdentifierTreeImpl name,
ParameterListTreeImpl parameters,
BlockTreeImpl body,
com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
Constructor for named function expression and function declaration
|
FunctionExpressionTreeImpl(Tree.Kind kind,
InternalSyntaxToken functionKeyword,
InternalSyntaxToken star,
IdentifierTreeImpl name,
ParameterListTreeImpl parameters,
BlockTreeImpl body,
List<com.sonar.sslr.api.AstNode> children)
Constructor for named generator expression and generator declaration
|
FunctionExpressionTreeImpl(Tree.Kind kind,
InternalSyntaxToken functionKeyword,
InternalSyntaxToken star,
ParameterListTreeImpl parameters,
BlockTreeImpl body,
com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
Constructor for NOT named generator expression
|
FunctionExpressionTreeImpl(Tree.Kind kind,
InternalSyntaxToken functionKeyword,
ParameterListTreeImpl parameters,
BlockTreeImpl body,
com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
Constructor for NOT named function expression
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
BlockTreeImpl |
body() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
SyntaxToken |
functionKeyword() |
com.sonar.sslr.api.AstNodeType |
getKind() |
IdentifierTree |
name() |
ParameterListTree |
parameters() |
SyntaxToken |
star() |
TypeSet |
types()
Returns an unmodifiable set of the possible types for the expression.
|
addChild, addChildren, getAstNode, getLine, is, isLeaf, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic FunctionExpressionTreeImpl(Tree.Kind kind, InternalSyntaxToken functionKeyword, InternalSyntaxToken star, IdentifierTreeImpl name, ParameterListTreeImpl parameters, BlockTreeImpl body, List<com.sonar.sslr.api.AstNode> children)
public FunctionExpressionTreeImpl(Tree.Kind kind, InternalSyntaxToken functionKeyword, InternalSyntaxToken star, ParameterListTreeImpl parameters, BlockTreeImpl body, com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
public FunctionExpressionTreeImpl(Tree.Kind kind, InternalSyntaxToken functionKeyword, IdentifierTreeImpl name, ParameterListTreeImpl parameters, BlockTreeImpl body, com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
public FunctionExpressionTreeImpl(Tree.Kind kind, InternalSyntaxToken functionKeyword, ParameterListTreeImpl parameters, BlockTreeImpl body, com.google.common.collect.ImmutableList<com.sonar.sslr.api.AstNode> children)
public SyntaxToken functionKeyword()
functionKeyword in interface FunctionExpressionTree@Nullable public SyntaxToken star()
star in interface FunctionExpressionTree@Nullable public IdentifierTree name()
name in interface FunctionExpressionTreepublic ParameterListTree parameters()
parameters in interface FunctionTreeparameters in interface FunctionExpressionTreepublic com.sonar.sslr.api.AstNodeType getKind()
getKind in class JavaScriptTreepublic BlockTreeImpl body()
body in interface FunctionTreebody in interface FunctionExpressionTreepublic Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(TreeVisitor visitor)
public TypeSet types()
ExpressionTreetypes in interface ExpressionTreeCopyright © 2011–2015 SonarSource and Eriks Nukis. All rights reserved.