|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a method invocation expression. See section 15.11 in the Java Language Specification for more information. The method invocation is an expression of the form o.o.m(a) where o.o.m is the full name (o.o being the object name and m the method name), and a is a list of argument expressions.
Method Summary | |
JotExpression |
addArgument(JotMarker marker,
boolean before,
java.lang.String value)
Creates a JotExpression object from the specified value and adds it to the method invocation. |
JotMethodCall |
addNestedMethodCall(java.lang.String methodCallSource)
|
JotExpression[] |
getArguments()
Returns an array of JotExpression objects which represent the arguments to the invocation. |
java.lang.String |
getFullName()
Returns the full name of the invoked method including any target references, e.g. |
java.lang.String |
getMethodName()
Returns the name of the invoked method. |
JotMethodCall |
getNestedMethodCall()
|
java.lang.String |
getObjectName()
Returns the target reference of the method invocation. |
boolean |
isNested()
|
void |
removeArgument(JotExpression arg)
Removes the specified argument from the method invocation. |
void |
setFullName(java.lang.String methodName)
Sets the full name of the invoked method including any target references, e.g. |
void |
setMethodName(java.lang.String name)
Sets the name of the invoked method. |
void |
setObjectName(java.lang.String name)
Sets the target reference of the method invocation. |
Methods inherited from interface com.borland.jbuilder.jot.JotExpression |
getAssignment, getCondition, getMethodCall, getNew, getOperation, getValue, getVariable, isConstant, isNull |
Methods inherited from interface com.borland.jbuilder.jot.JotMarker |
addUserData, getEndPosition, getStartPosition, getUserData |
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement |
getIndentLevel, getParent, getText, isModified, setModified, setText |
Method Detail |
public java.lang.String getFullName()
obj.toString
. If the method is a static method, then
this name may also include a class identifier.public void setFullName(java.lang.String methodName)
obj.toString
. If the method is a static method, then
this name may also include a class identifier. name
is
not permitted to be null
.public java.lang.String getObjectName()
public void setObjectName(java.lang.String name)
name
is
null
, then the object name is removed leaving only the
method name.public java.lang.String getMethodName()
public void setMethodName(java.lang.String name)
name
is not permitted to be
null
.public JotExpression[] getArguments()
public JotExpression addArgument(JotMarker marker, boolean before, java.lang.String value)
public void removeArgument(JotExpression arg)
public JotMethodCall getNestedMethodCall()
public JotMethodCall addNestedMethodCall(java.lang.String methodCallSource)
public boolean isNested()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |