Mixin allows
multiple objects to be combined into a single larger object. The
methods in the generated object simply call the original methods in the
underlying "delegate" objects.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static interface | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Mixin. | |
| private static final Map | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Mixin | |
| public static Mixin | |
| public static Mixin | |
| public static Mixin | |
| public static Class | |
| public abstract Mixin | |
| private static Mixin. |
| KEY_FACTORY | back to summary |
|---|---|
| private static final Mixin. | |
| ROUTE_CACHE | back to summary |
|---|---|
| private static final Map<K, V> ROUTE_CACHE | |
| STYLE_BEANS | back to summary |
|---|---|
| public static final int STYLE_BEANS | |
| STYLE_EVERYTHING | back to summary |
|---|---|
| public static final int STYLE_EVERYTHING | |
| STYLE_INTERFACES | back to summary |
|---|---|
| public static final int STYLE_INTERFACES | |
| Mixin | back to summary |
|---|---|
| public Mixin() | |
| create | back to summary |
|---|---|
| public static Mixin create(Object[] delegates) Helper method to create an interface mixin. For finer control over the
generated instance, use a new instance of | |
| create | back to summary |
|---|---|
| public static Mixin create(Class<T>[] interfaces, Object[] delegates) Helper method to create an interface mixin. For finer control over the
generated instance, use a new instance of | |
| createBean | back to summary |
|---|---|
| public static Mixin createBean(Object[] beans) | |
| createBean | back to summary |
|---|---|
| public static Mixin createBean(ClassLoader loader, Object[] beans) Helper method to create a bean mixin. For finer control over the
generated instance, use a new instance of | |
| getClasses | back to summary |
|---|---|
| public static Class | |
| newInstance | back to summary |
|---|---|
| public abstract Mixin newInstance(Object[] delegates) | |
| route | back to summary |
|---|---|
| private static Mixin. | |
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private Object[] | |
| private int[] | |
| private static final AbstractClassGenerator. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Mixin | |
| protected Object | firstInstance(Class<T> type)
Implements abstract org. |
| public void | |
| protected ClassLoader | |
| protected ProtectionDomain | getProtectionDomain()
Overrides org. |
| protected Object | nextInstance(Object instance)
Implements abstract org. |
| public void | |
| public void | |
| public void |
| classes | back to summary |
|---|---|
| private Class<T>[] classes | |
| delegates | back to summary |
|---|---|
| private Object[] delegates | |
| route | back to summary |
|---|---|
| private int[] route | |
| SOURCE | back to summary |
|---|---|
| private static final AbstractClassGenerator. | |
| style | back to summary |
|---|---|
| private int style | |
| Generator | back to summary |
|---|---|
| public Generator() | |
| create | back to summary |
|---|---|
| public Mixin create() | |
| firstInstance | back to summary |
|---|---|
| protected Object firstInstance(Class<T> type) Implements abstract org.
| |
| generateClass | back to summary |
|---|---|
| public void generateClass(ClassVisitor v) Implements org.
| |
| getDefaultClassLoader | back to summary |
|---|---|
| protected ClassLoader getDefaultClassLoader() Implements abstract org.
| |
| getProtectionDomain | back to summary |
|---|---|
| protected ProtectionDomain getProtectionDomain() Overrides org. Doc from org. Returns the protection domain to use when defining the class.
Default implementation returns
| |
| nextInstance | back to summary |
|---|---|
| protected Object nextInstance(Object instance) Implements abstract org.
| |
| setClasses | back to summary |
|---|---|
| public void setClasses(Class<T>[] classes) | |
| setDelegates | back to summary |
|---|---|
| public void setDelegates(Object[] delegates) | |
| setStyle | back to summary |
|---|---|
| public void setStyle(int style) | |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| newInstance | back to summary |
|---|---|
| public Object newInstance(int style, String[] classes, int[] route) | |
| classes | back to summary |
|---|---|
| private Class<T>[] classes | |
| route | back to summary |
|---|---|
| private int[] route | |
| Route | back to summary |
|---|---|
| pack-priv Route(Object[] delegates) | |