| org.objectweb.speedo.generation.enhancer.common.LoggedClassAdapter org.objectweb.speedo.generation.enhancer.pc.FieldAccessModifier
FieldAccessModifier | public class FieldAccessModifier extends LoggedClassAdapter (Code) | | Replaces field accesses by calls to getter and setter methods.
Adapted from modifyMethods and replaceInstruction in EnhancerTool.
|
Field Summary | |
final static int[] | SIZE Stack size variation corresponding to each JVM instruction. | final String | fieldsOwner Internal name of the corresponding "XXXFields" class. | final int | nbfields | final String | owner Internal name of the visited class. |
Method Summary | |
SpeedoField | fetchJDOField(String name, String className) Looks for a specific SpeedoField in the object model. | public void | visit(int version, int access, String name, String superName, String[] interfaces, String sourceFile) | public CodeVisitor | visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs) |
SIZE | final static int[] SIZE(Code) | | Stack size variation corresponding to each JVM instruction. This stack
variation is equal to the size of the values produced by an instruction,
minus the size of the values consumed by this instruction.
|
fieldsOwner | final String fieldsOwner(Code) | | Internal name of the corresponding "XXXFields" class.
|
nbfields | final int nbfields(Code) | | |
owner | final String owner(Code) | | Internal name of the visited class.
|
FieldAccessModifier | public FieldAccessModifier(ClassVisitor cv, SpeedoClass sc, Logger logger, Personality p)(Code) | | Constructs a new
FieldAccessModifier .
Parameters: cv - the class visitor to be used to generate the modified class Parameters: sc - is the SpeedoMeta object representing the persistent class visited Parameters: p - is the personality of Speedo |
fetchJDOField | SpeedoField fetchJDOField(String name, String className)(Code) | | Looks for a specific SpeedoField in the object model.
Parameters: name - the name of the field to be fetched Parameters: className - the complete class name that the field belongs to the corresponding SpeedoField if it exists, null either |
visitMethod | public CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, Attribute attrs)(Code) | | |
|
|