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 java.lang.Object implements MethodRegistry.Handler
A handler for a method that is implemented as byte code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MethodRegistry.Handler.ForImplementation.Compiled
A compiled handler for implementing a method.-
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 Modifier and Type Field Description private Implementation
implementation
The implementation to apply.
-
Constructor Summary
Constructors Constructor Description ForImplementation(Implementation implementation)
Creates a new handler for implementing a method with byte code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodRegistry.Handler.ForImplementation.Compiled
compile(Implementation.Target implementationTarget)
Compiles this handler.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
-
-
-
Field Detail
-
implementation
private final Implementation implementation
The implementation to apply.
-
-
Constructor Detail
-
ForImplementation
public ForImplementation(Implementation implementation)
Creates a new handler for implementing a method with byte code.- Parameters:
implementation
- The implementation to apply.
-
-
Method Detail
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
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.
-
-