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