|
Extension SDK 9.0.5 | ||||||||||
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.JotCodeElement |
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotExpression[] getExpressions() throws JotInvalidElementException
JotExpression
s
JotInvalidElementException
public JotExpression setExpression(int idx, java.lang.String exp) throws JotInvalidElementException
idx
- the index of the expression to setexp
- the new expression string
JotExpression
JotInvalidElementException
public JotExpression addExpression(JotExpression marker, boolean before, java.lang.String exp) throws JotInvalidElementException
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
JotInvalidElementException
public void removeExpression(JotExpression exp) throws JotInvalidElementException
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.