Package net.sf.cglib.transform.impl
Class FieldProviderTransformer
- 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.FieldProviderTransformer
-
public class FieldProviderTransformer extends ClassEmitterTransformer
-
-
Field Summary
Fields Modifier and Type Field Description private int
access
private static java.lang.String
FIELD_NAMES
private static org.objectweb.asm.Type
FIELD_PROVIDER
private static java.lang.String
FIELD_TYPES
private java.util.Map
fields
private static org.objectweb.asm.Type
ILLEGAL_ARGUMENT_EXCEPTION
private static Signature
PROVIDER_GET
private static Signature
PROVIDER_GET_BY_INDEX
private static Signature
PROVIDER_GET_NAMES
private static Signature
PROVIDER_GET_TYPES
private static Signature
PROVIDER_SET
private static Signature
PROVIDER_SET_BY_INDEX
-
Constructor Summary
Constructors Constructor Description FieldProviderTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
void
declare_field(int access, java.lang.String name, org.objectweb.asm.Type type, java.lang.Object value)
void
end_class()
private void
generate()
private void
getByIndex(java.lang.String[] names, int[] indexes)
private void
getField(java.lang.String[] names)
private void
getNames()
private void
getTypes()
private void
initFieldProvider(java.lang.String[] names)
private void
setByIndex(java.lang.String[] names, int[] indexes)
private void
setField(java.lang.String[] names)
-
Methods inherited from class net.sf.cglib.core.ClassEmitter
begin_method, begin_static, getAccess, getClassInfo, getClassType, getStaticHook, getSuperType, init, setTarget, visit, visitEnd, visitField, visitMethod
-
-
-
-
Field Detail
-
FIELD_NAMES
private static final java.lang.String FIELD_NAMES
- See Also:
- Constant Field Values
-
FIELD_TYPES
private static final java.lang.String FIELD_TYPES
- See Also:
- Constant Field Values
-
FIELD_PROVIDER
private static final org.objectweb.asm.Type FIELD_PROVIDER
-
ILLEGAL_ARGUMENT_EXCEPTION
private static final org.objectweb.asm.Type ILLEGAL_ARGUMENT_EXCEPTION
-
PROVIDER_GET
private static final Signature PROVIDER_GET
-
PROVIDER_SET
private static final Signature PROVIDER_SET
-
PROVIDER_SET_BY_INDEX
private static final Signature PROVIDER_SET_BY_INDEX
-
PROVIDER_GET_BY_INDEX
private static final Signature PROVIDER_GET_BY_INDEX
-
PROVIDER_GET_TYPES
private static final Signature PROVIDER_GET_TYPES
-
PROVIDER_GET_NAMES
private static final Signature PROVIDER_GET_NAMES
-
access
private int access
-
fields
private java.util.Map fields
-
-
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
-
end_class
public void end_class()
- Overrides:
end_class
in classClassEmitter
-
generate
private void generate() throws java.lang.Exception
- Throws:
java.lang.Exception
-
initFieldProvider
private void initFieldProvider(java.lang.String[] names)
-
getNames
private void getNames()
-
getTypes
private void getTypes()
-
setByIndex
private void setByIndex(java.lang.String[] names, int[] indexes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getByIndex
private void getByIndex(java.lang.String[] names, int[] indexes) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getField
private void getField(java.lang.String[] names) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setField
private void setField(java.lang.String[] names) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-