Package net.bytebuddy.dynamic.scaffold
Class MethodRegistry.Handler.ForImplementation
java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler.ForImplementation
- All Implemented Interfaces:
InstrumentedType.Prepareable
,MethodRegistry.Handler
- Enclosing interface:
MethodRegistry.Handler
@Enhance
public static class MethodRegistry.Handler.ForImplementation
extends Object
implements MethodRegistry.Handler
A handler for a method that is implemented as byte code.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A compiled handler for implementing a method.Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler
MethodRegistry.Handler.ForAbstractMethod, MethodRegistry.Handler.ForAnnotationValue, MethodRegistry.Handler.ForImplementation, MethodRegistry.Handler.ForVisibilityBridge
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForImplementation
(Implementation implementation) Creates a new handler for implementing a method with byte code. -
Method Summary
Modifier and TypeMethodDescriptioncompile
(Implementation.Target implementationTarget) Compiles this handler.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.
-
Field Details
-
implementation
The implementation to apply.
-
-
Constructor Details
-
ForImplementation
Creates a new handler for implementing a method with byte code.- Parameters:
implementation
- The implementation to apply.
-
-
Method Details
-
prepare
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
compile
public MethodRegistry.Handler.ForImplementation.Compiled compile(Implementation.Target implementationTarget) Compiles this handler.- Specified by:
compile
in interfaceMethodRegistry.Handler
- Parameters:
implementationTarget
- The implementation target to compile this handler for.- Returns:
- A compiled handler.
-