Package net.bytebuddy.dynamic.scaffold
Class MethodRegistry.Default.Compiled.Entry
java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodRegistry.Default.Compiled.Entry
- Enclosing class:
- MethodRegistry.Default.Compiled
An entry of a compiled method registry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodAttributeAppender
The attribute appender of a compiled method.private final boolean
true
if this entry represents a bridge method.private final Set<MethodDescription.TypeToken>
The type tokens representing all bridge methods for the method.private final MethodRegistry.Handler.Compiled
The handler to be used for implementing a method.private final MethodDescription
The method to be implemented including potential transformations.private final Visibility
The represented method's minimum visibility. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Entry
(MethodRegistry.Handler.Compiled handler, MethodAttributeAppender attributeAppender, MethodDescription methodDescription, Set<MethodDescription.TypeToken> bridgeTypes, Visibility visibility, boolean bridgeMethod) Creates a new entry for a compiled method registry. -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeWriter.MethodPool.Record
bind
(TypeDescription instrumentedType, boolean supportsBridges) Transforms this entry into a method record.
-
Field Details
-
handler
The handler to be used for implementing a method. -
attributeAppender
The attribute appender of a compiled method. -
methodDescription
The method to be implemented including potential transformations. -
bridgeTypes
The type tokens representing all bridge methods for the method. -
visibility
The represented method's minimum visibility. -
bridgeMethod
private final boolean bridgeMethodtrue
if this entry represents a bridge method.
-
-
Constructor Details
-
Entry
protected Entry(MethodRegistry.Handler.Compiled handler, MethodAttributeAppender attributeAppender, MethodDescription methodDescription, Set<MethodDescription.TypeToken> bridgeTypes, Visibility visibility, boolean bridgeMethod) Creates a new entry for a compiled method registry.- Parameters:
handler
- The handler to be used for implementing a method.attributeAppender
- The attribute appender of a compiled method.methodDescription
- The method to be implemented including potential transformations.bridgeTypes
- The type tokens representing all bridge methods for the method.visibility
- The represented method's minimum visibility.bridgeMethod
-true
if this entry represents a bridge method.
-
-
Method Details
-
bind
protected TypeWriter.MethodPool.Record bind(TypeDescription instrumentedType, boolean supportsBridges) Transforms this entry into a method record.- Parameters:
instrumentedType
- The instrumented type to bind.supportsBridges
-true
if the record should support bridge methods.- Returns:
- A record representing this entry's properties.
-