oracle.jdeveloper.jot
Interface JotElse
- All Superinterfaces:
- JotBlockElement, JotCodeElement, JotElement, JotHasChildStatement, JotStatement
- public interface JotElse
- extends JotHasChildStatement
A JotElse
represents the else clause of an if statement.
An else clause contains a single sub-statement. Adding a new sub-statement
will remove any existing sub-statement. To remove the else clause entirely,
call the removeElseClause
method on JotIf
.
- Since:
- 5.0
- See Also:
removeElseClause()
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 |
Methods inherited from interface oracle.jdeveloper.jot.JotCodeElement |
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
getOwningIf
public JotIf getOwningIf()
throws JotInvalidElementException
- Retrieves the owning if statement.
- Returns:
- the
JotIf
that owns this else clause.
- Throws:
JotInvalidElementException
Copyright © 1997, 2004, Oracle. All rights reserved.