Package net.bytebuddy.asm
Class Advice.Dispatcher.Resolved.AbstractBase
java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.Resolved.AbstractBase
- All Implemented Interfaces:
Advice.Dispatcher
,Advice.Dispatcher.Resolved
- Direct Known Subclasses:
Advice.Dispatcher.Delegating.Resolved
,Advice.Dispatcher.Inlining.Resolved
- Enclosing interface:
- Advice.Dispatcher.Resolved
@Enhance
public abstract static class Advice.Dispatcher.Resolved.AbstractBase
extends Object
implements Advice.Dispatcher.Resolved
An abstract base implementation of a
Advice.Dispatcher.Resolved
dispatcher.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Resolved
Advice.Dispatcher.Resolved.AbstractBase, Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MethodDescription.InDefinedShape
The represented advice method.protected final Map<Integer,
Advice.OffsetMapping> A mapping from offset to a mapping for this offset with retained iteration order of the method's parameters.protected final Advice.PostProcessor
The post processor to apply.protected final Advice.Dispatcher.RelocationHandler
The relocation handler to use.protected final Advice.Dispatcher.SuppressionHandler
The suppression handler to use.Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBase
(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.OffsetMapping.Factory.AdviceType adviceType) Creates a new resolved version of a dispatcher. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bytebuddy.asm.Advice.Dispatcher
getAdviceType
Methods inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Resolved
bind, getNamedTypes
-
Field Details
-
adviceMethod
The represented advice method. -
postProcessor
The post processor to apply. -
offsetMappings
A mapping from offset to a mapping for this offset with retained iteration order of the method's parameters. -
suppressionHandler
The suppression handler to use. -
relocationHandler
The relocation handler to use.
-
-
Constructor Details
-
AbstractBase
protected AbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, Advice.OffsetMapping.Factory.AdviceType adviceType) Creates a new resolved version of a dispatcher.- Parameters:
adviceMethod
- The represented advice method.postProcessor
- The post processor to use.factories
- A list of factories to resolve for the parameters of the advice method.throwableType
- The type to handle by a suppression handler orAdvice.NoExceptionHandler
to not handle any exceptions.relocatableType
- The type to trigger a relocation of the method's control flow orvoid
if no relocation should be executed.adviceType
- The applied advice type.
-
-
Method Details
-
isAlive
public boolean isAlive()Returnstrue
if this dispatcher is alive.- Specified by:
isAlive
in interfaceAdvice.Dispatcher
- Returns:
true
if this dispatcher is alive.
-