Package | Description |
---|---|
org.datanucleus.enhancer |
DataNucleus ByteCode enhancer framework.
|
org.datanucleus.enhancer.asm |
ASM v6.1.1 : a small and fast bytecode manipulation framework.
|
org.datanucleus.enhancer.methods |
Method enhancements for supporting the org.datanucleus.enhancement.Persistable bytecode enhancement contract.
|
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected MethodVisitor |
ClassMethod.visitor
Visitor for use in updating the method of the class (set in initialise).
|
protected MethodVisitor |
EnhancerPropertySetterAdapter.visitor
Visitor for the dnSetXXX method.
|
protected MethodVisitor |
EnhancerPropertyGetterAdapter.visitor
Visitor for the dnGetXXX method.
|
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
EnhancerClassAdapter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Method called when a method of the class is visited.
|
MethodVisitor |
ClassEnhancerImpl.MyClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] excpts) |
MethodVisitor |
EnhancerClassChecker.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visit a method of the class
|
Modifier and Type | Method and 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,
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 |
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.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
protected MethodVisitor |
MethodVisitor.mv
The method visitor to which this visitor must delegate method calls.
|
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
ClassWriter.visitMethod(int access,
String name,
String descriptor,
String signature,
String[] exceptions) |
MethodVisitor |
ClassVisitor.visitMethod(int access,
String name,
String descriptor,
String signature,
String[] exceptions)
Visits a method of the class.
|
Constructor and Description |
---|
MethodVisitor(int api,
MethodVisitor methodVisitor)
Constructs a new
MethodVisitor . |
Modifier and Type | Method and Description |
---|---|
void |
InitClass.addInitialiseInstructions(MethodVisitor mv)
Convenience method to add the initialise instructions to the supplied MethodVisitor.
|
Copyright © 2019. All rights reserved.