Class Trace

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static Trace callback  
      (package private) int ident  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Trace()
      Creates a new instance of Trace
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object intercept​(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy)
      All generated proxied methods call this method instead of the original method.
      static void main​(java.lang.String[] args)  
      static java.lang.Object newInstance​(java.lang.Class clazz)  
      (package private) void printIdent​(int ident)  
      • Methods inherited from class java.lang.Object

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

      • ident

        int ident
      • callback

        static Trace callback
    • Constructor Detail

      • Trace

        private Trace()
        Creates a new instance of Trace
    • Method Detail

      • newInstance

        public static java.lang.Object newInstance​(java.lang.Class clazz)
      • main

        public static void main​(java.lang.String[] args)
        Parameters:
        args - the command line arguments
      • intercept

        public java.lang.Object intercept​(java.lang.Object obj,
                                          java.lang.reflect.Method method,
                                          java.lang.Object[] args,
                                          MethodProxy proxy)
                                   throws java.lang.Throwable
        Description copied from interface: MethodInterceptor
        All generated proxied methods call this method instead of the original method. The original method may either be invoked by normal reflection using the Method object, or by using the MethodProxy (faster).
        Specified by:
        intercept in interface MethodInterceptor
        Parameters:
        obj - "this", the enhanced object
        method - intercepted Method
        args - argument array; primitive types are wrapped
        proxy - used to invoke super (non-intercepted method); may be called as many times as needed
        Returns:
        any value compatible with the signature of the proxied method. Method returning void will ignore this value.
        Throws:
        java.lang.Throwable - any exception may be thrown; if so, super method will not be invoked
        See Also:
        MethodProxy
      • printIdent

        void printIdent​(int ident)