|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotClassAllocation
interface represents a class allocation
expression. Class allocation expressions create new object instances. Class
allocation expressions extend basic allocation expressions by optionally
providing arguments in the form of expressions that are passed to the
appropriate object constructor. Class allocation expressions have the form:
new Panel(); new Integer(10); new String(myBytes, 0, myBytes.length, getConverter())
Field Summary |
Method Summary | |
JotExpression |
addArgument(JotExpression marker,
boolean before,
java.lang.String exp)
Adds a new argument. |
JotExpression[] |
getArguments()
Retrieves the arguments being passed to the class constructor. |
void |
removeArgument(JotExpression oldExp)
Removes an existing argument. |
JotExpression |
setArgument(int idx,
java.lang.String exp)
Sets an argument in the call to the constructor. |
Methods inherited from interface oracle.jdeveloper.jot.JotAllocation |
getObjectType, setObjectType |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Method Detail |
public JotExpression[] getArguments()
public JotExpression setArgument(int idx, java.lang.String exp)
idx
- the index of the argument to add.exp
- the argument expression string.
JotExpression
.public JotExpression addArgument(JotExpression marker, boolean before, java.lang.String exp)
marker
- the argument to position relative to.before
- whether to position the new argument before or after
the marker argument; or, if the marker is null
,
whether to position the new argument at the beginning or
the end of the argument list.exp
- the new argument string
public void removeArgument(JotExpression oldExp)
|
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.