Interface MethodAccessor


public interface MethodAccessor
Represents an interface for invoking a method.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieve the underlying method.
    invoke(Object target, Object... args)
    Invoke the underlying method.
  • Method Details

    • invoke

      Object invoke(Object target, Object... args)
      Invoke the underlying method.
      Parameters:
      target - - the target instance, or NULL for a static method.
      args - - the arguments to pass to the method.
      Returns:
      The return value, or NULL for void methods.
    • getMethod

      Method getMethod()
      Retrieve the underlying method.
      Returns:
      The method.