public abstract class AbstractClassAgent extends Object implements ClassAgent
限定符和类型 | 类和说明 |
---|---|
protected static class |
AbstractClassAgent.Pair |
protected static class |
AbstractClassAgent.Pair2 |
限定符和类型 | 字段和说明 |
---|---|
static AtomicLong |
t
已过时。
|
CLASSNAME_SUFFIX
构造器和说明 |
---|
AbstractClassAgent() |
限定符和类型 | 方法和说明 |
---|---|
ClassAgent |
addInterceptor(MethodMatcher matcher,
MethodInterceptor listener)
添加拦截器
|
protected <T> boolean |
checkClass(Class<T> klass) |
<T> Class<T> |
define(ClassDefiner cd,
Class<T> klass)
定义一个新的类对象
|
<T> Class<T> |
define(ClassDefiner cd,
Class<T> klass,
String newName) |
protected abstract <T> Class<T> |
generate(ClassDefiner cd,
AbstractClassAgent.Pair2[] pair2s,
String newName,
Class<T> klass,
Constructor<T>[] constructors) |
protected <T> Constructor<T>[] |
getEffectiveConstructors(Class<T> klass) |
protected <T> Class<T> |
try2Load(String newName,
ClassLoader loader) |
@Deprecated public static AtomicLong t
public ClassAgent addInterceptor(MethodMatcher matcher, MethodInterceptor listener)
ClassAgent
addInterceptor
在接口中 ClassAgent
matcher
- 方法匹配器listener
- 拦截器public <T> Class<T> define(ClassDefiner cd, Class<T> klass)
ClassAgent
define
在接口中 ClassAgent
cd
- 字节码生成器klass
- 参照类对象public <T> Class<T> define(ClassDefiner cd, Class<T> klass, String newName)
protected abstract <T> Class<T> generate(ClassDefiner cd, AbstractClassAgent.Pair2[] pair2s, String newName, Class<T> klass, Constructor<T>[] constructors)
protected <T> Constructor<T>[] getEffectiveConstructors(Class<T> klass)
protected <T> boolean checkClass(Class<T> klass)
protected <T> Class<T> try2Load(String newName, ClassLoader loader)
Copyright © 2017. All rights reserved.