protected abstract static class Advice.Dispatcher.Active.Resolved extends Object implements Advice.Dispatcher.Resolved
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.Dispatcher.Active.Resolved.ForMethodEnter
A resolved dispatcher for implementing method enter advise.
|
protected static class |
Advice.Dispatcher.Active.Resolved.ForMethodExit
A resolved dispatcher for implementing method exit advise.
|
| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription.InDefinedShape |
adviseMethod
The represented advise method.
|
protected Map<Integer,net.bytebuddy.asm.Advice.Dispatcher.Active.Resolved.OffsetMapping> |
offsetMappings
An unresolved mapping of offsets of the advise method based on the annotations discovered on each method parameter.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Resolved(MethodDescription.InDefinedShape adviseMethod,
Advice.Dispatcher.Active.Resolved.OffsetMapping.Factory... factory)
Creates a new resolved version of a dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract MethodVisitor |
apply(MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod)
Applies a resolution for a given instrumented method.
|
MethodVisitor |
apply(String internalName,
String descriptor,
MethodVisitor methodVisitor,
MethodDescription.InDefinedShape instrumentedMethod)
Applies this dispatcher for a method that is discovered in the advice class's class file.
|
boolean |
equals(Object other) |
int |
hashCode() |
protected final MethodDescription.InDefinedShape adviseMethod
protected Resolved(MethodDescription.InDefinedShape adviseMethod, Advice.Dispatcher.Active.Resolved.OffsetMapping.Factory... factory)
adviseMethod - The represented advise method.factory - An unresolved mapping of offsets of the advise method based on the annotations discovered on each method parameter.public MethodVisitor apply(String internalName, String descriptor, MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod)
Advice.Dispatcher.Resolvedapply in interface Advice.Dispatcher.ResolvedinternalName - The discovered method's internal name.descriptor - The discovered method's descriptor.methodVisitor - The method visitor for writing the instrumented method.instrumentedMethod - A description of the instrumented method.null if the discovered method is of no interest.protected abstract MethodVisitor apply(MethodVisitor methodVisitor, MethodDescription.InDefinedShape instrumentedMethod)
methodVisitor - A method visitor for writing byte code to the instrumented method.instrumentedMethod - A description of the instrumented method.Copyright © 2014–2016. All rights reserved.