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 void
accept(VisitorCheck visitor)
List<AttributeGroupTree>
attributeGroups()
Tree
body()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
functionToken()
Tree.Kind
getKind()
List<SyntaxToken>
modifiers()
NameIdentifierTree
name()
ParameterListTree
parameters()
SyntaxToken
referenceToken()
ReturnTypeClauseTree
returnTypeClause()
void
setSymbol(MethodSymbol symbol)
MethodSymbol
symbol()
-
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:
modifiers
in interfaceMethodDeclarationTree
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroups
in interfaceHasAttributes
-
functionToken
public SyntaxToken functionToken()
- Specified by:
functionToken
in interfaceFunctionTree
- Specified by:
functionToken
in interfaceMethodDeclarationTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceToken
in interfaceFunctionTree
- Specified by:
referenceToken
in interfaceMethodDeclarationTree
-
name
public NameIdentifierTree name()
- Specified by:
name
in interfaceMethodDeclarationTree
-
parameters
public ParameterListTree parameters()
- Specified by:
parameters
in interfaceFunctionTree
- Specified by:
parameters
in interfaceMethodDeclarationTree
-
returnTypeClause
@Nullable public ReturnTypeClauseTree returnTypeClause()
- Specified by:
returnTypeClause
in interfaceFunctionTree
- Specified by:
returnTypeClause
in interfaceMethodDeclarationTree
-
body
public Tree body()
Description copied from interface:MethodDeclarationTree
- Specified by:
body
in interfaceFunctionTree
- Specified by:
body
in interfaceMethodDeclarationTree
-
childrenIterator
public Iterator<Tree> 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
public void accept(VisitorCheck visitor)
-
setSymbol
public void setSymbol(MethodSymbol symbol)
- Specified by:
setSymbol
in interfaceHasMethodSymbol
-
symbol
public MethodSymbol symbol()
- Specified by:
symbol
in interfaceHasMethodSymbol
-
-