Package net.bytebuddy.asm
Interface Advice.Dispatcher
-
- All Known Subinterfaces:
Advice.Dispatcher.Resolved,Advice.Dispatcher.Resolved.ForMethodEnter,Advice.Dispatcher.Resolved.ForMethodExit,Advice.Dispatcher.Unresolved
- All Known Implementing Classes:
Advice.Dispatcher.Delegating,Advice.Dispatcher.Delegating.Resolved,Advice.Dispatcher.Delegating.Resolved.ForMethodEnter,Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithDiscardedEnterType,Advice.Dispatcher.Delegating.Resolved.ForMethodEnter.WithRetainedEnterType,Advice.Dispatcher.Delegating.Resolved.ForMethodExit,Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithExceptionHandler,Advice.Dispatcher.Delegating.Resolved.ForMethodExit.WithoutExceptionHandler,Advice.Dispatcher.Inactive,Advice.Dispatcher.Inlining,Advice.Dispatcher.Inlining.Resolved,Advice.Dispatcher.Inlining.Resolved.ForMethodEnter,Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithDiscardedEnterType,Advice.Dispatcher.Inlining.Resolved.ForMethodEnter.WithRetainedEnterType,Advice.Dispatcher.Inlining.Resolved.ForMethodExit,Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithExceptionHandler,Advice.Dispatcher.Inlining.Resolved.ForMethodExit.WithoutExceptionHandler,Advice.Dispatcher.Resolved.AbstractBase
- Enclosing class:
- Advice
protected static interface Advice.DispatcherA dispatcher for implementing advice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdvice.Dispatcher.BoundA bound resolution of an advice method.static classAdvice.Dispatcher.DelegatingA dispatcher for an advice method that is being invoked from the instrumented method.static classAdvice.Dispatcher.InactiveAn implementation for inactive devise that does not write any byte code.static classAdvice.Dispatcher.InliningA dispatcher for an advice method that is being inlined into the instrumented method.static interfaceAdvice.Dispatcher.RelocationHandlerA relocation handler is responsible for chaining the usual control flow of an instrumented method.static interfaceAdvice.Dispatcher.ResolvedRepresents a resolved dispatcher.static interfaceAdvice.Dispatcher.SuppressionHandlerA suppression handler for optionally suppressing exceptions.static interfaceAdvice.Dispatcher.UnresolvedA dispatcher that is not yet resolved.
-
Field Summary
Fields Modifier and Type Field Description static org.objectweb.asm.AnnotationVisitorIGNORE_ANNOTATIONExpresses that an annotation should not be visited.static org.objectweb.asm.MethodVisitorIGNORE_METHODIndicates that a method does not represent advice and does not need to be visited.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeDefinitiongetAdviceType()The type that is produced as a result of executing this advice method.booleanisAlive()Returnstrueif this dispatcher is alive.
-
-
-
Field Detail
-
IGNORE_METHOD
static final org.objectweb.asm.MethodVisitor IGNORE_METHOD
Indicates that a method does not represent advice and does not need to be visited.
-
IGNORE_ANNOTATION
static final org.objectweb.asm.AnnotationVisitor IGNORE_ANNOTATION
Expresses that an annotation should not be visited.
-
-
Method Detail
-
isAlive
boolean isAlive()
Returnstrueif this dispatcher is alive.- Returns:
trueif this dispatcher is alive.
-
getAdviceType
TypeDefinition getAdviceType()
The type that is produced as a result of executing this advice method.- Returns:
- A description of the type that is produced by this advice method.
-
-