java.lang.Object
com.broadleafcommerce.data.tracking.core.interlink.MethodArgument
All Implemented Interfaces:
Argument<Object>

public class MethodArgument extends Object implements Argument<Object>
Type of argument used for local java.lang.reflect.Method calls. Describes both the object value of the method param, and the index of the parameter in the method call.
  • Constructor Details

    • MethodArgument

      public MethodArgument(int index, Object value)
  • Method Details

    • getIndex

      public int getIndex()
      The index of the argument in the java.lang.reflect.Method call.
    • getValue

      public Object getValue()
      The primitive or complex object to pass as a method parameter. It is also possible to pass a JSON serialized version of an object here, in which case, the system will attempt to deserialize the object to the target type when making the method call. The latter case may be useful in circumstances where the caller does not have classpath access to the method parameter type on the execution side, but is able to provide a JSON serialized version of the object instance instead.
      Specified by:
      getValue in interface Argument<Object>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object