Class FunctionExpressionTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.expression.FunctionExpressionTreeImpl
-
- All Implemented Interfaces:
FunctionTree,HasAttributes,ExpressionTree,FunctionExpressionTree,Tree
public class FunctionExpressionTreeImpl extends PHPTree implements FunctionExpressionTree
-
-
Constructor Summary
Constructors Constructor Description FunctionExpressionTreeImpl(List<AttributeGroupTree> attributeGroups, InternalSyntaxToken staticToken, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, ParameterListTree parameters, LexicalVariablesTree lexicalVars, ReturnTypeClauseTree returnTypeClause, BlockTree body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)List<AttributeGroupTree>attributeGroups()BlockTreebody()Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokenfunctionToken()Tree.KindgetKind()LexicalVariablesTreelexicalVars()ParameterListTreeparameters()SyntaxTokenreferenceToken()ReturnTypeClauseTreereturnTypeClause()SyntaxTokenstaticToken()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
FunctionExpressionTreeImpl
public FunctionExpressionTreeImpl(List<AttributeGroupTree> attributeGroups, @Nullable InternalSyntaxToken staticToken, InternalSyntaxToken functionToken, @Nullable InternalSyntaxToken referenceToken, ParameterListTree parameters, @Nullable LexicalVariablesTree lexicalVars, @Nullable ReturnTypeClauseTree returnTypeClause, BlockTree body)
-
-
Method Detail
-
staticToken
@Nullable public SyntaxToken staticToken()
- Specified by:
staticTokenin interfaceFunctionExpressionTree
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroupsin interfaceHasAttributes
-
functionToken
public SyntaxToken functionToken()
- Specified by:
functionTokenin interfaceFunctionExpressionTree- Specified by:
functionTokenin interfaceFunctionTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceTokenin interfaceFunctionExpressionTree- Specified by:
referenceTokenin interfaceFunctionTree
-
parameters
public ParameterListTree parameters()
- Specified by:
parametersin interfaceFunctionExpressionTree- Specified by:
parametersin interfaceFunctionTree
-
returnTypeClause
@Nullable public ReturnTypeClauseTree returnTypeClause()
- Specified by:
returnTypeClausein interfaceFunctionExpressionTree- Specified by:
returnTypeClausein interfaceFunctionTree
-
lexicalVars
@Nullable public LexicalVariablesTree lexicalVars()
- Specified by:
lexicalVarsin interfaceFunctionExpressionTree
-
body
public BlockTree body()
- Specified by:
bodyin interfaceFunctionExpressionTree- Specified by:
bodyin interfaceFunctionTree
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
accept
public void accept(VisitorCheck visitor)
-
-