Package net.sf.cglib.transform.impl
Class InterceptFieldTransformer
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- net.sf.cglib.transform.ClassTransformer
-
- net.sf.cglib.core.ClassEmitter
-
- net.sf.cglib.transform.ClassEmitterTransformer
-
- net.sf.cglib.transform.impl.InterceptFieldTransformer
-
public class InterceptFieldTransformer extends ClassEmitterTransformer
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description InterceptFieldTransformer(InterceptFieldFilter filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class net.sf.cglib.core.ClassEmitter
begin_static, end_class, getAccess, getClassInfo, getClassType, getStaticHook, getSuperType, init, setTarget, visit, visitEnd, visitField, visitMethod
-
-
-
-
Field Detail
-
CALLBACK_FIELD
private static final java.lang.String CALLBACK_FIELD
- See Also:
- Constant Field Values
-
CALLBACK
private static final org.objectweb.asm.Type CALLBACK
-
ENABLED
private static final org.objectweb.asm.Type ENABLED
-
ENABLED_SET
private static final Signature ENABLED_SET
-
ENABLED_GET
private static final Signature ENABLED_GET
-
filter
private InterceptFieldFilter filter
-
-
Constructor Detail
-
InterceptFieldTransformer
public InterceptFieldTransformer(InterceptFieldFilter filter)
-
-
Method Detail
-
begin_class
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)
- Overrides:
begin_class
in classClassEmitter
-
declare_field
public void declare_field(int access, java.lang.String name, org.objectweb.asm.Type type, java.lang.Object value)
- Overrides:
declare_field
in classClassEmitter
-
addReadMethod
private void addReadMethod(java.lang.String name, org.objectweb.asm.Type type)
-
addWriteMethod
private void addWriteMethod(java.lang.String name, org.objectweb.asm.Type type)
-
begin_method
public CodeEmitter begin_method(int access, Signature sig, org.objectweb.asm.Type[] exceptions)
- Overrides:
begin_method
in classClassEmitter
-
readMethodSig
private static Signature readMethodSig(java.lang.String name, java.lang.String desc)
-
writeMethodSig
private static Signature writeMethodSig(java.lang.String name, java.lang.String desc)
-
readCallbackSig
private static Signature readCallbackSig(org.objectweb.asm.Type type)
-
writeCallbackSig
private static Signature writeCallbackSig(org.objectweb.asm.Type type)
-
remap
private static org.objectweb.asm.Type remap(org.objectweb.asm.Type type)
-
callbackName
private static java.lang.String callbackName(org.objectweb.asm.Type type)
-
-