Class IfStatementTreeImpl
- java.lang.Object
-
- org.sonar.php.tree.impl.PHPTree
-
- org.sonar.php.tree.impl.statement.IfStatementTreeImpl
-
- All Implemented Interfaces:
IfStatementTree
,StatementTree
,Tree
public class IfStatementTreeImpl extends PHPTree implements IfStatementTree
-
-
Constructor Summary
Constructors Constructor Description IfStatementTreeImpl(InternalSyntaxToken ifToken, ParenthesisedExpressionTree condition, InternalSyntaxToken colonToken, List<StatementTree> statements, List<ElseifClauseTree> elseifClauses, ElseClauseTree elseClause, InternalSyntaxToken endifToken, InternalSyntaxToken eosToken)
IfStatementTreeImpl(InternalSyntaxToken ifToken, ParenthesisedExpressionTree condition, StatementTree statement, List<ElseifClauseTree> elseifClauses, ElseClauseTree elseClause)
-
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
colonToken()
ParenthesisedExpressionTree
condition()
ElseClauseTree
elseClause()
List<ElseifClauseTree>
elseifClauses()
SyntaxToken
endifToken()
SyntaxToken
eosToken()
Tree.Kind
getKind()
SyntaxToken
ifToken()
List<StatementTree>
statements()
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Constructor Detail
-
IfStatementTreeImpl
public IfStatementTreeImpl(InternalSyntaxToken ifToken, ParenthesisedExpressionTree condition, StatementTree statement, List<ElseifClauseTree> elseifClauses, ElseClauseTree elseClause)
-
IfStatementTreeImpl
public IfStatementTreeImpl(InternalSyntaxToken ifToken, ParenthesisedExpressionTree condition, InternalSyntaxToken colonToken, List<StatementTree> statements, List<ElseifClauseTree> elseifClauses, ElseClauseTree elseClause, InternalSyntaxToken endifToken, InternalSyntaxToken eosToken)
-
-
Method Detail
-
ifToken
public SyntaxToken ifToken()
- Specified by:
ifToken
in interfaceIfStatementTree
-
condition
public ParenthesisedExpressionTree condition()
- Specified by:
condition
in interfaceIfStatementTree
-
colonToken
@Nullable public SyntaxToken colonToken()
- Specified by:
colonToken
in interfaceIfStatementTree
-
statements
public List<StatementTree> statements()
- Specified by:
statements
in interfaceIfStatementTree
-
elseifClauses
public List<ElseifClauseTree> elseifClauses()
- Specified by:
elseifClauses
in interfaceIfStatementTree
-
elseClause
@Nullable public ElseClauseTree elseClause()
- Specified by:
elseClause
in interfaceIfStatementTree
-
endifToken
@Nullable public SyntaxToken endifToken()
- Specified by:
endifToken
in interfaceIfStatementTree
-
eosToken
@Nullable public SyntaxToken eosToken()
- Specified by:
eosToken
in interfaceIfStatementTree
-
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)
-
-