类 BeanGenerator
- 所有已实现的接口:
ClassGenerator
- 作者:
- Juozas Baliuka, Chris Nokleberg
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.bytecode.core.AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidaddProperties(BeanGenerator gen, PropertyDescriptor[] descriptors) static voidaddProperties(BeanGenerator gen, Class<?> type) static voidaddProperties(BeanGenerator gen, Map<String, Class<?>> props) voidaddProperty(String name, Class<?> type) create()protected ObjectfirstInstance(Class<Object> type) voidprotected ClassLoaderprotected ProtectionDomainReturns the protection domain to use when defining the class.protected ObjectnextInstance(Object instance) voidsetSuperclass(Class<?> superclass) Set the class which the generated class will extend.从类继承的方法 cn.taketoday.bytecode.core.AbstractClassGenerator
create, generate, getClassLoader, getClassName, getCurrent, getDefineClassStrategy, getNamingPolicy, getStrategy, getUseCache, isAttemptLoad, setAttemptLoad, setClassLoader, setDefineClassStrategy, setNamePrefix, setNamingPolicy, setNeighbor, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
-
构造器详细资料
-
BeanGenerator
public BeanGenerator()
-
-
方法详细资料
-
setSuperclass
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.- 参数:
superclass- class to extend, or null to extend Object
-
addProperty
-
getDefaultClassLoader
-
getProtectionDomain
从类复制的说明:AbstractClassGeneratorReturns the protection domain to use when defining the class.Default implementation returns
nullfor using a default protection domain. Sub-classes may override to use a more specific protection domain.- 覆盖:
getProtectionDomain在类中AbstractClassGenerator<Object>- 返回:
- the protection domain (
nullfor using a default)
-
create
-
createClass
-
generateClass
-
firstInstance
- 指定者:
firstInstance在类中AbstractClassGenerator<Object>
-
nextInstance
- 指定者:
nextInstance在类中AbstractClassGenerator<Object>
-
addProperties
-
addProperties
-
addProperties
-