protected abstract static class Advice.Dispatcher.Delegating.Resolved extends Advice.Dispatcher.Resolved.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
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.Delegating.Resolved.ForMethodEnter
A resolved dispatcher for implementing method enter advice.
|
protected static class |
Advice.Dispatcher.Delegating.Resolved.ForMethodExit
A resolved dispatcher for implementing method exit advice.
|
Advice.Dispatcher.Resolved.AbstractBaseAdvice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved| Modifier and Type | Field and Description |
|---|---|
protected Advice.Delegator |
delegator
The delegator to use.
|
offsetMappings, postProcessor, relocationHandler, suppressionHandlerIGNORE_ANNOTATION, IGNORE_METHOD| Modifier | Constructor and Description |
|---|---|
protected |
Resolved(MethodDescription.InDefinedShape adviceMethod,
Advice.PostProcessor postProcessor,
List<? extends Advice.OffsetMapping.Factory<?>> factories,
TypeDescription throwableType,
TypeDescription relocatableType,
int relocatableIndex,
Advice.Delegator delegator)
Creates a new resolved version of a dispatcher.
|
isAliveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdviceTypeprotected final Advice.Delegator delegator
protected Resolved(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, int relocatableIndex, Advice.Delegator delegator)
adviceMethod - The represented advice method.postProcessor - The post processor to apply.factories - A list of factories to resolve for the parameters of the advice method.throwableType - The type to handle by a suppression handler or NoExceptionHandler to not handle any exceptions.relocatableType - The type to trigger a relocation of the method's control flow or void if no relocation should be executed.relocatableIndex - The index within an array that is returned by the advice method, indicating the value to consider for relocation.delegator - The delegator to use.public Map<String,TypeDefinition> getNamedTypes()
public Advice.Dispatcher.Bound bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation)
instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.methodVisitor - The method visitor for writing the instrumented method.implementationContext - The implementation context to use.assigner - The assigner to use.argumentHandler - A handler for accessing values on the local variable array.methodSizeHandler - A handler for computing the method size requirements.stackMapFrameHandler - A handler for translating and injecting stack map frames.exceptionHandler - The stack manipulation to apply within a suppression handler.relocation - A relocation to use with a relocation handler.protected abstract Advice.Dispatcher.Bound resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation)
instrumentedType - A description of the instrumented type.instrumentedMethod - The instrumented method that is being bound.methodVisitor - The method visitor for writing to the instrumented method.implementationContext - The implementation context to use.assigner - The assigner to use.argumentHandler - A handler for accessing values on the local variable array.methodSizeHandler - A handler for computing the method size requirements.stackMapFrameHandler - A handler for translating and injecting stack map frames.exceptionHandler - The stack manipulation to apply within a suppression handler.relocation - A relocation to use with a relocation handler.Copyright © 2014–2025. All rights reserved.