Interface Advice.Dispatcher.Resolved
- All Superinterfaces:
Advice.Dispatcher
- All Known Subinterfaces:
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
- All Known Implementing Classes:
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.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 interface:
Advice.Dispatcher
Represents a resolved dispatcher.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn abstract base implementation of aAdvice.Dispatcher.Resolveddispatcher.static interfaceRepresents a resolved dispatcher for entering a method.static interfaceRepresents a resolved dispatcher for exiting a method.Nested classes/interfaces inherited from interface Advice.Dispatcher
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved -
Field Summary
Fields inherited from interface Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD -
Method Summary
Modifier and TypeMethodDescriptionbind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.Returns the named types defined by this advice.Methods inherited from interface Advice.Dispatcher
getAdviceType, isAlive
-
Method Details
-
getNamedTypes
Map<String, TypeDefinition> getNamedTypes()Returns the named types defined by this advice.- Returns:
- The named types defined by this advice.
-
bind
Advice.Dispatcher.Bound bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.ArgumentHandler.ForInstrumentedMethod argumentHandler, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this dispatcher for resolution to a specific method.- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.methodVisitor- The method visitor for writing the instrumented method.implementationContext- The implementation context to use.assigner- The assigner to use.argumentHandler- A handler for accessing values on the local variable array.methodSizeHandler- A handler for computing the method size requirements.stackMapFrameHandler- A handler for translating and injecting stack map frames.exceptionHandler- The stack manipulation to apply within a suppression handler.relocation- A relocation to use with a relocation handler.- Returns:
- A dispatcher that is bound to the instrumented method.
-