|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JotMethodCall
interface corresponds to method invocation
expressions.
Method calls can be nested (for example, f().g()
). In this
case, the first method call (f()
) is the primary method call.
The second method call (g()
) can be retrieved by calling
the getNestedMethodCall
method on the initial method call
object.
Field Summary |
Method Summary | |
JotExpression |
addArgument(JotExpression marker,
boolean before,
java.lang.String arg)
Adds an arguement to the method invocation. |
JotExpression |
addArgument(java.lang.String arg)
Adds an arguement to the end of this method invocation. |
JotExpression[] |
getArguments()
Retrieves the arguments to the method invocation. |
java.lang.String |
getMethodName()
Retrieves the name of the method being invoked. |
java.lang.String |
getObjectName()
Retrieves the name of the object on which this method call is being invoked. |
void |
removeArgument(JotExpression argument)
Removes an existing argument. |
void |
setMethodName(java.lang.String name)
Sets the name of the method being invoked. |
void |
setObjectName(java.lang.String name)
Sets the name of the object on which this methoc call is being invoked. |
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 java.lang.String getObjectName() throws JotInvalidElementException
JotInvalidElementException
public void setObjectName(java.lang.String name) throws JotInvalidElementException
name
- the name of the object
JotInvalidElementException
public java.lang.String getMethodName() throws JotInvalidElementException
JotInvalidElementException
public void setMethodName(java.lang.String name) throws JotInvalidElementException
JotInvalidElementException
public JotExpression[] getArguments() throws JotInvalidElementException
JotInvalidElementException
public JotExpression addArgument(JotExpression marker, boolean before, java.lang.String arg) throws JotInvalidElementException
marker
- an existing argument to position relative to, or
null
if the argument should be positioned at the beginning or
end of this block.before
- whether to position the new argument before or after the
existing marker argument; or if marker
is null
,
whether to position the new argument at the beginning or the end of this block.arg
- the new argument to add.
JotExpression
representing the new argument.
JotInvalidElementException
public JotExpression addArgument(java.lang.String arg) throws JotInvalidElementException
arg
- the new argument to add.
JotExpression
representing the new argument.
JotInvalidElementException
public void removeArgument(JotExpression argument) throws JotInvalidElementException
argument
- the argument to remove.
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.