com.borland.jbuilder.jot
Interface JotMethodCall

All Superinterfaces:
JotExpression, JotMarker, JotSourceElement

public interface JotMethodCall
extends JotExpression

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

getFullName

public java.lang.String getFullName()
Returns the full name of the invoked method including any target references, e.g. obj.toString. If the method is a static method, then this name may also include a class identifier.

setFullName

public void setFullName(java.lang.String methodName)
Sets the full name of the invoked method including any target references, e.g. 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.

getObjectName

public java.lang.String getObjectName()
Returns the target reference of the method invocation. The object name does not include the actual name of the method.

setObjectName

public void setObjectName(java.lang.String name)
Sets the target reference of the method invocation. The object name does not include the actual name of the method. If name is null, then the object name is removed leaving only the method name.

getMethodName

public java.lang.String getMethodName()
Returns the name of the invoked method. The method name does not include the name of the target.

setMethodName

public void setMethodName(java.lang.String name)
Sets the name of the invoked method. The method name does not include the name of the target. name is not permitted to be null.

getArguments

public JotExpression[] getArguments()
Returns an array of JotExpression objects which represent the arguments to the invocation. If there are no arguments, then returns a zero-length array.

addArgument

public 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.

removeArgument

public void removeArgument(JotExpression arg)
Removes the specified argument from the method invocation.

getNestedMethodCall

public JotMethodCall getNestedMethodCall()

addNestedMethodCall

public JotMethodCall addNestedMethodCall(java.lang.String methodCallSource)

isNested

public boolean isNested()