|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotArrayInitializer
interface represents an array
initialization expression. An array initialization expression is used as
part of an array allocation expression to specify the values referenced
by the array. Array initialization expressions have the form:
new String[] { "One", "Two" } new int[][] { { 0, 0 }, { 0, 1 }, { 0, 2 } }
JotArrayAllocation
,
"Section 15.10 of the Java Language Specification Second Edition"Field Summary |
Method Summary | |
JotExpression |
addExpression(JotExpression marker,
boolean before,
java.lang.String exp)
Adds a new expression. |
JotExpression[] |
getExpressions()
Retrieves the expressions that make up this array initialization expression. |
void |
removeExpression(JotExpression exp)
Removes an existing expression. |
JotExpression |
setExpression(int idx,
java.lang.String exp)
Sets a specific expression. |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotExpression[] getExpressions()
JotExpression
spublic JotExpression setExpression(int idx, java.lang.String exp)
idx
- the index of the expression to setexp
- the new expression string
JotExpression
public JotExpression addExpression(JotExpression marker, boolean before, java.lang.String exp)
marker
- the expression to position relative to.before
- whether to position the new expression before or after
the marker expression; or, if the marker is null
,
whether to position the new expression at the beginning or
the end of the expression list.exp
- the new expression string
public void removeExpression(JotExpression exp)
|
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.