Package org.sonar.plugins.java.api.tree
Interface IfStatementTree
-
- All Superinterfaces:
StatementTree
,Tree
- All Known Implementing Classes:
IfStatementTreeImpl
@Beta public interface IfStatementTree extends StatementTree
'if' statement. JLS 14.9if (
condition()
)thenStatement()
if (condition()
)thenStatement()
elseelseStatement()
- Since:
- Java 1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SyntaxToken
closeParenToken()
ExpressionTree
condition()
SyntaxToken
elseKeyword()
StatementTree
elseStatement()
SyntaxToken
ifKeyword()
SyntaxToken
openParenToken()
StatementTree
thenStatement()
-
-
-
Method Detail
-
ifKeyword
SyntaxToken ifKeyword()
-
openParenToken
SyntaxToken openParenToken()
-
condition
ExpressionTree condition()
-
closeParenToken
SyntaxToken closeParenToken()
-
thenStatement
StatementTree thenStatement()
-
elseKeyword
@Nullable SyntaxToken elseKeyword()
-
elseStatement
@Nullable StatementTree elseStatement()
-
-