Package net.bytebuddy.asm
Interface Advice.Dispatcher.Resolved.ForMethodEnter
-
- All Superinterfaces:
Advice.Dispatcher
,Advice.Dispatcher.Resolved
- All Known Implementing Classes:
Advice.Dispatcher.Delegating.Resolved.ForMethodEnter
,Advice.Dispatcher.Inactive
,Advice.Dispatcher.Inlining.Resolved.ForMethodEnter
- Enclosing interface:
- Advice.Dispatcher.Resolved
public static interface Advice.Dispatcher.Resolved.ForMethodEnter extends Advice.Dispatcher.Resolved
Represents a resolved dispatcher for entering a method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher
Advice.Dispatcher.Bound, Advice.Dispatcher.Delegating, Advice.Dispatcher.Inactive, Advice.Dispatcher.Inlining, Advice.Dispatcher.Resolved, Advice.Dispatcher.SuppressionHandler, Advice.Dispatcher.Unresolved
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.Resolved
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher
IGNORE_ANNOTATION, IGNORE_METHOD
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Advice.Dispatcher.Bound.ForMethodEnter
bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.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 ofvoid
if no type is supplied as a result of the enter advice.boolean
isPrependLineNumber()
Returnstrue
if the first discovered line number information should be prepended to the advice code.-
Methods inherited from interface net.bytebuddy.asm.Advice.Dispatcher
isAlive
-
-
-
-
Method Detail
-
getEnterType
TypeDefinition getEnterType()
Returns the type that this dispatcher supplies as a result of its advice or a description ofvoid
if no type is supplied as a result of the enter advice.- Returns:
- The type that this dispatcher supplies as a result of its advice or a description of
void
.
-
isPrependLineNumber
boolean isPrependLineNumber()
Returnstrue
if the first discovered line number information should be prepended to the advice code.- Returns:
true
if the first discovered line number information should be prepended to the advice code.
-
bind
Advice.Dispatcher.Bound.ForMethodEnter bind(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, Assigner assigner, Advice.MethodSizeHandler.ForInstrumentedMethod methodSizeHandler, Advice.StackMapFrameHandler.ForInstrumentedMethod stackMapFrameHandler, StackManipulation exceptionHandler)
Description copied from interface:Advice.Dispatcher.Resolved
Binds this dispatcher for resolution to a specific method.- Specified by:
bind
in interfaceAdvice.Dispatcher.Resolved
- 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.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.- Returns:
- A dispatcher that is bound to the instrumented method.
-
-