Class Invocation


  • public final class Invocation
    extends Object
    Encapsulates a method invocation with its arguments.
    • Constructor Detail

      • Invocation

        public Invocation​(Method method,
                          Object[] args)
        Creates a new Invocation.
        Parameters:
        method - the invoked method
        args - the method arguments
    • Method Detail

      • getMethod

        public Method getMethod()
        Returns the method being invoked.
        Returns:
        the method
      • getArgs

        public Object[] getArgs()
        Returns a copy of the arguments passed to the method.
        Returns:
        the arguments