Class MethodSignature

java.lang.Object
org.springframework.binding.method.MethodSignature

public class MethodSignature extends Object
A specification for a method consisting of the methodName and an optional set of named arguments. This class provides the ability to resolve a method with parameters and evaluate its argument values as part of a method invoker attempt.
Author:
Keith Donald, Jeremy Grelle
  • Constructor Details

    • MethodSignature

      public MethodSignature(String methodName)
      Creates a method signature with no parameters.
      Parameters:
      methodName - the name of the method
    • MethodSignature

      public MethodSignature(String methodName, Parameter parameter)
      Creates a method signature with a single parameter.
      Parameters:
      methodName - the name of the method
      parameter - the method parameter
    • MethodSignature

      public MethodSignature(String methodName, Parameters parameters)
      Creates a method signature with a list of parameters.
      Parameters:
      methodName - the name of the method
      parameters - the method parameters
  • Method Details

    • getMethodName

      public String getMethodName()
      Returns the method name.
    • getParameters

      public Parameters getParameters()
      Returns the method parameters.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object