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 voidaccept(VisitorCheck visitor)List<AttributeGroupTree>attributeGroups()Iterator<Tree>childrenIterator()Creates iterator for children of this node.DeclaredTypeTreedeclaredType()SyntaxTokenellipsisToken()SyntaxTokenequalToken()Tree.KindgetKind()ExpressionTreeinitValue()SyntaxTokenreferenceToken()TypeTreetype()Deprecated.since 3.11 - UsedeclaredType()instead.VariableIdentifierTreevariableIdentifier()SyntaxTokenvisibility()-
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:
attributeGroupsin interfaceHasAttributes
-
visibility
@Nullable public SyntaxToken visibility()
- Specified by:
visibilityin interfaceParameterTree
-
type
@Nullable @Deprecated public TypeTree type()
Deprecated.since 3.11 - UsedeclaredType()instead.- Specified by:
typein interfaceParameterTree
-
declaredType
public DeclaredTypeTree declaredType()
- Specified by:
declaredTypein interfaceParameterTree
-
referenceToken
@Nullable public SyntaxToken referenceToken()
- Specified by:
referenceTokenin interfaceParameterTree
-
ellipsisToken
@Nullable public SyntaxToken ellipsisToken()
- Specified by:
ellipsisTokenin interfaceParameterTree
-
variableIdentifier
public VariableIdentifierTree variableIdentifier()
- Specified by:
variableIdentifierin interfaceParameterTree
-
equalToken
@Nullable public SyntaxToken equalToken()
- Specified by:
equalTokenin interfaceParameterTree
-
initValue
@Nullable public ExpressionTree initValue()
- Specified by:
initValuein interfaceParameterTree
-
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)
-
-