public static class Mixin.Generator extends AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source
Modifier and Type | Field and Description |
---|---|
private java.lang.Class[] |
classes |
private java.lang.Object[] |
delegates |
private int[] |
route |
private static AbstractClassGenerator.Source |
SOURCE |
private int |
style |
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
Mixin |
create() |
protected java.lang.Object |
firstInstance(java.lang.Class type) |
void |
generateClass(org.objectweb.asm.ClassVisitor v) |
protected java.lang.ClassLoader |
getDefaultClassLoader() |
protected java.security.ProtectionDomain |
getProtectionDomain()
Returns the protection domain to use when defining the class.
|
protected java.lang.Object |
nextInstance(java.lang.Object instance) |
void |
setClasses(java.lang.Class[] classes) |
void |
setDelegates(java.lang.Object[] delegates) |
void |
setStyle(int style) |
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
private static final AbstractClassGenerator.Source SOURCE
private java.lang.Class[] classes
private java.lang.Object[] delegates
private int style
private int[] route
protected java.lang.ClassLoader getDefaultClassLoader()
getDefaultClassLoader
in class AbstractClassGenerator
protected java.security.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 AbstractClassGenerator
null
for using a default)public void setStyle(int style)
public void setClasses(java.lang.Class[] classes)
public void setDelegates(java.lang.Object[] delegates)
public Mixin create()
public void generateClass(org.objectweb.asm.ClassVisitor v)
protected java.lang.Object firstInstance(java.lang.Class type)
firstInstance
in class AbstractClassGenerator
protected java.lang.Object nextInstance(java.lang.Object instance)
nextInstance
in class AbstractClassGenerator