public static class MethodDelegate.Generator extends AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
MethodDelegate |
create() |
protected Object |
firstInstance(Class type) |
void |
generateClass(org.objectweb.asm.ClassVisitor v) |
protected ClassLoader |
getDefaultClassLoader() |
protected ProtectionDomain |
getProtectionDomain()
Returns the protection domain to use when defining the class.
|
protected Object |
nextInstance(Object instance) |
void |
setInterface(Class iface) |
void |
setMethodName(String methodName) |
void |
setTarget(Object target) |
void |
setTargetClass(Class targetClass) |
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClasspublic 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 AbstractClassGeneratorprotected ProtectionDomain getProtectionDomain()
AbstractClassGenerator
Default implementation returns null for using a default protection domain. Sub-classes may
override to use a more specific protection domain.
getProtectionDomain in class AbstractClassGeneratornull for using a default)public MethodDelegate create()
protected Object firstInstance(Class type)
firstInstance in class AbstractClassGeneratorprotected Object nextInstance(Object instance)
nextInstance in class AbstractClassGeneratorpublic void generateClass(org.objectweb.asm.ClassVisitor v)
throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2017. All rights reserved.