| Package | Description |
|---|---|
| org.datanucleus.asm |
ASM v4.1 : a small and fast bytecode manipulation framework.
|
| org.datanucleus.enhancer |
DataNucleus ByteCode enhancer framework.
|
| org.datanucleus.enhancer.jdo |
Class Enhancer for the JDO bytecode enhancement contract, using ASM.
|
| org.datanucleus.enhancer.jdo.method |
Method enhancements for supporting the JDO bytecode enhancement contract.
|
| 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 desc,
String signature,
String[] exceptions) |
MethodVisitor |
ClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visits a method of the class.
|
| Constructor and Description |
|---|
MethodVisitor(int api,
MethodVisitor mv)
Constructs a new
MethodVisitor. |
| Modifier and Type | Field and Description |
|---|---|
protected MethodVisitor |
ClassMethod.visitor
Visitor for use in updating the method of the class (set in initialise).
|
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JDOMethodAdapter
Adapter for methods in persistence-enabled classes allowing enhancement of direct access to user fields.
|
class |
JDOPropertyGetterAdapter
Adapter for property getter methods in JDO-enabled classes.
|
class |
JDOPropertySetterAdapter
Adapter for property setter methods in JDO-enabled classes.
|
| Modifier and Type | Field and Description |
|---|---|
protected MethodVisitor |
JDOPropertyGetterAdapter.visitor
Visitor for the aaaGetXXX method.
|
protected MethodVisitor |
JDOPropertySetterAdapter.visitor
Visitor for the aaaSetXXX method.
|
| Modifier and Type | Method and Description |
|---|---|
MethodVisitor |
JDOClassChecker.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visit a method of the class
|
MethodVisitor |
JDOClassEnhancer.MyClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] excpts) |
MethodVisitor |
JDOClassAdapter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Method called when a method of the class is visited.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
JDOPropertyGetterAdapter.generateGetXXXMethod(MethodVisitor mv,
AbstractMemberMetaData mmd,
String asmClassName,
String asmClassDesc,
boolean detachListener,
boolean includeFrames,
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 |
JDOPropertySetterAdapter.generateSetXXXMethod(MethodVisitor mv,
AbstractMemberMetaData mmd,
String asmClassName,
String asmClassDesc,
boolean includeFrames,
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 |
|---|
JDOMethodAdapter(MethodVisitor mv,
ClassEnhancer enhancer,
String methodName,
String methodDesc)
Constructor for the method adapter.
|
JDOPropertyGetterAdapter(MethodVisitor mv,
ClassEnhancer enhancer,
String methodName,
String methodDesc,
AbstractMemberMetaData mmd,
ClassVisitor cv)
Constructor for the method adapter.
|
JDOPropertySetterAdapter(MethodVisitor mv,
ClassEnhancer enhancer,
String methodName,
String methodDesc,
AbstractMemberMetaData mmd,
ClassVisitor cv)
Constructor for the method adapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InitClass.addInitialiseInstructions(MethodVisitor mv)
Convenience method to add the initialise instructions to the supplied MethodVisitor.
|
Copyright © 2013. All Rights Reserved.