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 TypeMethodDescriptionvoidaccept(VisitorCheck visitor) body()Creates iterator for children of this node.getKind()name()voidsetSymbol(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:
attributeGroupsin interfaceHasAttributes
-
functionToken
- Specified by:
functionTokenin interfaceFunctionDeclarationTree- Specified by:
functionTokenin interfaceFunctionTree
-
referenceToken
- Specified by:
referenceTokenin interfaceFunctionDeclarationTree- Specified by:
referenceTokenin interfaceFunctionTree
-
name
- Specified by:
namein interfaceFunctionDeclarationTree
-
parameters
- Specified by:
parametersin interfaceFunctionDeclarationTree- Specified by:
parametersin interfaceFunctionTree
-
returnTypeClause
- Specified by:
returnTypeClausein interfaceFunctionDeclarationTree- Specified by:
returnTypeClausein interfaceFunctionTree
-
body
- Specified by:
bodyin interfaceFunctionDeclarationTree- Specified by:
bodyin interfaceFunctionTree
-
getKind
-
childrenIterator
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
accept
-
symbol
- Specified by:
symbolin interfaceHasFunctionSymbol
-
setSymbol
- Specified by:
setSymbolin interfaceHasFunctionSymbol
-