Package net.bytebuddy.dynamic.scaffold
Class MethodRegistry.Handler.ForImplementation.Compiled
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler.ForImplementation.Compiled
-
- All Implemented Interfaces:
MethodRegistry.Handler.Compiled
- Enclosing class:
- MethodRegistry.Handler.ForImplementation
@Enhance protected static class MethodRegistry.Handler.ForImplementation.Compiled extends java.lang.Object implements MethodRegistry.Handler.Compiled
A compiled handler for implementing a method.
-
-
Field Summary
Fields Modifier and Type Field Description private ByteCodeAppender
byteCodeAppender
The byte code appender to apply.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Compiled(ByteCodeAppender byteCodeAppender)
Creates a new compiled handler for a method implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeWriter.MethodPool.Record
assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility)
Assembles this compiled entry with a method attribute appender.
-
-
-
Field Detail
-
byteCodeAppender
private final ByteCodeAppender byteCodeAppender
The byte code appender to apply.
-
-
Constructor Detail
-
Compiled
protected Compiled(ByteCodeAppender byteCodeAppender)
Creates a new compiled handler for a method implementation.- Parameters:
byteCodeAppender
- The byte code appender to apply.
-
-
Method Detail
-
assemble
public TypeWriter.MethodPool.Record assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility)
Assembles this compiled entry with a method attribute appender.- Specified by:
assemble
in interfaceMethodRegistry.Handler.Compiled
- Parameters:
methodDescription
- The method description to apply with this handler.attributeAppender
- The method attribute appender to apply together with this handler.visibility
- The represented method's minimum visibility.- Returns:
- A method pool entry representing this handler and the given attribute appender.
-
-