public static interface Advice.Dispatcher.Resolved.ForMethodEnter extends Advice.Dispatcher.Resolved
Modifier and Type | Interface and Description |
---|---|
static interface |
Advice.Dispatcher.Resolved.ForMethodEnter.SkipDispatcher
A skip dispatcher is responsible for skipping the instrumented method depending on the
return value of the enter advice method.
|
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.OffsetMapping, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
IGNORE_ANNOTATION, IGNORE_METHOD
Modifier and Type | Method and Description |
---|---|
Advice.Dispatcher.Bound.ForMethodEnter |
bind(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
MethodVisitor methodVisitor,
Implementation.Context implementationContext,
Assigner assigner,
Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler,
Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler,
StackManipulation exceptionHandler)
Binds this dispatcher for resolution to a specific method.
|
TypeDefinition |
getEnterType()
Returns the type that this dispatcher supplies as a result of its advice or a description of
void if
no type is supplied as a result of the enter advice. |
boolean |
isPrependLineNumber()
Returns
true if the first discovered line number information should be prepended to the advice code. |
isAlive
TypeDefinition getEnterType()
void
if
no type is supplied as a result of the enter advice.void
.boolean isPrependLineNumber()
true
if the first discovered line number information should be prepended to the advice code.true
if the first discovered line number information should be prepended to the advice code.Advice.Dispatcher.Bound.ForMethodEnter bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler)
Advice.Dispatcher.Resolved
bind
in interface Advice.Dispatcher.Resolved
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.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.Copyright © 2014–2017. All rights reserved.