Class AbstractClosureInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Direct Known Subclasses:
    ClosureInvocationHandler, DelegatingInvocationHandler

    public abstract class AbstractClosureInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.Object doInvoke​(java.lang.reflect.Method method, java.lang.Object[] args)  
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      protected boolean isEquals​(java.lang.reflect.Method method)  
      protected boolean isHashCode​(java.lang.reflect.Method method)  
      protected boolean isToString​(java.lang.reflect.Method method)  
      protected java.lang.String proxyToString​(java.lang.Object proxy)  
      • Methods inherited from class java.lang.Object

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

      • AbstractClosureInvocationHandler

        public AbstractClosureInvocationHandler()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • proxyToString

        protected java.lang.String proxyToString​(java.lang.Object proxy)
        Parameters:
        proxy - the proxy instance. May be used by inheritors.
      • doInvoke

        protected abstract java.lang.Object doInvoke​(java.lang.reflect.Method method,
                                                     java.lang.Object[] args)
                                              throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • isHashCode

        protected boolean isHashCode​(java.lang.reflect.Method method)
      • isToString

        protected boolean isToString​(java.lang.reflect.Method method)
      • isEquals

        protected boolean isEquals​(java.lang.reflect.Method method)