Uses of Class
org.datanucleus.enhancer.asm.MethodVisitor
-
Packages that use MethodVisitor Package Description org.datanucleus.enhancer DataNucleus ByteCode enhancer framework.org.datanucleus.enhancer.asm ASM : a small and fast bytecode manipulation framework.org.datanucleus.enhancer.methods 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.enhancer Modifier and Type Class Description class
EnhancerCloneAdapter
Adapter for clone() method in persistence-enabled classes.class
EnhancerMethodAdapter
Adapter for methods in persistence-enabled classes allowing enhancement of direct access to user fields.class
EnhancerPropertyGetterAdapter
Adapter for property getter methods in persistence-enabled classes.class
EnhancerPropertySetterAdapter
Adapter for property setter methods in persistence-enabled classes.Fields in org.datanucleus.enhancer declared as MethodVisitor Modifier and Type Field Description protected 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 MethodVisitor Modifier and Type Method Description MethodVisitor
ClassEnhancerImpl.MyClassVisitor. visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] excpts)
MethodVisitor
EnhancerClassAdapter. visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
Method called when a method of the class is visited.MethodVisitor
EnhancerClassChecker. visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
Visit a method of the classMethods in org.datanucleus.enhancer with parameters of type MethodVisitor Modifier and Type Method Description static void
EnhanceUtils. addBIPUSHToMethod(MethodVisitor visitor, int i)
Convenience method to add a BIPUSH-type int to the visitor.static void
EnhanceUtils. addLoadForType(MethodVisitor visitor, java.lang.Class type, int number)
Convenience method to add a load statement based on the type to be loaded.static void
EnhanceUtils. addReturnForType(MethodVisitor visitor, java.lang.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, java.lang.String asmClassName, java.lang.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, java.lang.String asmClassName, java.lang.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 MethodVisitor Constructor Description EnhancerCloneAdapter(MethodVisitor mv, ClassEnhancer enhancer, ClassVisitor cv)
Constructor for the clone adapter.EnhancerMethodAdapter(MethodVisitor mv, ClassEnhancer enhancer, java.lang.String methodName, java.lang.String methodDesc)
Constructor for the method adapter.EnhancerPropertyGetterAdapter(MethodVisitor mv, ClassEnhancer enhancer, java.lang.String methodName, java.lang.String methodDesc, AbstractMemberMetaData mmd, ClassVisitor cv)
Constructor for the method adapter.EnhancerPropertySetterAdapter(MethodVisitor mv, ClassEnhancer enhancer, java.lang.String methodName, java.lang.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.asm Modifier and Type Class Description (package private) class
MethodWriter
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 MethodVisitor Modifier and Type Field Description protected MethodVisitor
MethodVisitor. mv
The method visitor to which this visitor must delegate method calls.Methods in org.datanucleus.enhancer.asm that return MethodVisitor Modifier and Type Method Description MethodVisitor
MethodVisitor. getDelegate()
The method visitor to which this visitor must delegate method calls.MethodVisitor
ClassVisitor. visitMethod(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
Visits a method of the class.MethodVisitor
ClassWriter. visitMethod(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
Methods in org.datanucleus.enhancer.asm with parameters of type MethodVisitor Modifier and Type Method Description (package private) 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 MethodVisitor Constructor Description 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 MethodVisitor Modifier and Type Method Description void
InitClass. addInitialiseInstructions(MethodVisitor mv)
Convenience method to add the initialise instructions to the supplied MethodVisitor.
-