|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.asm.MethodVisitor
org.datanucleus.enhancer.asm.JdoMethodAdapter
public class JdoMethodAdapter
Adapter for methods in persistence-enabled classes allowing enhancement of direct access to user fields. Currently performs the following updates
| Field Summary | |
|---|---|
protected ASMClassEnhancer |
enhancer
The enhancer for this class. |
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages. |
protected String |
methodDescriptor
Descriptor for the method being adapted. |
protected String |
methodName
Name for the method being adapted. |
| Fields inherited from class org.objectweb.asm.MethodVisitor |
|---|
api, mv |
| Constructor Summary | |
|---|---|
JdoMethodAdapter(org.objectweb.asm.MethodVisitor mv,
ASMClassEnhancer enhancer,
String methodName,
String methodDesc)
Constructor for the method adapter. |
|
| Method Summary | |
|---|---|
void |
visitFieldInsn(int opcode,
String owner,
String name,
String desc)
Method to intercept any calls to fields. |
void |
visitInsn(int opcode)
Method to intercept any general instructions. |
void |
visitMethodInsn(int opcode,
String owner,
String name,
String desc)
Method to intercept any calls to methods. |
| Methods inherited from class org.objectweb.asm.MethodVisitor |
|---|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
protected ASMClassEnhancer enhancer
protected String methodName
protected String methodDescriptor
| Constructor Detail |
|---|
public JdoMethodAdapter(org.objectweb.asm.MethodVisitor mv,
ASMClassEnhancer enhancer,
String methodName,
String methodDesc)
mv - MethodVisitorenhancer - ClassEnhancer for the class with the method| Method Detail |
|---|
public void visitFieldInsn(int opcode,
String owner,
String name,
String desc)
visitFieldInsn in class org.objectweb.asm.MethodVisitoropcode - Operationowner - Owner classname - Name of the fielddesc - Descriptor for the field
public void visitMethodInsn(int opcode,
String owner,
String name,
String desc)
visitMethodInsn in class org.objectweb.asm.MethodVisitoropcode - Operationowner - Owner classname - Name of the fielddesc - Descriptor for the fieldpublic void visitInsn(int opcode)
visitInsn in class org.objectweb.asm.MethodVisitoropcode - Operation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||