public class FunctionExpressionTreeImpl extends JavaScriptTree implements FunctionExpressionTree, TypableTree
| Modifier and Type | Method and Description |
|---|---|
void |
accept(DoubleDispatchVisitor visitor) |
void |
add(Type type) |
SyntaxToken |
asyncToken() |
BlockTreeImpl |
body() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
static FunctionExpressionTree |
create(SyntaxToken asyncToken,
SyntaxToken functionToken,
IdentifierTree name,
ParameterListTree parameters,
BlockTreeImpl body) |
static FunctionExpressionTree |
createGenerator(SyntaxToken functionKeyword,
SyntaxToken star,
IdentifierTree name,
ParameterListTree parameters,
BlockTreeImpl body) |
SyntaxToken |
functionKeyword() |
Tree.Kind |
getKind() |
IdentifierTree |
name() |
ParameterListTree |
parameterClause() |
List<Tree> |
parameterList() |
SyntaxToken |
star() |
TypeSet |
types()
Returns an unmodifiable set of the possible types for the expression.
|
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParentpublic static FunctionExpressionTree createGenerator(SyntaxToken functionKeyword, SyntaxToken star, @Nullable IdentifierTree name, ParameterListTree parameters, BlockTreeImpl body)
public static FunctionExpressionTree create(@Nullable SyntaxToken asyncToken, SyntaxToken functionToken, @Nullable IdentifierTree name, ParameterListTree parameters, BlockTreeImpl body)
public SyntaxToken functionKeyword()
functionKeyword in interface FunctionExpressionTree@Nullable public SyntaxToken star()
star in interface FunctionExpressionTree@Nullable public IdentifierTree name()
name in interface FunctionExpressionTree@Nullable public SyntaxToken asyncToken()
asyncToken in interface FunctionTreepublic ParameterListTree parameterClause()
parameterClause in interface FunctionTreeparameterClause in interface FunctionExpressionTreepublic Tree.Kind getKind()
getKind in class JavaScriptTreepublic BlockTreeImpl body()
body in interface FunctionTreebody in interface FunctionExpressionTreepublic List<Tree> parameterList()
parameterList in interface FunctionTreepublic Iterator<Tree> childrenIterator()
JavaScriptTreenull elements.childrenIterator in class JavaScriptTreepublic void accept(DoubleDispatchVisitor visitor)
public TypeSet types()
ExpressionTreetypes in interface ExpressionTreepublic void add(Type type)
add in interface TypableTreeCopyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.