org.logicalcobwebs.cglib.reflect
Class MethodDelegate.Generator
java.lang.Object
org.logicalcobwebs.cglib.core.AbstractClassGenerator
org.logicalcobwebs.cglib.reflect.MethodDelegate.Generator
- All Implemented Interfaces:
- ClassGenerator
- Enclosing class:
- MethodDelegate
public static class MethodDelegate.Generator
- extends AbstractClassGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE
private static final AbstractClassGenerator.Source SOURCE
NEW_INSTANCE
private static final Signature NEW_INSTANCE
METHOD_DELEGATE
private static final Type METHOD_DELEGATE
target
private java.lang.Object target
targetClass
private java.lang.Class targetClass
methodName
private java.lang.String methodName
iface
private java.lang.Class iface
MethodDelegate.Generator
public MethodDelegate.Generator()
setTarget
public void setTarget(java.lang.Object target)
setTargetClass
public void setTargetClass(java.lang.Class targetClass)
setMethodName
public void setMethodName(java.lang.String methodName)
setInterface
public void setInterface(java.lang.Class iface)
getDefaultClassLoader
protected java.lang.ClassLoader getDefaultClassLoader()
- Specified by:
getDefaultClassLoader
in class AbstractClassGenerator
create
public MethodDelegate create()
firstInstance
protected java.lang.Object firstInstance(java.lang.Class type)
- Specified by:
firstInstance
in class AbstractClassGenerator
nextInstance
protected java.lang.Object nextInstance(java.lang.Object instance)
- Specified by:
nextInstance
in class AbstractClassGenerator
generateClass
public void generateClass(ClassVisitor v)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException