Class RecordedInvocation


  • final class RecordedInvocation
    extends java.lang.Object
    Detached representation of a method invocation. From Commons [proxy] v2 branch.
    Since:
    3.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] arguments  
      private java.lang.reflect.Method invokedMethod  
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordedInvocation​(java.lang.reflect.Method invokedMethod, java.lang.Object[] arguments)
      Create a new RecordedInvocation instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void convert​(java.lang.StringBuilder buffer, java.lang.Object input)
      Add a string representation of input to buffer.
      java.lang.Object[] getArguments()
      Get the arguments.
      java.lang.reflect.Method getInvokedMethod()
      Get the invokedMethod.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • invokedMethod

        private final java.lang.reflect.Method invokedMethod
      • arguments

        private final java.lang.Object[] arguments
    • Constructor Detail

      • RecordedInvocation

        public RecordedInvocation​(java.lang.reflect.Method invokedMethod,
                                  java.lang.Object[] arguments)
        Create a new RecordedInvocation instance.
        Parameters:
        invokedMethod -
        arguments -
    • Method Detail

      • getInvokedMethod

        public java.lang.reflect.Method getInvokedMethod()
        Get the invokedMethod.
        Returns:
        Method
      • getArguments

        public java.lang.Object[] getArguments()
        Get the arguments.
        Returns:
        Object[]
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • convert

        protected void convert​(java.lang.StringBuilder buffer,
                               java.lang.Object input)
        Add a string representation of input to buffer.
        Parameters:
        buffer - the buffer to append the string representation of the input object.
        input - the input object has to be serialized to string.