com.borland.jbuilder.jot
Interface JotIf

All Superinterfaces:
JotMarker, JotSourceElement, JotStatement

public interface JotIf
extends JotStatement

This interface represents a Java if statement. See section 14.8 in the Java Language Specification for more information.


Method Summary
 JotCodeBlock getCodeBlock()
          Returns the body of the then statement.
 JotExpression getCondition()
          Returns the conditional expression.
 JotStatement getElse()
          Returns the statement that would be exectued if the condition expression evaluates to false.
 JotStatement getThen()
          Returns the statement that would be executed if the condition expression evaluates to true.
 
Methods inherited from interface com.borland.jbuilder.jot.JotStatement
getStatements
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement
getIndentLevel, getParent, getText, isModified, setModified, setText
 

Method Detail

getCondition

public JotExpression getCondition()
Returns the conditional expression.

getThen

public JotStatement getThen()
Returns the statement that would be executed if the condition expression evaluates to true.

getElse

public JotStatement getElse()
Returns the statement that would be exectued if the condition expression evaluates to false. May return null if no else statement is present in the source file.

getCodeBlock

public JotCodeBlock getCodeBlock()
Returns the body of the then statement.
Specified by:
getCodeBlock in interface JotStatement