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 advice.
|
protected static class |
Advice.Dispatcher.Active.Resolved.ForMethodExit
A resolved dispatcher for implementing method exit advice.
|
Advice.Dispatcher.Active, Advice.Dispatcher.Inactive, Advice.Dispatcher.Resolved, Advice.Dispatcher.Unresolved
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
adviceMethod
The represented advice method.
|
protected Map<Integer,net.bytebuddy.asm.Advice.Dispatcher.Active.Resolved.OffsetMapping> |
offsetMappings
An unresolved mapping of offsets of the advice method based on the annotations discovered on each method parameter.
|
IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
Resolved(MethodDescription.InDefinedShape adviceMethod,
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,
Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler,
MethodDescription.InDefinedShape instrumentedMethod)
Applies a resolution for a given instrumented method.
|
MethodVisitor |
apply(String internalName,
String descriptor,
MethodVisitor methodVisitor,
Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler,
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() |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
protected final MethodDescription.InDefinedShape adviceMethod
protected final Map<Integer,net.bytebuddy.asm.Advice.Dispatcher.Active.Resolved.OffsetMapping> offsetMappings
protected Resolved(MethodDescription.InDefinedShape adviceMethod, Advice.Dispatcher.Active.Resolved.OffsetMapping.Factory... factory)
adviceMethod
- The represented advice method.factory
- An unresolved mapping of offsets of the advice method based on the annotations discovered on each method parameter.public boolean isAlive()
Advice.Dispatcher
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.public MethodVisitor apply(String internalName, String descriptor, MethodVisitor methodVisitor, Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler, MethodDescription.InDefinedShape instrumentedMethod)
Advice.Dispatcher.Resolved
apply
in interface Advice.Dispatcher.Resolved
internalName
- The discovered method's internal name.descriptor
- The discovered method's descriptor.methodVisitor
- The method visitor for writing the instrumented method.metaDataHandler
- A handler for translating meta data that is embedded into the instrumented method's byte code.instrumentedMethod
- A description of the instrumented method.null
if the discovered method is of no interest.protected abstract MethodVisitor apply(MethodVisitor methodVisitor, Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler, MethodDescription.InDefinedShape instrumentedMethod)
methodVisitor
- A method visitor for writing byte code to the instrumented method.metaDataHandler
- A handler for translating meta data that is embedded into the instrumented method's byte code.instrumentedMethod
- A description of the instrumented method.Copyright © 2014–2016. All rights reserved.