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 classMethodRegistry.Handler.ForImplementation.CompiledA 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 Modifier and Type Field Description private ImplementationimplementationThe 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.Compiledcompile(Implementation.Target implementationTarget)Compiles this handler.InstrumentedTypeprepare(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:
preparein 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:
compilein interfaceMethodRegistry.Handler- Parameters:
implementationTarget- The implementation target to compile this handler for.- Returns:
- A compiled handler.
-
-