| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final BeanGenerator. | |
| private Map | |
| private static final AbstractClassGenerator. | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public void | |
| public Object | |
| public Object | |
| private Object | |
| 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 | setSuperclass(Class<T>
class to extend, or null to extend Object superclass)Set the class which the generated class will extend. |
| classOnly | back to summary |
|---|---|
| private boolean classOnly | |
| KEY_FACTORY | back to summary |
|---|---|
| private static final BeanGenerator. | |
| props | back to summary |
|---|---|
| private Map<K, V> props | |
| SOURCE | back to summary |
|---|---|
| private static final AbstractClassGenerator. | |
| superclass | back to summary |
|---|---|
| private Class<T> superclass | |
| BeanGenerator | back to summary |
|---|---|
| public BeanGenerator() | |
| addProperties | back to summary |
|---|---|
| public static void addProperties(BeanGenerator gen, Map<K, V> props) | |
| addProperties | back to summary |
|---|---|
| public static void addProperties(BeanGenerator gen, Class<T> type) | |
| addProperties | back to summary |
|---|---|
| public static void addProperties(BeanGenerator gen, PropertyDescriptor[] descriptors) | |
| addProperty | back to summary |
|---|---|
| public void addProperty(String name, Class<T> type) | |
| create | back to summary |
|---|---|
| public Object create() | |
| createClass | back to summary |
|---|---|
| public Object createClass() | |
| createHelper | back to summary |
|---|---|
| private Object createHelper() | |
| firstInstance | back to summary |
|---|---|
| protected Object firstInstance(Class<T> type) Implements abstract org.
| |
| generateClass | back to summary |
|---|---|
| public void generateClass(ClassVisitor v) throws Exception 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.
| |
| setSuperclass | back to summary |
|---|---|
| public void setSuperclass(Class<T> superclass) Set the class which the generated class will extend. The class must not be declared as final, and must have a non-private no-argument constructor.
| |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| newInstance | back to summary |
|---|---|
| public Object newInstance(String superclass, Map<K, V> props) | |