Interface Advice.Dispatcher.Unresolved
- All Superinterfaces:
Advice.Dispatcher
- All Known Implementing Classes:
Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining
- Enclosing interface:
Advice.Dispatcher
A dispatcher that is not yet resolved.
-
Nested Class Summary
Nested classes/interfaces inherited from interface 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 -
Field Summary
Fields inherited from interface Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD -
Method Summary
Modifier and TypeMethodDescriptionasMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, AsmClassReader classReader, Advice.Dispatcher.Unresolved methodExit, Advice.PostProcessor.Factory postProcessorFactory) Resolves this dispatcher as a dispatcher for entering a method.asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, AsmClassReader classReader, Advice.Dispatcher.Unresolved methodEnter, Advice.PostProcessor.Factory postProcessorFactory) Resolves this dispatcher as a dispatcher for exiting a method.Returns the named types declared by this enter advice.booleanisBinary()Indicates that this dispatcher requires access to the class file declaring the advice method.Methods inherited from interface Advice.Dispatcher
getAdviceType, isAlive
-
Method Details
-
isBinary
boolean isBinary()Indicates that this dispatcher requires access to the class file declaring the advice method.- Returns:
trueif this dispatcher requires access to the advice method's class file.
-
getNamedTypes
Map<String, TypeDefinition> getNamedTypes()Returns the named types declared by this enter advice.- Returns:
- The named types declared by this enter advice.
-
asMethodEnter
Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, @MaybeNull AsmClassReader classReader, Advice.Dispatcher.Unresolved methodExit, Advice.PostProcessor.Factory postProcessorFactory) Resolves this dispatcher as a dispatcher for entering a method.- Parameters:
userFactories- A list of custom factories for binding parameters of an advice method.classReader- A class reader to query for a class file which might benullif this dispatcher is not binary.methodExit- The unresolved dispatcher for the method exit advice.postProcessorFactory- The post processor factory to use.- Returns:
- This dispatcher as a dispatcher for entering a method.
-
asMethodExit
Advice.Dispatcher.Resolved.ForMethodExit asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, @MaybeNull AsmClassReader classReader, Advice.Dispatcher.Unresolved methodEnter, Advice.PostProcessor.Factory postProcessorFactory) Resolves this dispatcher as a dispatcher for exiting a method.- Parameters:
userFactories- A list of custom factories for binding parameters of an advice method.classReader- A class reader to query for a class file which might benullif this dispatcher is not binary.methodEnter- The unresolved dispatcher for the method enter advice.postProcessorFactory- The post processor factory to use.- Returns:
- This dispatcher as a dispatcher for exiting a method.
-