类 BeanMap.Generator
java.lang.Object
cn.taketoday.bytecode.core.AbstractClassGenerator
cn.taketoday.bytecode.beans.BeanMap.Generator
- 所有已实现的接口:
ClassGenerator
- 封闭类:
- BeanMap
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 cn.taketoday.bytecode.core.AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明create()Create a new instance of theBeanMap.protected ObjectfirstInstance(Class type) voidprotected ClassLoaderprotected ProtectionDomainReturns the protection domain to use when defining the class.protected ObjectnextInstance(Object instance) voidSet the bean that the generated map should reflect.voidsetBeanClass(Class beanClass) Set the class of the bean that the generated map should support.voidsetRequire(int require) Limit the properties reflected by the generated map.从类继承的方法 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
-
字段详细资料
-
bean
-
beanClass
-
require
private int require
-
-
构造器详细资料
-
Generator
public Generator()
-
-
方法详细资料
-
setBean
Set the bean that the generated map should reflect. The bean may be swapped out for another bean of the same type usingsetBean(Object). Calling this method overrides any value previously set usingsetBeanClass(java.lang.Class). You must call either this method orsetBeanClass(java.lang.Class)beforecreate().- 参数:
bean- the initial bean
-
setBeanClass
Set the class of the bean that the generated map should support. You must call either this method orsetBeanClass(java.lang.Class)beforecreate().- 参数:
beanClass- the class of the bean
-
setRequire
public void setRequire(int require) Limit the properties reflected by the generated map.- 参数:
require- any combination ofBeanMap.REQUIRE_GETTERandBeanMap.REQUIRE_SETTER; default is zero (any property allowed)
-
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- 返回:
- the protection domain (
nullfor using a default)
-
create
Create a new instance of theBeanMap. An existing generated class will be reused if possible. -
generateClass
- 抛出:
Exception
-
firstInstance
- 指定者:
firstInstance在类中AbstractClassGenerator
-
nextInstance
- 指定者:
nextInstance在类中AbstractClassGenerator
-