Package net.bytebuddy.dynamic.scaffold
Class FieldRegistry.Default.Compiled
java.lang.Object
net.bytebuddy.dynamic.scaffold.FieldRegistry.Default.Compiled
- All Implemented Interfaces:
FieldRegistry.Compiled
,TypeWriter.FieldPool
- Enclosing class:
- FieldRegistry.Default
@Enhance
protected static class FieldRegistry.Default.Compiled
extends Object
implements FieldRegistry.Compiled
A compiled default field registry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
An entry of a compiled field registry.Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.FieldRegistry.Compiled
FieldRegistry.Compiled.NoOp
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.TypeWriter.FieldPool
TypeWriter.FieldPool.Disabled, TypeWriter.FieldPool.Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FieldRegistry.Default.Compiled.Entry>
The entries of this compiled field registry.private final TypeDescription
The instrumented type for which this registry was compiled for. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Compiled
(TypeDescription instrumentedType, List<FieldRegistry.Default.Compiled.Entry> entries) Creates a new compiled field registry. -
Method Summary
Modifier and TypeMethodDescriptiontarget
(FieldDescription fieldDescription) Looks up a handler entry for a given field.
-
Field Details
-
instrumentedType
The instrumented type for which this registry was compiled for. -
entries
The entries of this compiled field registry.
-
-
Constructor Details
-
Compiled
protected Compiled(TypeDescription instrumentedType, List<FieldRegistry.Default.Compiled.Entry> entries) Creates a new compiled field registry.- Parameters:
instrumentedType
- The instrumented type for which this registry was compiled for.entries
- The entries of this compiled field registry.
-
-
Method Details
-
target
Looks up a handler entry for a given field.- Specified by:
target
in interfaceTypeWriter.FieldPool
- Parameters:
fieldDescription
- The field being processed.- Returns:
- A handler entry for the given field.
-