Class ElseifClauseTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.ElseifClauseTreeImpl
-
- All Implemented Interfaces:
ElseifClauseTree,StatementTree,Tree
public class ElseifClauseTreeImpl extends PHPTree implements ElseifClauseTree
-
-
Constructor Summary
Constructors Constructor Description ElseifClauseTreeImpl(InternalSyntaxToken elseifToken, ParenthesisedExpressionTree condition, InternalSyntaxToken colonToken, List<StatementTree> statements)ElseifClauseTreeImpl(InternalSyntaxToken elseifToken, ParenthesisedExpressionTree condition, StatementTree statement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(VisitorCheck visitor)Iterator<Tree>childrenIterator()Creates iterator for children of this node.SyntaxTokencolonToken()ParenthesisedExpressionTreecondition()SyntaxTokenelseifToken()Tree.KindgetKind()List<StatementTree>statements()-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
ElseifClauseTreeImpl
public ElseifClauseTreeImpl(InternalSyntaxToken elseifToken, ParenthesisedExpressionTree condition, StatementTree statement)
-
ElseifClauseTreeImpl
public ElseifClauseTreeImpl(InternalSyntaxToken elseifToken, ParenthesisedExpressionTree condition, InternalSyntaxToken colonToken, List<StatementTree> statements)
-
-
Method Detail
-
elseifToken
public SyntaxToken elseifToken()
- Specified by:
elseifTokenin interfaceElseifClauseTree
-
condition
public ParenthesisedExpressionTree condition()
- Specified by:
conditionin interfaceElseifClauseTree
-
colonToken
@Nullable public SyntaxToken colonToken()
- Specified by:
colonTokenin interfaceElseifClauseTree
-
statements
public List<StatementTree> statements()
- Specified by:
statementsin interfaceElseifClauseTree
-
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)
-
-