org.sonar.plugins.java.api.tree
Interface IfStatementTree

All Superinterfaces:
StatementTree, Tree

@Beta
public interface IfStatementTree
extends StatementTree

'if' statement. JLS 14.9

   if (condition()) thenStatement()
   if (condition()) thenStatement() else elseStatement()
 

Since:
Java 1.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.tree.Tree
Tree.Kind
 
Method Summary
 ExpressionTree condition()
           
 StatementTree elseStatement()
           
 StatementTree thenStatement()
           
 
Methods inherited from interface org.sonar.plugins.java.api.tree.Tree
accept, is
 

Method Detail

condition

ExpressionTree condition()

thenStatement

StatementTree thenStatement()

elseStatement

@Nullable
StatementTree elseStatement()


Copyright © 2012-2014 SonarSource. All Rights Reserved.