Interface IfStatementTree
- All Superinterfaces:
ExplicitStatementTree,HasTextRange,JclTree,StatementTree
An IF/THEN/ELSE/ENDIF statement.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sonar.plugins.jcl.api.tree.JclTree
JclTree.Kind -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface org.sonar.plugins.jcl.api.tree.statement.ExplicitStatementTree
identifier, name, operationMethods inherited from interface org.sonar.plugins.jcl.api.tree.HasTextRange
textRangeMethods inherited from interface org.sonar.plugins.jcl.api.tree.JclTree
children, getKind, is, parentMethods inherited from interface org.sonar.plugins.jcl.api.tree.statement.StatementTree
nameValue, operationValue
-
Method Details
-
conditionalExpression
BooleanExpressionTree conditionalExpression()- Returns:
- the statement condition.
-
thenKeyword
SyntaxToken thenKeyword()- Returns:
- the THEN keyword token.
-
thenStatements
List<StatementTree> thenStatements()- Returns:
- the list of statements in the THEN block.
-
elseStatement
- Returns:
- the ELSE part of the statement, if present.
-
endIfStatement
EndIfStatementTree endIfStatement()- Returns:
- the ENDIF statement.
-