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
@Enhance protected static class MethodRegistry.Default.Compiled.Entry extends java.lang.Object
An entry of a compiled method registry.
-
-
Field Summary
Fields Modifier and Type Field Description private MethodAttributeAppender
attributeAppender
The attribute appender of a compiled method.private boolean
bridgeMethod
true
if this entry represents a bridge method.private java.util.Set<MethodDescription.TypeToken>
bridgeTypes
The type tokens representing all bridge methods for the method.private MethodRegistry.Handler.Compiled
handler
The handler to be used for implementing a method.private MethodDescription
methodDescription
The method to be implemented including potential transformations.private Visibility
visibility
The represented method's minimum visibility.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Entry(MethodRegistry.Handler.Compiled handler, MethodAttributeAppender attributeAppender, MethodDescription methodDescription, java.util.Set<MethodDescription.TypeToken> bridgeTypes, Visibility visibility, boolean bridgeMethod)
Creates a new entry for a compiled method registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeWriter.MethodPool.Record
bind(TypeDescription instrumentedType, boolean supportsBridges)
Transforms this entry into a method record.
-
-
-
Field Detail
-
handler
private final MethodRegistry.Handler.Compiled handler
The handler to be used for implementing a method.
-
attributeAppender
private final MethodAttributeAppender attributeAppender
The attribute appender of a compiled method.
-
methodDescription
private final MethodDescription methodDescription
The method to be implemented including potential transformations.
-
bridgeTypes
private final java.util.Set<MethodDescription.TypeToken> bridgeTypes
The type tokens representing all bridge methods for the method.
-
visibility
private final Visibility visibility
The represented method's minimum visibility.
-
bridgeMethod
private final boolean bridgeMethod
true
if this entry represents a bridge method.
-
-
Constructor Detail
-
Entry
protected Entry(MethodRegistry.Handler.Compiled handler, MethodAttributeAppender attributeAppender, MethodDescription methodDescription, java.util.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 Detail
-
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.
-
-