Class MethodDeclarationTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.declaration.MethodDeclarationTreeImpl
-
- All Implemented Interfaces:
HasMethodSymbol,ClassMemberTree,FunctionTree,HasAttributes,MethodDeclarationTree,Tree
public class MethodDeclarationTreeImpl extends PHPTree implements MethodDeclarationTree, HasMethodSymbol
-
-
Constructor Summary
Constructors Constructor Description MethodDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, List<SyntaxToken> modifiersToken, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, ReturnTypeClauseTree returnTypeClause, Tree body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)List<AttributeGroupTree>attributeGroups()Treebody()Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokenfunctionToken()Tree.KindgetKind()List<SyntaxToken>modifiers()NameIdentifierTreename()ParameterListTreeparameters()SyntaxTokenreferenceToken()ReturnTypeClauseTreereturnTypeClause()voidsetSymbol(MethodSymbol symbol)MethodSymbolsymbol()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
MethodDeclarationTreeImpl
public MethodDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, List<SyntaxToken> modifiersToken, InternalSyntaxToken functionToken, @Nullable InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, @Nullable ReturnTypeClauseTree returnTypeClause, Tree body)
-
-
Method Detail
-
modifiers
public List<SyntaxToken> modifiers()
Description copied from interface:MethodDeclarationTree- Specified by:
modifiersin interfaceMethodDeclarationTree
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroupsin interfaceHasAttributes
-
functionToken
public SyntaxToken functionToken()
- Specified by:
functionTokenin interfaceFunctionTree- Specified by:
functionTokenin interfaceMethodDeclarationTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceTokenin interfaceFunctionTree- Specified by:
referenceTokenin interfaceMethodDeclarationTree
-
name
public NameIdentifierTree name()
- Specified by:
namein interfaceMethodDeclarationTree
-
parameters
public ParameterListTree parameters()
- Specified by:
parametersin interfaceFunctionTree- Specified by:
parametersin interfaceMethodDeclarationTree
-
returnTypeClause
@Nullable public ReturnTypeClauseTree returnTypeClause()
- Specified by:
returnTypeClausein interfaceFunctionTree- Specified by:
returnTypeClausein interfaceMethodDeclarationTree
-
body
public Tree body()
Description copied from interface:MethodDeclarationTree- Specified by:
bodyin interfaceFunctionTree- Specified by:
bodyin interfaceMethodDeclarationTree
-
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)
-
setSymbol
public void setSymbol(MethodSymbol symbol)
- Specified by:
setSymbolin interfaceHasMethodSymbol
-
symbol
public MethodSymbol symbol()
- Specified by:
symbolin interfaceHasMethodSymbol
-
-