protected abstract static class Advice.Dispatcher.Active.Resolved extends Object implements Advice.Dispatcher.Resolved
| Modifier and Type | Class and Description |
|---|---|
protected class |
Advice.Dispatcher.Active.Resolved.CodeCopier
A bound advice method that copies the code by first extracting the exception table and later appending the
code of the method without copying any meta data.
|
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.Bound, Advice.Dispatcher.Inactive, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.Resolved, Advice.Dispatcher.Unresolved| Modifier and Type | Field and Description |
|---|---|
protected MethodDescription.InDefinedShape |
adviceMethod
The represented advice method.
|
protected Map<Integer,Advice.Dispatcher.OffsetMapping> |
offsetMappings
An unresolved mapping of offsets of the advice method based on the annotations discovered on each method parameter.
|
protected Advice.Dispatcher.Active.CodeTranslationVisitor.SuppressionHandler |
suppressionHandler
The suppression handler to use.
|
IGNORE_ANNOTATION, IGNORE_METHOD| Modifier | Constructor and Description |
|---|---|
protected |
Resolved(MethodDescription.InDefinedShape adviceMethod,
List<Advice.Dispatcher.OffsetMapping.Factory> factories,
TypeDescription throwableType)
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.
|
Advice.Dispatcher.Bound |
bind(MethodDescription.InDefinedShape instrumentedMethod,
MethodVisitor methodVisitor,
Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler,
ClassReader classReader)
Binds this dispatcher for resolution to a specific method.
|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
protected final MethodDescription.InDefinedShape adviceMethod
protected final Map<Integer,Advice.Dispatcher.OffsetMapping> offsetMappings
protected final Advice.Dispatcher.Active.CodeTranslationVisitor.SuppressionHandler suppressionHandler
protected Resolved(MethodDescription.InDefinedShape adviceMethod, List<Advice.Dispatcher.OffsetMapping.Factory> factories, TypeDescription throwableType)
adviceMethod - The represented advice method.factories - A list of factories to resolve for the parameters of the advice method.throwableType - The type to handle by a suppession handler or NoSuppression to not handle any exceptions.public boolean isAlive()
Advice.Dispatchertrue if this dispatcher is alive.isAlive in interface Advice.Dispatchertrue if this dispatcher is alive.public Advice.Dispatcher.Bound bind(MethodDescription.InDefinedShape instrumentedMethod, MethodVisitor methodVisitor, Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler, ClassReader classReader)
Advice.Dispatcher.Resolvedbind in interface Advice.Dispatcher.ResolvedinstrumentedMethod - The instrumented method.methodVisitor - The method visitor for writing the instrumented method.metaDataHandler - A meta data handler for writing to the instrumented method.classReader - A class reader for parsing the class file containing the represented advice method.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.