protected static class MemberSubstitution.SubstitutingMethodVisitor extends MethodVisitor
api, mv
Modifier | Constructor and Description |
---|---|
protected |
SubstitutingMethodVisitor(MethodVisitor methodVisitor,
MethodGraph.Compiler methodGraphCompiler,
boolean strict,
MemberSubstitution.Substitution substitution,
TypeDescription instrumentedType,
Implementation.Context implementationContext,
TypePool typePool)
Creates a new substituting method visitor.
|
Modifier and Type | Method and Description |
---|---|
void |
visitFieldInsn(int opcode,
String owner,
String internalName,
String descriptor) |
void |
visitMaxs(int maxStack,
int maxLocals) |
void |
visitMethodInsn(int opcode,
String owner,
String internalName,
String descriptor,
boolean isInterface) |
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
protected SubstitutingMethodVisitor(MethodVisitor methodVisitor, MethodGraph.Compiler methodGraphCompiler, boolean strict, MemberSubstitution.Substitution substitution, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool)
methodVisitor
- The method visitor to delegate to.methodGraphCompiler
- The method graph compiler to use.strict
- true
if the method processing should be strict where an exception is raised if a member cannot be found.substitution
- The substitution to apply.instrumentedType
- The instrumented type.implementationContext
- The implementation context to use.typePool
- The type pool to use.public void visitFieldInsn(int opcode, String owner, String internalName, String descriptor)
visitFieldInsn
in class MethodVisitor
public void visitMethodInsn(int opcode, String owner, String internalName, String descriptor, boolean isInterface)
visitMethodInsn
in class MethodVisitor
public void visitMaxs(int maxStack, int maxLocals)
visitMaxs
in class MethodVisitor
Copyright © 2014–2017. All rights reserved.