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 java.lang.Object implements FieldRegistry.Compiled
A compiled default field registry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classFieldRegistry.Default.Compiled.EntryAn 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
Fields Modifier and Type Field Description private java.util.List<FieldRegistry.Default.Compiled.Entry>entriesThe entries of this compiled field registry.private TypeDescriptioninstrumentedTypeThe instrumented type for which this registry was compiled for.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompiled(TypeDescription instrumentedType, java.util.List<FieldRegistry.Default.Compiled.Entry> entries)Creates a new compiled field registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeWriter.FieldPool.Recordtarget(FieldDescription fieldDescription)Looks up a handler entry for a given field.
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type for which this registry was compiled for.
-
entries
private final java.util.List<FieldRegistry.Default.Compiled.Entry> entries
The entries of this compiled field registry.
-
-
Constructor Detail
-
Compiled
protected Compiled(TypeDescription instrumentedType, java.util.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 Detail
-
target
public TypeWriter.FieldPool.Record target(FieldDescription fieldDescription)
Looks up a handler entry for a given field.- Specified by:
targetin interfaceTypeWriter.FieldPool- Parameters:
fieldDescription- The field being processed.- Returns:
- A handler entry for the given field.
-
-