@HashCodeAndEqualsPlugin.Enhance public static class FieldRegistry.Default extends 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
Constructor and Description |
---|
Default()
Creates a new empty 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,
Object defaultValue,
Transformer<FieldDescription> transformer)
Prepends the given field definition to this field registry, i.e.
|
public FieldRegistry prepend(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Object defaultValue, Transformer<FieldDescription> transformer)
prepend
in interface FieldRegistry
matcher
- 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 FieldRegistry
instrumentedType
- The instrumented type.Copyright © 2014–2020. All rights reserved.