@HashCodeAndEqualsPlugin.Enhance public static class Advice.Dispatcher.Delegating extends Object implements Advice.Dispatcher.Unresolved
Modifier and Type | Class and Description |
---|---|
protected static class |
Advice.Dispatcher.Delegating.Resolved
A resolved version of a dispatcher.
|
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
Modifier and Type | Field and Description |
---|---|
protected MethodDescription.InDefinedShape |
adviceMethod
The advice method.
|
protected Advice.Delegator |
delegator
The delegator to use.
|
IGNORE_ANNOTATION, IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
Delegating(MethodDescription.InDefinedShape adviceMethod,
Advice.Delegator delegator)
Creates a new delegating advice dispatcher.
|
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.Resolved.ForMethodEnter |
asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
Advice.Dispatcher.Unresolved methodExit,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for entering a method.
|
Advice.Dispatcher.Resolved.ForMethodExit |
asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories,
org.objectweb.asm.ClassReader classReader,
Advice.Dispatcher.Unresolved methodEnter,
Advice.PostProcessor.Factory postProcessorFactory)
Resolves this dispatcher as a dispatcher for exiting a method.
|
TypeDescription |
getAdviceType()
The type that is produced as a result of executing this advice method.
|
Map<String,TypeDefinition> |
getNamedTypes()
Returns the named types declared by this enter advice.
|
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
boolean |
isBinary()
Indicates that this dispatcher requires access to the class file declaring the advice method.
|
protected final MethodDescription.InDefinedShape adviceMethod
protected final Advice.Delegator delegator
protected Delegating(MethodDescription.InDefinedShape adviceMethod, Advice.Delegator delegator)
adviceMethod
- The advice method.delegator
- The delegator to use.public boolean isAlive()
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.public boolean isBinary()
isBinary
in interface Advice.Dispatcher.Unresolved
true
if this dispatcher requires access to the advice method's class file.public TypeDescription getAdviceType()
getAdviceType
in interface Advice.Dispatcher
public Map<String,TypeDefinition> getNamedTypes()
getNamedTypes
in interface Advice.Dispatcher.Unresolved
public Advice.Dispatcher.Resolved.ForMethodEnter asMethodEnter(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, Advice.Dispatcher.Unresolved methodExit, Advice.PostProcessor.Factory postProcessorFactory)
asMethodEnter
in interface Advice.Dispatcher.Unresolved
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 be null
if this dispatcher is not binary.methodExit
- The unresolved dispatcher for the method exit advice.postProcessorFactory
- The post processor factory to use.public Advice.Dispatcher.Resolved.ForMethodExit asMethodExit(List<? extends Advice.OffsetMapping.Factory<?>> userFactories, org.objectweb.asm.ClassReader classReader, Advice.Dispatcher.Unresolved methodEnter, Advice.PostProcessor.Factory postProcessorFactory)
asMethodExit
in interface Advice.Dispatcher.Unresolved
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 be null
if this dispatcher is not binary.methodEnter
- The unresolved dispatcher for the method enter advice.postProcessorFactory
- The post processor factory to use.Copyright © 2014–2021. All rights reserved.