public class JDOMethodAdapter
extends org.objectweb.asm.MethodVisitor
Modifier and Type | Field and Description |
---|---|
protected ClassEnhancer |
enhancer
The enhancer for this class.
|
protected static Localiser |
LOCALISER
Localisation of messages.
|
protected String |
methodDescriptor
Descriptor for the method being adapted.
|
protected String |
methodName
Name for the method being adapted.
|
Constructor and Description |
---|
JDOMethodAdapter(org.objectweb.asm.MethodVisitor mv,
ClassEnhancer enhancer,
String methodName,
String methodDesc)
Constructor for the method adapter.
|
Modifier and Type | Method and Description |
---|---|
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.
|
visitAnnotableParameterCount, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
protected static final Localiser LOCALISER
protected ClassEnhancer enhancer
protected String methodName
protected String methodDescriptor
public JDOMethodAdapter(org.objectweb.asm.MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc)
mv
- MethodVisitorenhancer
- ClassEnhancer for the class with the methodpublic void visitFieldInsn(int opcode, String owner, String name, String desc)
visitFieldInsn
in class org.objectweb.asm.MethodVisitor
opcode
- Operationowner
- Owner classname
- Name of the fielddesc
- Descriptor for the fieldpublic void visitMethodInsn(int opcode, String owner, String name, String desc)
visitMethodInsn
in class org.objectweb.asm.MethodVisitor
opcode
- Operationowner
- Owner classname
- Name of the fielddesc
- Descriptor for the fieldpublic void visitInsn(int opcode)
visitInsn
in class org.objectweb.asm.MethodVisitor
opcode
- OperationCopyright © 2019. All rights reserved.