public class BeanGenerator extends AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source| コンストラクターと説明 |
|---|
BeanGenerator() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static void | addProperties(BeanGenerator gen, ClassSE type) |
static void | addProperties(BeanGenerator gen, MapSE props) |
static void | addProperties(BeanGenerator gen, PropertyDescriptorSE[] descriptors) |
void | addProperty(StringSE name, ClassSE type) |
ObjectSE | create() |
ObjectSE | createClass() |
protected ObjectSE | firstInstance(ClassSE type) |
void | generateClass(ClassVisitor v) |
protected ClassLoaderSE | getDefaultClassLoader() |
protected ProtectionDomainSE | getProtectionDomain() クラスを定義するときに使用する保護ドメインを返します。 |
protected ObjectSE | nextInstance(ObjectSE instance) |
void | setSuperclass(ClassSE superclass) 生成されたクラスが拡張するクラスを設定します。 |
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClasscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setSuperclass(ClassSE superclass)
superclass - 拡張するクラス、またはオブジェクトを継承する nullprotected ClassLoaderSE getDefaultClassLoader()
AbstractClassGenerator の getDefaultClassLoader protected ProtectionDomainSE getProtectionDomain()
AbstractClassGenerator デフォルトの実装では、デフォルトの保護ドメインを使用するために null を返します。サブクラスは、より具体的な保護ドメインを使用するようにオーバーライドできます。
AbstractClassGenerator の getProtectionDomain null )public ObjectSE create()
public ObjectSE createClass()
public void generateClass(ClassVisitor v) throws ExceptionSE
ExceptionSEprotected ObjectSE firstInstance(ClassSE type)
AbstractClassGenerator の firstInstance protected ObjectSE nextInstance(ObjectSE instance)
AbstractClassGenerator の nextInstance public static void addProperties(BeanGenerator gen, MapSE props)
public static void addProperties(BeanGenerator gen, ClassSE type)
public static void addProperties(BeanGenerator gen, PropertyDescriptorSE[] descriptors)