Class MethodEvent


  • public class MethodEvent
    extends java.lang.Object
    Captures the arguments and return value of a method call. Also contains the ProjectEvent class that should be created from this call.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodEvent​(java.lang.Class<? extends ProjectEvent> eventClass, java.lang.Object returnValue, java.lang.Object[] args)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] getArgs()
      Get the arguments from the method call
      java.lang.Class<? extends ProjectEvent> getEventClass()
      Get the class of event to be created
      java.lang.Object getReturnValue()
      Get the return value for the method call
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • MethodEvent

        public MethodEvent​(java.lang.Class<? extends ProjectEvent> eventClass,
                           java.lang.Object returnValue,
                           java.lang.Object[] args)
    • Method Detail

      • getArgs

        public java.lang.Object[] getArgs()
        Get the arguments from the method call
        Returns:
        the args passed to the method that was called.
      • getReturnValue

        public java.lang.Object getReturnValue()
        Get the return value for the method call
        Returns:
        the value returned by the method call
      • getEventClass

        public java.lang.Class<? extends ProjectEvent> getEventClass()
        Get the class of event to be created
        Returns:
        the type of object that the method was called on.
      • toString

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