Interface InvocationContext


public interface InvocationContext
Represents the state when an invocation event occurred.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the array of arguments for the specified invocation.
    @Nullable Object
    Returns the instance a method was invoked upon.
    Returns the method invoked.
    long
    Returns the invocation start time in nanoseconds local to this machine.
  • Method Details

    • getStartTimeNanos

      long getStartTimeNanos()
      Returns the invocation start time in nanoseconds local to this machine.
      Returns:
      start time
    • getInstance

      @Nullable Object getInstance()
      Returns the instance a method was invoked upon.
      Returns:
      instance invoked or null if a static method
    • getMethod

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

      Object[] getArgs()
      Returns the array of arguments for the specified invocation.
      Returns:
      arguments