Class VariableDeclarationTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.VariableDeclarationTreeImpl
-
- All Implemented Interfaces:
VariableDeclarationTree
,Tree
public class VariableDeclarationTreeImpl extends PHPTree implements VariableDeclarationTree
-
-
Constructor Summary
Constructors Constructor Description VariableDeclarationTreeImpl(IdentifierTree identifier, InternalSyntaxToken equalToken, ExpressionTree initialisation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(VisitorCheck visitor)
Iterator<Tree>
childrenIterator()
Creates iterator for children of this node.SyntaxToken
equalToken()
Tree.Kind
getKind()
IdentifierTree
identifier()
ExpressionTree
initValue()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
VariableDeclarationTreeImpl
public VariableDeclarationTreeImpl(IdentifierTree identifier, @Nullable InternalSyntaxToken equalToken, @Nullable ExpressionTree initialisation)
-
-
Method Detail
-
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
-
identifier
public IdentifierTree identifier()
- Specified by:
identifier
in interfaceVariableDeclarationTree
-
equalToken
@Nullable public SyntaxToken equalToken()
- Specified by:
equalToken
in interfaceVariableDeclarationTree
-
initValue
@Nullable public ExpressionTree initValue()
- Specified by:
initValue
in interfaceVariableDeclarationTree
-
accept
public void accept(VisitorCheck visitor)
-
-