Class MethodCall
java.lang.Object
|
+--MethodCall
- All Implemented Interfaces:
- java.io.Serializable
- public class MethodCall
- extends java.lang.Object
- implements java.io.Serializable
The class `MethodCall' represents a method call in a frame template.
- See Also:
- Serialized Form
Constructor Summary |
MethodCall(java.lang.String methodName,
java.util.Vector actualParameters)
Constructs this method call. |
Method Summary |
java.lang.Object[] |
getActualParameters()
Returns the list of actual parameters for this method call - as an
array of objects. |
java.lang.String |
getMethodName()
Returns the name of the method to be called. |
java.lang.Class[] |
getParameterTypes()
Returns the list of parameter types for this method call - as an
array of classes. |
java.lang.Object |
invoke(java.lang.Object object)
Returns the name of the method to be called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodCall
public MethodCall(java.lang.String methodName,
java.util.Vector actualParameters)
- Constructs this method call.
- Parameters:
methodName
- The name of the method to be called.actualParameters
- The actual parameters of the method call.
invoke
public java.lang.Object invoke(java.lang.Object object)
- Returns the name of the method to be called.
- Parameters:
object
- The object on which the method is to be invoked.- Returns:
- The value returned by the method call.
getMethodName
public java.lang.String getMethodName()
- Returns the name of the method to be called.
- Returns:
- The method name.
getParameterTypes
public java.lang.Class[] getParameterTypes()
- Returns the list of parameter types for this method call - as an
array of classes.
- Returns:
- The array of parameter types for this method call.
getActualParameters
public java.lang.Object[] getActualParameters()
- Returns the list of actual parameters for this method call - as an
array of objects.
- Returns:
- The array of actual parameters of this method call.