@HashCodeAndEqualsPlugin.Enhance public static class FieldRegistry.Default extends java.lang.Object implements FieldRegistry
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FieldRegistry.Default.Compiled
A compiled default field registry.
|
protected static class |
FieldRegistry.Default.Entry
An entry of the default field registry.
|
FieldRegistry.Default| Modifier and Type | Field and Description |
|---|---|
private java.util.List<FieldRegistry.Default.Entry> |
entries
This registries entries.
|
| Modifier | Constructor and Description |
|---|---|
|
Default()
Creates a new empty default field registry.
|
private |
Default(java.util.List<FieldRegistry.Default.Entry> entries)
Creates a new default field registry.
|
| Modifier and Type | Method and Description |
|---|---|
FieldRegistry.Compiled |
compile(TypeDescription instrumentedType)
Prepares the field registry for a given instrumented type.
|
FieldRegistry |
prepend(LatentMatcher<? super FieldDescription> matcher,
FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
java.lang.Object defaultValue,
Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.
|
private final java.util.List<FieldRegistry.Default.Entry> entries
public Default()
private Default(java.util.List<FieldRegistry.Default.Entry> entries)
entries - The entries of the field registry.public FieldRegistry prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, java.lang.Object defaultValue, Transformer<FieldDescription> transformer)
prepend in interface FieldRegistrymatcher - The matcher to identify any field that this definition concerns.fieldAttributeAppenderFactory - The field attribute appender factory to apply on any matched field.defaultValue - The default value to write to the field or null if no default value is to be set for the field.transformer - The field transformer to apply to any matched field.public FieldRegistry.Compiled compile(TypeDescription instrumentedType)
compile in interface FieldRegistryinstrumentedType - The instrumented type.