public class EnhancerMethodAdapter extends MethodVisitor
| Modifier and Type | Field and Description |
|---|---|
protected ClassEnhancer |
enhancer
The enhancer for this class.
|
protected String |
methodDescriptor
Descriptor for the method being adapted.
|
protected String |
methodName
Name for the method being adapted.
|
api, mv| Constructor and Description |
|---|
EnhancerMethodAdapter(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 |
visitLabel(Label label)
Visits a label.
|
void |
visitMethodInsn(int opcode,
String owner,
String name,
String desc)
Method to intercept any calls to methods.
|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsnprotected ClassEnhancer enhancer
protected String methodName
protected String methodDescriptor
public EnhancerMethodAdapter(MethodVisitor mv, ClassEnhancer enhancer, String methodName, String methodDesc)
mv - MethodVisitorenhancer - ClassEnhancer for the class with the methodmethodName - Name of the methodmethodDesc - descriptor for the methodpublic void visitLabel(Label label)
MethodVisitorvisitLabel in class MethodVisitorlabel - a Label object.public void visitFieldInsn(int opcode,
String owner,
String name,
String desc)
visitFieldInsn in class MethodVisitoropcode - Operationowner - Owner classname - Name of the fielddesc - Descriptor for the fieldpublic void visitMethodInsn(int opcode,
String owner,
String name,
String desc)
visitMethodInsn in class MethodVisitoropcode - Operationowner - Owner classname - Name of the fielddesc - Descriptor for the fieldpublic void visitInsn(int opcode)
visitInsn in class MethodVisitoropcode - OperationCopyright © 2017. All rights reserved.