public static class MethodDelegate.Generator extends AbstractClassGenerator
AbstractClassGenerator.Source
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
MethodDelegate |
create() |
protected Object |
firstInstance(Class type) |
void |
generateClass(ClassVisitor v) |
protected ClassLoader |
getDefaultClassLoader() |
protected Object |
nextInstance(Object instance) |
void |
setInterface(Class iface) |
void |
setMethodName(String methodName) |
void |
setTarget(Object target) |
void |
setTargetClass(Class targetClass) |
create, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setNamePrefix, setNamingPolicy, setStrategy, setUseCache
public void setTarget(Object target)
public void setTargetClass(Class targetClass)
public void setMethodName(String methodName)
public void setInterface(Class iface)
protected ClassLoader getDefaultClassLoader()
getDefaultClassLoader
in class AbstractClassGenerator
public MethodDelegate create()
protected Object firstInstance(Class type)
firstInstance
in class AbstractClassGenerator
protected Object nextInstance(Object instance)
nextInstance
in class AbstractClassGenerator
public void generateClass(ClassVisitor v) throws NoSuchMethodException
NoSuchMethodException
Copyright © 2018. All rights reserved.