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 Object
implements RecordComponentRegistry.Compiled
A compiled default record component registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
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
FieldsModifier and TypeFieldDescriptionprivate final List
<RecordComponentRegistry.Default.Compiled.Entry> The entries of this compiled record component registry.private final TypeDescription
The instrumented type for which this registry was compiled for. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Compiled
(TypeDescription instrumentedType, List<RecordComponentRegistry.Default.Compiled.Entry> entries) Creates a new compiled record component registry. -
Method Summary
Modifier and TypeMethodDescriptiontarget
(RecordComponentDescription recordComponentDescription) Looks up a handler entry for a given record component.
-
Field Details
-
instrumentedType
The instrumented type for which this registry was compiled for. -
entries
The entries of this compiled record component registry.
-
-
Constructor Details
-
Compiled
protected Compiled(TypeDescription instrumentedType, 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 Details
-
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.
-