Uses of Class
org.datanucleus.enhancer.asm.MethodVisitor
Packages that use MethodVisitor
Package
Description
DataNucleus ByteCode enhancer framework.
ASM : a small and fast bytecode manipulation framework.
Method enhancements for supporting the org.datanucleus.enhancement.Persistable bytecode enhancement contract.
-
Uses of MethodVisitor in org.datanucleus.enhancer
Subclasses of MethodVisitor in org.datanucleus.enhancerModifier and TypeClassDescriptionclassAdapter for clone() method in persistence-enabled classes.classAdapter for methods in persistence-enabled classes allowing enhancement of direct access to user fields.classAdapter for property getter methods in persistence-enabled classes.classAdapter for property setter methods in persistence-enabled classes.Fields in org.datanucleus.enhancer declared as MethodVisitorModifier and TypeFieldDescriptionprotected MethodVisitorClassMethod.visitorVisitor for use in updating the method of the class (set in initialise).protected MethodVisitorEnhancerCloneAdapter.visitorVisitor for the dnGetXXX method.protected MethodVisitorEnhancerPropertyGetterAdapter.visitorVisitor for the dnGetXXX method.protected MethodVisitorEnhancerPropertySetterAdapter.visitorVisitor for the dnSetXXX method.Methods in org.datanucleus.enhancer that return MethodVisitorModifier and TypeMethodDescriptionClassEnhancerImpl.MyClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] excpts) EnhancerClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Method called when a method of the class is visited.EnhancerClassChecker.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visit a method of the classMethods in org.datanucleus.enhancer with parameters of type MethodVisitorModifier and TypeMethodDescriptionstatic voidEnhanceUtils.addBIPUSHToMethod(MethodVisitor visitor, int i) Convenience method to add a BIPUSH-type int to the visitor.static voidEnhanceUtils.addLoadForType(MethodVisitor visitor, Class type, int number) Convenience method to add a load statement based on the type to be loaded.static voidEnhanceUtils.addReturnForType(MethodVisitor visitor, Class type) Convenience method to add a return statement based on the type to be returned.static voidEnhancerCloneAdapter.generateCloneMethod(MethodVisitor mv, ClassEnhancer enhancer, EnhancementNamer namer) Convenience method to use the MethodVisitor to generate the code for the method clone().static voidEnhancerPropertyGetterAdapter.generateGetXXXMethod(MethodVisitor mv, AbstractMemberMetaData mmd, String asmClassName, String asmClassDesc, boolean detachListener, EnhancementNamer namer) Convenience method to use the MethodVisitor to generate the code for the method getXXX() for the property with the specified MetaData.static voidEnhancerPropertySetterAdapter.generateSetXXXMethod(MethodVisitor mv, AbstractMemberMetaData mmd, String asmClassName, String asmClassDesc, EnhancementNamer namer) Convenience method to use the MethodVisitor to generate the code for the method setXXX() for the property with the specified MetaData.Constructors in org.datanucleus.enhancer with parameters of type MethodVisitorModifierConstructorDescriptionEnhancerCloneAdapter(MethodVisitor mv, ClassEnhancer enhancer, ClassVisitor cv) Constructor for the clone adapter.EnhancerMethodAdapter(MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc) Constructor for the method adapter.EnhancerPropertyGetterAdapter(MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc, AbstractMemberMetaData mmd, ClassVisitor cv) Constructor for the method adapter.EnhancerPropertySetterAdapter(MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc, AbstractMemberMetaData mmd, ClassVisitor cv) Constructor for the method adapter. -
Uses of MethodVisitor in org.datanucleus.enhancer.asm
Subclasses of MethodVisitor in org.datanucleus.enhancer.asmModifier and TypeClassDescription(package private) final classAMethodVisitorthat generates a corresponding 'method_info' structure, as defined in the Java Virtual Machine Specification (JVMS).Fields in org.datanucleus.enhancer.asm declared as MethodVisitorModifier and TypeFieldDescriptionprotected MethodVisitorMethodVisitor.mvThe method visitor to which this visitor must delegate method calls.Methods in org.datanucleus.enhancer.asm that return MethodVisitorModifier and TypeMethodDescriptionMethodVisitor.getDelegate()The method visitor to which this visitor must delegate method calls.ClassVisitor.visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) Visits a method of the class.final MethodVisitorClassWriter.visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) Methods in org.datanucleus.enhancer.asm with parameters of type MethodVisitorModifier and TypeMethodDescription(package private) final voidLabel.accept(MethodVisitor methodVisitor, boolean visitLineNumbers) Makes the given visitor visit this label and its source line numbers, if applicable.private voidClassReader.readCode(MethodVisitor methodVisitor, Context context, int codeOffset) Reads a JVMS 'Code' attribute and makes the given visitor visit it.private voidClassReader.readParameterAnnotations(MethodVisitor methodVisitor, Context context, int runtimeParameterAnnotationsOffset, boolean visible) Reads a Runtime[In]VisibleParameterAnnotations attribute and makes the given visitor visit it.private int[]ClassReader.readTypeAnnotations(MethodVisitor methodVisitor, Context context, int runtimeTypeAnnotationsOffset, boolean visible) Parses a Runtime[In]VisibleTypeAnnotations attribute to find the offset of each type_annotation entry it contains, to find the corresponding labels, and to visit the try catch block annotations.Constructors in org.datanucleus.enhancer.asm with parameters of type MethodVisitorModifierConstructorDescriptionprotectedMethodVisitor(int api, MethodVisitor methodVisitor) Constructs a newMethodVisitor. -
Uses of MethodVisitor in org.datanucleus.enhancer.methods
Methods in org.datanucleus.enhancer.methods with parameters of type MethodVisitorModifier and TypeMethodDescriptionvoidInitClass.addInitialiseInstructions(MethodVisitor mv) Convenience method to add the initialise instructions to the supplied MethodVisitor.