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 java.lang.Object implements Advice.Dispatcher.Resolved
An abstract base implementation of aAdvice.Dispatcher.Resolveddispatcher.
-
-
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
Fields Modifier and Type Field Description protected MethodDescription.InDefinedShapeadviceMethodThe represented advice method.protected java.util.Map<java.lang.Integer,Advice.OffsetMapping>offsetMappingsA mapping from offset to a mapping for this offset with retained iteration order of the method's parameters.protected Advice.PostProcessorpostProcessorThe post processor to apply.protected Advice.Dispatcher.RelocationHandlerrelocationHandlerThe relocation handler to use.protected Advice.Dispatcher.SuppressionHandlersuppressionHandlerThe suppression handler to use.-
Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAlive()Returnstrueif this dispatcher is alive.-
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
-
-
-
-
Field Detail
-
adviceMethod
protected final MethodDescription.InDefinedShape adviceMethod
The represented advice method.
-
postProcessor
protected final Advice.PostProcessor postProcessor
The post processor to apply.
-
offsetMappings
protected final java.util.Map<java.lang.Integer,Advice.OffsetMapping> offsetMappings
A mapping from offset to a mapping for this offset with retained iteration order of the method's parameters.
-
suppressionHandler
protected final Advice.Dispatcher.SuppressionHandler suppressionHandler
The suppression handler to use.
-
relocationHandler
protected final Advice.Dispatcher.RelocationHandler relocationHandler
The relocation handler to use.
-
-
Constructor Detail
-
AbstractBase
protected AbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, java.util.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.NoExceptionHandlerto not handle any exceptions.relocatableType- The type to trigger a relocation of the method's control flow orvoidif no relocation should be executed.adviceType- The applied advice type.
-
-
Method Detail
-
isAlive
public boolean isAlive()
Returnstrueif this dispatcher is alive.- Specified by:
isAlivein interfaceAdvice.Dispatcher- Returns:
trueif this dispatcher is alive.
-
-