Extension SDK 10.1.2


oracle.jdeveloper.jot
Interface JotIf

All Superinterfaces:
JotBlockElement, JotCodeElement, JotConditional, JotElement, JotHasChildStatement, JotStatement

public interface JotIf
extends JotConditional

The JotIf interface represents an if statement.

Since:
5.0

Field Summary

 

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

 

Fields inherited from interface oracle.jdeveloper.jot.JotBlockElement
LOCAL_CLASS_TYPE, STATEMENT_TYPE, VARIABLE_DECLARATION_TYPE

 

Method Summary
 JotElse createElseClause()
          Creates a new else clause.
 JotElse getElseClause()
          Retrieves the else clause associated with this if statement.
 void removeElseClause()
          Removes the else clause associated with this if statement.

 

Methods inherited from interface oracle.jdeveloper.jot.JotConditional
getConditionalExpression, setConditionalExpression

 

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.JotBlockElement
getAsLocalClass, getAsStatement, getAsVariableDeclaration, getElementType

 

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

 

Method Detail

getElseClause

public JotElse getElseClause()
                      throws JotInvalidElementException
Retrieves the else clause associated with this if statement.
Returns:
the JotElse representing the else clause.
Throws:
JotInvalidElementException

createElseClause

public JotElse createElseClause()
                         throws JotInvalidElementException
Creates a new else clause. If an else clause already exists, the existing clause is returned.
Returns:
the JotElse representing the else clause.
Throws:
JotInvalidElementException

removeElseClause

public void removeElseClause()
                      throws JotInvalidElementException
Removes the else clause associated with this if statement.
Throws:
JotInvalidElementException

Extension SDK


Copyright © 1997, 2004, Oracle. All rights reserved.