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.Dispatcher
A dispatcher for implementing advice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Advice.Dispatcher.Bound
A bound resolution of an advice method.static class
Advice.Dispatcher.Delegating
A dispatcher for an advice method that is being invoked from the instrumented method.static class
Advice.Dispatcher.Inactive
An implementation for inactive devise that does not write any byte code.static class
Advice.Dispatcher.Inlining
A dispatcher for an advice method that is being inlined into the instrumented method.static interface
Advice.Dispatcher.RelocationHandler
A relocation handler is responsible for chaining the usual control flow of an instrumented method.static interface
Advice.Dispatcher.Resolved
Represents a resolved dispatcher.static interface
Advice.Dispatcher.SuppressionHandler
A suppression handler for optionally suppressing exceptions.static interface
Advice.Dispatcher.Unresolved
A dispatcher that is not yet resolved.
-
Field Summary
Fields Modifier and Type Field Description static org.objectweb.asm.AnnotationVisitor
IGNORE_ANNOTATION
Expresses that an annotation should not be visited.static org.objectweb.asm.MethodVisitor
IGNORE_METHOD
Indicates 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 TypeDefinition
getAdviceType()
The type that is produced as a result of executing this advice method.boolean
isAlive()
Returnstrue
if 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()
Returnstrue
if this dispatcher is alive.- Returns:
true
if 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.
-
-