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
-
-
Constructor Summary
Constructors Constructor Description FunctionDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, 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()NameIdentifierTreename()ParameterListTreeparameters()SyntaxTokenreferenceToken()ReturnTypeClauseTreereturnTypeClause()voidsetSymbol(FunctionSymbol symbol)FunctionSymbolsymbol()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
FunctionDeclarationTreeImpl
public FunctionDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, InternalSyntaxToken functionToken, @Nullable InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, @Nullable ReturnTypeClauseTree returnTypeClause, BlockTree body)
-
-
Method Detail
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroupsin interfaceHasAttributes
-
functionToken
public SyntaxToken functionToken()
- Specified by:
functionTokenin interfaceFunctionDeclarationTree- Specified by:
functionTokenin interfaceFunctionTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceTokenin interfaceFunctionDeclarationTree- Specified by:
referenceTokenin interfaceFunctionTree
-
name
public NameIdentifierTree name()
- Specified by:
namein interfaceFunctionDeclarationTree
-
parameters
public ParameterListTree parameters()
- Specified by:
parametersin interfaceFunctionDeclarationTree- Specified by:
parametersin interfaceFunctionTree
-
returnTypeClause
@Nullable public ReturnTypeClauseTree returnTypeClause()
- Specified by:
returnTypeClausein interfaceFunctionDeclarationTree- Specified by:
returnTypeClausein interfaceFunctionTree
-
body
public BlockTree body()
- Specified by:
bodyin interfaceFunctionDeclarationTree- 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)
-
symbol
public FunctionSymbol symbol()
- Specified by:
symbolin interfaceHasFunctionSymbol
-
setSymbol
public void setSymbol(FunctionSymbol symbol)
- Specified by:
setSymbolin interfaceHasFunctionSymbol
-
-