Class FunctionDeclarationTreeImpl
java.lang.Object
org.sonar.php.tree.impl.PHPTree
org.sonar.php.tree.impl.declaration.FunctionDeclarationTreeImpl
- All Implemented Interfaces:
HasFunctionSymbol
,FunctionDeclarationTree
,FunctionTree
,HasAttributes
,StatementTree
,Tree
public class FunctionDeclarationTreeImpl
extends PHPTree
implements FunctionDeclarationTree, HasFunctionSymbol
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionDeclarationTreeImpl
(List<AttributeGroupTree> attributeGroups, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, ReturnTypeClauseTree returnTypeClause, BlockTree body) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VisitorCheck visitor) body()
Creates iterator for children of this node.getKind()
name()
void
setSymbol
(FunctionSymbol symbol) symbol()
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
Constructor Details
-
FunctionDeclarationTreeImpl
public FunctionDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, InternalSyntaxToken functionToken, @Nullable InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, @Nullable ReturnTypeClauseTree returnTypeClause, BlockTree body)
-
-
Method Details
-
attributeGroups
- Specified by:
attributeGroups
in interfaceHasAttributes
-
functionToken
- Specified by:
functionToken
in interfaceFunctionDeclarationTree
- Specified by:
functionToken
in interfaceFunctionTree
-
referenceToken
- Specified by:
referenceToken
in interfaceFunctionDeclarationTree
- Specified by:
referenceToken
in interfaceFunctionTree
-
name
- Specified by:
name
in interfaceFunctionDeclarationTree
-
parameters
- Specified by:
parameters
in interfaceFunctionDeclarationTree
- Specified by:
parameters
in interfaceFunctionTree
-
returnTypeClause
- Specified by:
returnTypeClause
in interfaceFunctionDeclarationTree
- Specified by:
returnTypeClause
in interfaceFunctionTree
-
body
- Specified by:
body
in interfaceFunctionDeclarationTree
- Specified by:
body
in interfaceFunctionTree
-
getKind
-
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
-
symbol
- Specified by:
symbol
in interfaceHasFunctionSymbol
-
setSymbol
- Specified by:
setSymbol
in interfaceHasFunctionSymbol
-