org.logicalcobwebs.cglib.proxy
Class MethodInterceptorGenerator

java.lang.Object
  extended by org.logicalcobwebs.cglib.proxy.MethodInterceptorGenerator
All Implemented Interfaces:
CallbackGenerator

 class MethodInterceptorGenerator
extends java.lang.Object
implements CallbackGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.logicalcobwebs.cglib.proxy.CallbackGenerator
CallbackGenerator.Context
 
Field Summary
private static Type ABSTRACT_METHOD_ERROR
           
private static Signature FIND_PROXY
           
(package private) static java.lang.String FIND_PROXY_NAME
           
(package private) static java.lang.Class[] FIND_PROXY_TYPES
           
private static Signature GET_CLASS_LOADER
           
private static Signature GET_DECLARING_CLASS
           
static MethodInterceptorGenerator INSTANCE
           
private static Signature INTERCEPT
           
private static Signature MAKE_PROXY
           
private static Type METHOD
           
private static Type METHOD_INTERCEPTOR
           
private static Type METHOD_PROXY
           
private static Signature TO_STRING
           
 
Constructor Summary
MethodInterceptorGenerator()
           
 
Method Summary
 void generate(ClassEmitter ce, CallbackGenerator.Context context)
           
 void generateFindProxy(ClassEmitter ce, java.util.Map sigMap)
           
 void generateStatic(CodeEmitter e, CallbackGenerator.Context context)
           
private  java.lang.String getAccessName(CallbackGenerator.Context context, java.lang.reflect.Method method)
           
private  java.lang.String getFieldName(CallbackGenerator.Context context, java.lang.reflect.Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MethodInterceptorGenerator INSTANCE

FIND_PROXY_NAME

static final java.lang.String FIND_PROXY_NAME
See Also:
Constant Field Values

FIND_PROXY_TYPES

static final java.lang.Class[] FIND_PROXY_TYPES

FIND_PROXY

private static final Signature FIND_PROXY

ABSTRACT_METHOD_ERROR

private static final Type ABSTRACT_METHOD_ERROR

METHOD

private static final Type METHOD

METHOD_PROXY

private static final Type METHOD_PROXY

METHOD_INTERCEPTOR

private static final Type METHOD_INTERCEPTOR

GET_DECLARING_CLASS

private static final Signature GET_DECLARING_CLASS

GET_CLASS_LOADER

private static final Signature GET_CLASS_LOADER

MAKE_PROXY

private static final Signature MAKE_PROXY

INTERCEPT

private static final Signature INTERCEPT

TO_STRING

private static final Signature TO_STRING
Constructor Detail

MethodInterceptorGenerator

MethodInterceptorGenerator()
Method Detail

generate

public void generate(ClassEmitter ce,
                     CallbackGenerator.Context context)
Specified by:
generate in interface CallbackGenerator

getFieldName

private java.lang.String getFieldName(CallbackGenerator.Context context,
                                      java.lang.reflect.Method method)

getAccessName

private java.lang.String getAccessName(CallbackGenerator.Context context,
                                       java.lang.reflect.Method method)

generateStatic

public void generateStatic(CodeEmitter e,
                           CallbackGenerator.Context context)
Specified by:
generateStatic in interface CallbackGenerator

generateFindProxy

public void generateFindProxy(ClassEmitter ce,
                              java.util.Map sigMap)