|
Extension SDK | |||||||||
| 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.JotElement |
getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
| Method Detail |
public java.lang.String getForInitialization()
for statement.
String encapsulating the initialization
code.public JotForInitializer getForInitializer()
public void setForInitialization(java.lang.String newInit)
for statement.
newInit - the new initialization codepublic JotExpression getConditionalExpression()
for statement.
This expression will be null if the for statement does not
include a condition.
getConditionalExpression in interface JotConditionalpublic void setConditionalExpression(java.lang.String exp)
for statement.
Setting the expression to null will remove the expression,
setConditionalExpression in interface JotConditionalexp - the new conditional expression.public JotStatementExpression[] getForUpdate()
JotStatementExpressions objects
representing the update clause expressions.
public JotStatementExpression addForUpdateExpression(JotStatementExpression marker,
boolean before,
java.lang.String exp)
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.
public void removeForUpdateExpression(JotStatementExpression exp)
exp - the expression to remove
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.