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.TypeCALLBACKprivate static java.lang.StringCALLBACK_FIELDprivate static org.objectweb.asm.TypeENABLEDprivate static SignatureENABLED_GETprivate static SignatureENABLED_SETprivate InterceptFieldFilterfilter
-
Constructor Summary
Constructors Constructor Description InterceptFieldTransformer(InterceptFieldFilter filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddReadMethod(java.lang.String name, org.objectweb.asm.Type type)private voidaddWriteMethod(java.lang.String name, org.objectweb.asm.Type type)voidbegin_class(int version, int access, java.lang.String className, org.objectweb.asm.Type superType, org.objectweb.asm.Type[] interfaces, java.lang.String sourceFile)CodeEmitterbegin_method(int access, Signature sig, org.objectweb.asm.Type[] exceptions)private static java.lang.StringcallbackName(org.objectweb.asm.Type type)voiddeclare_field(int access, java.lang.String name, org.objectweb.asm.Type type, java.lang.Object value)private static SignaturereadCallbackSig(org.objectweb.asm.Type type)private static SignaturereadMethodSig(java.lang.String name, java.lang.String desc)private static org.objectweb.asm.Typeremap(org.objectweb.asm.Type type)private static SignaturewriteCallbackSig(org.objectweb.asm.Type type)private static SignaturewriteMethodSig(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_classin classClassEmitter
-
declare_field
public void declare_field(int access, java.lang.String name, org.objectweb.asm.Type type, java.lang.Object value)- Overrides:
declare_fieldin 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_methodin 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)
-
-