Class ParameterTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.declaration.ParameterTreeImpl
-
- All Implemented Interfaces:
HasAttributes
,ParameterTree
,Tree
public class ParameterTreeImpl extends PHPTree implements ParameterTree
-
-
Constructor Summary
Constructors Constructor Description ParameterTreeImpl(List<AttributeGroupTree> attributeGroups, SyntaxToken visibility, DeclaredTypeTree type, InternalSyntaxToken referenceToken, InternalSyntaxToken ellipsisToken, VariableIdentifierTree variableIdentifier, InternalSyntaxToken equalToken, ExpressionTree initValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(VisitorCheck visitor)
List<AttributeGroupTree>
attributeGroups()
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.DeclaredTypeTree
declaredType()
SyntaxToken
ellipsisToken()
SyntaxToken
equalToken()
Tree.Kind
getKind()
ExpressionTree
initValue()
SyntaxToken
referenceToken()
TypeTree
type()
Deprecated.since 3.11 - UsedeclaredType()
instead.VariableIdentifierTree
variableIdentifier()
SyntaxToken
visibility()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
ParameterTreeImpl
public ParameterTreeImpl(List<AttributeGroupTree> attributeGroups, @Nullable SyntaxToken visibility, @Nullable DeclaredTypeTree type, @Nullable InternalSyntaxToken referenceToken, @Nullable InternalSyntaxToken ellipsisToken, VariableIdentifierTree variableIdentifier, @Nullable InternalSyntaxToken equalToken, @Nullable ExpressionTree initValue)
-
-
Method Detail
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroups
in interfaceHasAttributes
-
visibility
@Nullable public SyntaxToken visibility()
- Specified by:
visibility
in interfaceParameterTree
-
type
@Nullable @Deprecated public TypeTree type()
Deprecated.since 3.11 - UsedeclaredType()
instead.- Specified by:
type
in interfaceParameterTree
-
declaredType
public DeclaredTypeTree declaredType()
- Specified by:
declaredType
in interfaceParameterTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceToken
in interfaceParameterTree
-
ellipsisToken
@Nullable public SyntaxToken ellipsisToken()
- Specified by:
ellipsisToken
in interfaceParameterTree
-
variableIdentifier
public VariableIdentifierTree variableIdentifier()
- Specified by:
variableIdentifier
in interfaceParameterTree
-
equalToken
@Nullable public SyntaxToken equalToken()
- Specified by:
equalToken
in interfaceParameterTree
-
initValue
@Nullable public ExpressionTree initValue()
- Specified by:
initValue
in interfaceParameterTree
-
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)
-
-