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.
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