类 ClassGenerator
- java.lang.Object
-
- com.alibaba.dubbo.common.bytecode.ClassGenerator
-
public final class ClassGenerator extends Object
ClassGenerator
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
ClassGenerator.DC
-
方法概要
-
-
-
方法详细资料
-
newInstance
public static ClassGenerator newInstance()
-
newInstance
public static ClassGenerator newInstance(ClassLoader loader)
-
isDynamicClass
public static boolean isDynamicClass(Class<?> cl)
-
getClassPool
public static javassist.ClassPool getClassPool(ClassLoader loader)
-
getClassName
public String getClassName()
-
setClassName
public ClassGenerator setClassName(String name)
-
addInterface
public ClassGenerator addInterface(String cn)
-
addInterface
public ClassGenerator addInterface(Class<?> cl)
-
setSuperClass
public ClassGenerator setSuperClass(String cn)
-
setSuperClass
public ClassGenerator setSuperClass(Class<?> cl)
-
addField
public ClassGenerator addField(String code)
-
addField
public ClassGenerator addField(String name, int mod, Class<?> type)
-
addField
public ClassGenerator addField(String name, int mod, Class<?> type, String def)
-
addMethod
public ClassGenerator addMethod(String code)
-
addMethod
public ClassGenerator addMethod(String name, int mod, Class<?> rt, Class<?>[] pts, String body)
-
addMethod
public ClassGenerator addMethod(String name, int mod, Class<?> rt, Class<?>[] pts, Class<?>[] ets, String body)
-
addMethod
public ClassGenerator addMethod(Method m)
-
addMethod
public ClassGenerator addMethod(String name, Method m)
-
addConstructor
public ClassGenerator addConstructor(String code)
-
addConstructor
public ClassGenerator addConstructor(int mod, Class<?>[] pts, String body)
-
addConstructor
public ClassGenerator addConstructor(int mod, Class<?>[] pts, Class<?>[] ets, String body)
-
addConstructor
public ClassGenerator addConstructor(Constructor<?> c)
-
addDefaultConstructor
public ClassGenerator addDefaultConstructor()
-
getClassPool
public javassist.ClassPool getClassPool()
-
toClass
public Class<?> toClass()
-
toClass
public Class<?> toClass(ClassLoader loader, ProtectionDomain pd)
-
release
public void release()
-
-