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 interfaceA bound resolution of an advice method.static classA dispatcher for an advice method that is being invoked from the instrumented method.static enumAn implementation for inactive devise that does not write any byte code.static classA dispatcher for an advice method that is being inlined into the instrumented method.static interfaceA relocation handler is responsible for chaining the usual control flow of an instrumented method.static interfaceRepresents a resolved dispatcher.static interfaceA suppression handler for optionally suppressing exceptions.static interfaceA dispatcher that is not yet resolved. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.objectweb.asm.AnnotationVisitorExpresses that an annotation should not be visited.static final org.objectweb.asm.MethodVisitorIndicates 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.booleanisAlive()Returnstrueif 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()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.
-