public class InterceptFieldTransformer extends ClassEmitterTransformer
Modifier and Type | Field and Description |
---|---|
private static org.objectweb.asm.Type |
CALLBACK |
private static java.lang.String |
CALLBACK_FIELD |
private static org.objectweb.asm.Type |
ENABLED |
private static Signature |
ENABLED_GET |
private static Signature |
ENABLED_SET |
private InterceptFieldFilter |
filter |
Constructor and Description |
---|
InterceptFieldTransformer(InterceptFieldFilter filter) |
Modifier and Type | Method and Description |
---|---|
private void |
addReadMethod(java.lang.String name,
org.objectweb.asm.Type type) |
private void |
addWriteMethod(java.lang.String name,
org.objectweb.asm.Type type) |
void |
begin_class(int version,
int access,
java.lang.String className,
org.objectweb.asm.Type superType,
org.objectweb.asm.Type[] interfaces,
java.lang.String sourceFile) |
CodeEmitter |
begin_method(int access,
Signature sig,
org.objectweb.asm.Type[] exceptions) |
private static java.lang.String |
callbackName(org.objectweb.asm.Type type) |
void |
declare_field(int access,
java.lang.String name,
org.objectweb.asm.Type type,
java.lang.Object value) |
private static Signature |
readCallbackSig(org.objectweb.asm.Type type) |
private static Signature |
readMethodSig(java.lang.String name,
java.lang.String desc) |
private static org.objectweb.asm.Type |
remap(org.objectweb.asm.Type type) |
private static Signature |
writeCallbackSig(org.objectweb.asm.Type type) |
private static Signature |
writeMethodSig(java.lang.String name,
java.lang.String desc) |
begin_static, end_class, getAccess, getClassInfo, getClassType, getStaticHook, getSuperType, init, setTarget, visit, visitEnd, visitField, visitMethod
private static final java.lang.String CALLBACK_FIELD
private static final org.objectweb.asm.Type CALLBACK
private static final org.objectweb.asm.Type ENABLED
private static final Signature ENABLED_SET
private static final Signature ENABLED_GET
private InterceptFieldFilter filter
public InterceptFieldTransformer(InterceptFieldFilter filter)
public void begin_class(int version, int access, java.lang.String className, org.objectweb.asm.Type superType, org.objectweb.asm.Type[] interfaces, java.lang.String sourceFile)
begin_class
in class ClassEmitter
public void declare_field(int access, java.lang.String name, org.objectweb.asm.Type type, java.lang.Object value)
declare_field
in class ClassEmitter
private void addReadMethod(java.lang.String name, org.objectweb.asm.Type type)
private void addWriteMethod(java.lang.String name, org.objectweb.asm.Type type)
public CodeEmitter begin_method(int access, Signature sig, org.objectweb.asm.Type[] exceptions)
begin_method
in class ClassEmitter
private static Signature readMethodSig(java.lang.String name, java.lang.String desc)
private static Signature writeMethodSig(java.lang.String name, java.lang.String desc)
private static Signature readCallbackSig(org.objectweb.asm.Type type)
private static Signature writeCallbackSig(org.objectweb.asm.Type type)
private static org.objectweb.asm.Type remap(org.objectweb.asm.Type type)
private static java.lang.String callbackName(org.objectweb.asm.Type type)