Class MethodInvocation

java.lang.Object
COM.TIBCO.hawk.talon.MethodInvocation
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MethodSubscription

public class MethodInvocation extends Object implements Serializable
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 Details

    • MethodInvocation

      public MethodInvocation(String methodName, DataElement[] args)
      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

      public String getMethodName()
      Returns the method name
      Returns:
      The method name
    • getArguments

      public DataElement[] 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

      public Object getArgumentValue(String argName)
      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

      public boolean equals(Object obj)
      Compares this object against the specified object.

      Two MethodInvocation objects are equal if they have the same method name and equalent argument lists.

      Overrides:
      equals in class Object
      Returns:
      true if the two objects are equal.
    • hashCode

      public int hashCode()
      Returns a hashcode for this Integer.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • toString

      public String toString()
      Returns a string representation of this MethodInvocation
      Overrides:
      toString in class Object