Package net.bytebuddy.dynamic.scaffold
Class RecordComponentRegistry.Default.Compiled
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.RecordComponentRegistry.Default.Compiled
-
- All Implemented Interfaces:
RecordComponentRegistry.Compiled
,TypeWriter.RecordComponentPool
- Enclosing class:
- RecordComponentRegistry.Default
@Enhance protected static class RecordComponentRegistry.Default.Compiled extends java.lang.Object implements RecordComponentRegistry.Compiled
A compiled default record component registry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
RecordComponentRegistry.Default.Compiled.Entry
An entry of a compiled record component registry.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.RecordComponentRegistry.Compiled
RecordComponentRegistry.Compiled.NoOp
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.TypeWriter.RecordComponentPool
TypeWriter.RecordComponentPool.Disabled, TypeWriter.RecordComponentPool.Record
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RecordComponentRegistry.Default.Compiled.Entry>
entries
The entries of this compiled record component registry.private TypeDescription
instrumentedType
The instrumented type for which this registry was compiled for.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Compiled(TypeDescription instrumentedType, java.util.List<RecordComponentRegistry.Default.Compiled.Entry> entries)
Creates a new compiled record component registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeWriter.RecordComponentPool.Record
target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type for which this registry was compiled for.
-
entries
private final java.util.List<RecordComponentRegistry.Default.Compiled.Entry> entries
The entries of this compiled record component registry.
-
-
Constructor Detail
-
Compiled
protected Compiled(TypeDescription instrumentedType, java.util.List<RecordComponentRegistry.Default.Compiled.Entry> entries)
Creates a new compiled record component registry.- Parameters:
instrumentedType
- The instrumented type for which this registry was compiled for.entries
- The entries of this compiled record component registry.
-
-
Method Detail
-
target
public TypeWriter.RecordComponentPool.Record target(RecordComponentDescription recordComponentDescription)
Looks up a handler entry for a given record component.- Specified by:
target
in interfaceTypeWriter.RecordComponentPool
- Parameters:
recordComponentDescription
- The record component being processed.- Returns:
- A handler entry for the given record component.
-
-