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 ClassesModifier and TypeInterfaceDescriptionstatic interface
A bound resolution of an advice method.static class
A dispatcher for an advice method that is being invoked from the instrumented method.static enum
An implementation for inactive devise that does not write any byte code.static class
A dispatcher for an advice method that is being inlined into the instrumented method.static interface
A relocation handler is responsible for chaining the usual control flow of an instrumented method.static interface
Represents a resolved dispatcher.static interface
A suppression handler for optionally suppressing exceptions.static interface
A dispatcher that is not yet resolved. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.objectweb.asm.AnnotationVisitor
Expresses that an annotation should not be visited.static final org.objectweb.asm.MethodVisitor
Indicates that a method does not represent advice and does not need to be visited. -
Method Summary
Modifier and TypeMethodDescriptionThe type that is produced as a result of executing this advice method.boolean
isAlive()
Returnstrue
if this dispatcher is alive.
-
Field Details
-
IGNORE_METHOD
Indicates that a method does not represent advice and does not need to be visited. -
IGNORE_ANNOTATION
Expresses that an annotation should not be visited.
-
-
Method Details
-
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.
-