|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A JotFor represents a for statement. A for statement
contains three expressions, any or all of which can be null, and a
child statement.
| 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 | |
JotStatementExpression |
addForUpdateExpression(JotStatementExpression marker,
boolean before,
java.lang.String exp)
Adds a new expression to the update clause of this for statement. |
JotExpression |
getConditionalExpression()
Retrieves the conditional expression of the for statement. |
java.lang.String |
getForInitialization()
Retrieves the intialization code of the for statement. |
JotForInitializer |
getForInitializer()
Retrieves the JotForInitializer that represents the initialization clause of this for statement |
JotStatementExpression[] |
getForUpdate()
Retrieves the expression comprising the update clause of this statement. |
void |
removeForUpdateExpression(JotStatementExpression exp)
Removes an existing expression from the update clause. |
void |
setConditionalExpression(java.lang.String exp)
Sets the conditional expression of this for statement. |
void |
setForInitialization(java.lang.String newInit)
Sets the intialization code the for 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.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 |
public java.lang.String getForInitialization()
throws JotInvalidElementException
for statement.
String encapsulating the initialization
code.
JotInvalidElementException
public JotForInitializer getForInitializer()
throws JotInvalidElementException
JotInvalidElementException
public void setForInitialization(java.lang.String newInit)
throws JotInvalidElementException
for statement.
newInit - the new initialization code
JotInvalidElementException
public JotExpression getConditionalExpression()
throws JotInvalidElementException
for statement.
This expression will be null if the for statement does not
include a condition.
getConditionalExpression in interface JotConditionalJotInvalidElementException
public void setConditionalExpression(java.lang.String exp)
throws JotInvalidElementException
for statement.
Setting the expression to null will remove the expression,
setConditionalExpression in interface JotConditionalexp - the new conditional expression.
JotInvalidElementException
public JotStatementExpression[] getForUpdate()
throws JotInvalidElementException
JotStatementExpressions objects
representing the update clause expressions.
JotInvalidElementException
public JotStatementExpression addForUpdateExpression(JotStatementExpression marker,
boolean before,
java.lang.String exp)
throws JotInvalidElementException
marker - an existing expression to position relative to, or
null if the expression should be positioned at the beginning or
end of the update clause.before - whether to position the new expression before or after the
existing marker expression; or if marker is null,
whether to position the new expression at the beginning or the end of
the update clauseexp - the new expression to add.
JotInvalidElementException
public void removeForUpdateExpression(JotStatementExpression exp)
throws JotInvalidElementException
exp - the expression to remove
JotInvalidElementException
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.