protected static class MemberSubstitution.SubstitutingMethodVisitor extends LocalVariableAwareMethodVisitor
api, mv
Modifier | Constructor and Description |
---|---|
protected |
SubstitutingMethodVisitor(MethodVisitor methodVisitor,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodGraph.Compiler methodGraphCompiler,
boolean strict,
boolean failIfNoMatch,
MemberSubstitution.Replacement replacement,
Implementation.Context implementationContext,
TypePool typePool,
boolean virtualPrivateCalls)
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 stackSize,
int localVariableLength) |
void |
visitMethodInsn(int opcode,
String owner,
String internalName,
String descriptor,
boolean isInterface) |
getFreeOffset, visitVarInsn
getDelegate, visitAnnotableParameterCount, 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
protected SubstitutingMethodVisitor(MethodVisitor methodVisitor, TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodGraph.Compiler methodGraphCompiler, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement replacement, Implementation.Context implementationContext, TypePool typePool, boolean virtualPrivateCalls)
methodVisitor
- The method visitor to delegate to.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.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.failIfNoMatch
- true
if the instrumentation should fail if applied to a method without match.replacement
- The replacement to use for creating substitutions.implementationContext
- The implementation context to use.typePool
- The type pool to use.virtualPrivateCalls
- true
, virtual method calls might target private methods in accordance to the nest mate specification.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 stackSize, int localVariableLength)
visitMaxs
in class MethodVisitor
Copyright © 2014–2024. All rights reserved.