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 void
accept(VisitorCheck visitor)
List<AttributeGroupTree>
attributeGroups()
BlockTree
body()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
functionToken()
Tree.Kind
getKind()
LexicalVariablesTree
lexicalVars()
ParameterListTree
parameters()
SyntaxToken
referenceToken()
ReturnTypeClauseTree
returnTypeClause()
SyntaxToken
staticToken()
-
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:
staticToken
in interfaceFunctionExpressionTree
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroups
in interfaceHasAttributes
-
functionToken
public SyntaxToken functionToken()
- Specified by:
functionToken
in interfaceFunctionExpressionTree
- Specified by:
functionToken
in interfaceFunctionTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceToken
in interfaceFunctionExpressionTree
- Specified by:
referenceToken
in interfaceFunctionTree
-
parameters
public ParameterListTree parameters()
- Specified by:
parameters
in interfaceFunctionExpressionTree
- Specified by:
parameters
in interfaceFunctionTree
-
returnTypeClause
@Nullable public ReturnTypeClauseTree returnTypeClause()
- Specified by:
returnTypeClause
in interfaceFunctionExpressionTree
- Specified by:
returnTypeClause
in interfaceFunctionTree
-
lexicalVars
@Nullable public LexicalVariablesTree lexicalVars()
- Specified by:
lexicalVars
in interfaceFunctionExpressionTree
-
body
public BlockTree body()
- Specified by:
body
in interfaceFunctionExpressionTree
- Specified by:
body
in interfaceFunctionTree
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
accept
public void accept(VisitorCheck visitor)
-
-