|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A JotForInitialzer represents the initialization clause of a for statement. An initialization clause can contain either a variable declaration (with one or more variables) or a list of statement expressions. The initializer can also be empty.
Method Summary | |
JotStatementExpression |
addExpression(JotStatementExpression marker,
boolean before,
java.lang.String exp)
Adds a new expression to this initialization clause. |
JotStatementExpression[] |
getExpressions()
Retrieves the list of statement expressions contained in this initialization clause. |
JotVariableDeclaration |
getVariableDeclaration()
Retrieves the variable declaration contained in this initialization clause, or null if this clause does not contain a variable declaration. |
void |
removeExpression(JotStatementExpression exp)
Removes an existing expression from this initialization clause. |
void |
setInitializationText(java.lang.String text)
Sets the text of this initialization clause. |
JotVariableDeclaration |
setVariableDeclaration(java.lang.String vType,
java.lang.String vName)
Sets the contents of this initialization clause to a variable declaration. |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotVariableDeclaration getVariableDeclaration()
null
if this clause does not contain a variable declaration.
public JotVariableDeclaration setVariableDeclaration(java.lang.String vType, java.lang.String vName)
vType
- the type of the variable declarationvName
- the name of the first variable of the declaration.public JotStatementExpression[] getExpressions()
public JotStatementExpression addExpression(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 removeExpression(JotStatementExpression exp)
exp
- the expression to removepublic void setInitializationText(java.lang.String text)
|
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.