Package COM.TIBCO.hawk.talon
Class MethodInvocation
java.lang.Object
COM.TIBCO.hawk.talon.MethodInvocation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MethodSubscription
This class is used to represent a method invocation.
A MethodInvocation should be constructed in accordance with the MethodDescriptor of the target method.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this object against the specified object.Returns the array of DataElement objects representing the method arguments.getArgumentValue(String argName) Returns the DataElement object representing the named method argument.Returns the method nameinthashCode()Returns a hashcode for this Integer.toString()Returns a string representation of this MethodInvocation
-
Constructor Details
-
MethodInvocation
- Parameters:
methodName- The name of the method. May not be null or empty string.args- An array of DataElement objects representing the arguments of the method. May be null or empty array to indicate no arguments. The names and values of these elements should correspond to what was described in the MethodDescriptor for this method. They must be serializable types.- See Also:
-
-
Method Details
-
getMethodName
Returns the method name- Returns:
- The method name
-
getArguments
Returns the array of DataElement objects representing the method arguments. Returns an empty array if no arguments were provided.- Returns:
- The array of DataElement objects representing the method arguments
-
getArgumentValue
Returns the DataElement object representing the named method argument. Returns null if no matching argument was provided.- Returns:
- The DataElement object representing the method named argument
-
equals
Compares this object against the specified object.Two MethodInvocation objects are equal if they have the same method name and equalent argument lists.
-
hashCode
public int hashCode()Returns a hashcode for this Integer. -
toString
Returns a string representation of this MethodInvocation
-