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 TypeClassDescriptionclass
Adapter for clone() method in persistence-enabled classes.class
Adapter for methods in persistence-enabled classes allowing enhancement of direct access to user fields.class
Adapter for property getter methods in persistence-enabled classes.class
Adapter for property setter methods in persistence-enabled classes.Fields in org.datanucleus.enhancer declared as MethodVisitorModifier and TypeFieldDescriptionprotected MethodVisitor
ClassMethod.visitor
Visitor for use in updating the method of the class (set in initialise).protected MethodVisitor
EnhancerCloneAdapter.visitor
Visitor for the dnGetXXX method.protected MethodVisitor
EnhancerPropertyGetterAdapter.visitor
Visitor for the dnGetXXX method.protected MethodVisitor
EnhancerPropertySetterAdapter.visitor
Visitor 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 void
EnhanceUtils.addBIPUSHToMethod
(MethodVisitor visitor, int i) Convenience method to add a BIPUSH-type int to the visitor.static void
EnhanceUtils.addLoadForType
(MethodVisitor visitor, Class type, int number) Convenience method to add a load statement based on the type to be loaded.static void
EnhanceUtils.addReturnForType
(MethodVisitor visitor, Class type) Convenience method to add a return statement based on the type to be returned.static void
EnhancerCloneAdapter.generateCloneMethod
(MethodVisitor mv, ClassEnhancer enhancer, EnhancementNamer namer) Convenience method to use the MethodVisitor to generate the code for the method clone().static void
EnhancerPropertyGetterAdapter.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 void
EnhancerPropertySetterAdapter.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 class
AMethodVisitor
that 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 MethodVisitor
MethodVisitor.mv
The 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 MethodVisitor
ClassWriter.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 void
Label.accept
(MethodVisitor methodVisitor, boolean visitLineNumbers) Makes the given visitor visit this label and its source line numbers, if applicable.private void
ClassReader.readCode
(MethodVisitor methodVisitor, Context context, int codeOffset) Reads a JVMS 'Code' attribute and makes the given visitor visit it.private void
ClassReader.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 MethodVisitorModifierConstructorDescriptionprotected
MethodVisitor
(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 TypeMethodDescriptionvoid
InitClass.addInitialiseInstructions
(MethodVisitor mv) Convenience method to add the initialise instructions to the supplied MethodVisitor.