oracle.jdeveloper.jot
Interface JotConditional
- All Superinterfaces:
- JotBlockElement, JotElement, JotHasChildStatement, JotStatement
- All Known Subinterfaces:
- JotDo, JotFor, JotIf, JotWhile
- public interface JotConditional
- extends JotHasChildStatement
A JotConditional represents a conditional statement. JOT
specifies four types of conditional statements: do statements,
while statements, if statements, and
for statements. A JotConditional has at least
two elements: a conditional expression and a child statement. If
statements can have an optional else clause; for
statements have an initialization expression and an update expression.
- Since:
- 5.0
- See Also:
JotIf,
JotFor,
"Section 14.9 of the Java Language Specification",
"Section 14.11 of the Java Language Specification",
"Section 14.12 of the Java Language Specification",
"Section 14.13 of the Java Language Specification"
| Fields inherited from interface oracle.jdeveloper.jot.JotStatement |
BLOCK_STATEMENT, BREAK_STATEMENT, CASE_CLAUSE, CONTINUE_STATEMENT, DO_STATEMENT, ELSE_CLAUSE, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FOR_STATEMENT, IF_STATEMENT, RETURN_STATEMENT, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THROW_STATEMENT, TRY_STATEMENT, WHILE_STATEMENT |
| Methods inherited from interface oracle.jdeveloper.jot.JotHasChildStatement |
addBlock, addBreak, addContinue, addDo, addExpressionStatement, addExpressionStatement, addFor, addIf, addReturn, addStatement, addSwitch, addSynchronized, addThrow, addTry, addWhile, createAssignment, createMethodCall, createNestedMethodCall, getChildStatement |
| Methods inherited from interface oracle.jdeveloper.jot.JotStatement |
addLabel, getAsBlock, getAsBreak, getAsCase, getAsContinue, getAsDo, getAsExpressionStatement, getAsFor, getAsIf, getAsReturn, getAsSwitch, getAsSynchronized, getAsThrow, getAsTry, getAsWhile, getLabels, getStatementText, getStatementType, removeLabel |
getConditionalExpression
public JotExpression getConditionalExpression()
- Retrieves the expression associated with this conditional statement.
- Returns:
- the conditional expression
setConditionalExpression
public void setConditionalExpression(java.lang.String exp)
- Sets the expression associated with this conditional statement.
- Parameters:
exp - the conditional expression
Copyright ©1997, 2003, Oracle. All rights reserved.