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
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMethodDeclarationTreeImpl
(List<AttributeGroupTree> attributeGroups, List<SyntaxToken> modifiersToken, InternalSyntaxToken functionToken, InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, ReturnTypeClauseTree returnTypeClause, Tree body) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VisitorCheck visitor) body()
Creates iterator for children of this node.getKind()
name()
void
setSymbol
(MethodSymbol symbol) symbol()
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
Constructor Details
-
MethodDeclarationTreeImpl
public MethodDeclarationTreeImpl(List<AttributeGroupTree> attributeGroups, List<SyntaxToken> modifiersToken, InternalSyntaxToken functionToken, @Nullable InternalSyntaxToken referenceToken, NameIdentifierTree name, ParameterListTree parameters, @Nullable ReturnTypeClauseTree returnTypeClause, Tree body)
-
-
Method Details
-
modifiers
Description copied from interface:MethodDeclarationTree
- Specified by:
modifiers
in interfaceMethodDeclarationTree
-
attributeGroups
- Specified by:
attributeGroups
in interfaceHasAttributes
-
functionToken
- Specified by:
functionToken
in interfaceFunctionTree
- Specified by:
functionToken
in interfaceMethodDeclarationTree
-
referenceToken
- Specified by:
referenceToken
in interfaceFunctionTree
- Specified by:
referenceToken
in interfaceMethodDeclarationTree
-
name
- Specified by:
name
in interfaceMethodDeclarationTree
-
parameters
- Specified by:
parameters
in interfaceFunctionTree
- Specified by:
parameters
in interfaceMethodDeclarationTree
-
returnTypeClause
- Specified by:
returnTypeClause
in interfaceFunctionTree
- Specified by:
returnTypeClause
in interfaceMethodDeclarationTree
-
body
Description copied from interface:MethodDeclarationTree
- Specified by:
body
in interfaceFunctionTree
- Specified by:
body
in interfaceMethodDeclarationTree
-
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
-
setSymbol
- Specified by:
setSymbol
in interfaceHasMethodSymbol
-
symbol
- Specified by:
symbol
in interfaceHasMethodSymbol
-