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 field registry without any registered fields.
|
Modifier and Type | Method and Description |
---|---|
FieldRegistry.Compiled |
compile(TypeDescription instrumentedType)
Prepares the field registry for a given instrumented type.
|
boolean |
equals(Object other) |
int |
hashCode() |
FieldRegistry |
include(FieldDescription.Token fieldToken,
FieldAttributeAppender.Factory attributeAppenderFactory,
Object defaultValue)
Creates a new field registry with the given attribute appender registered for the supplied field matcher.
|
String |
toString() |
public Default()
public FieldRegistry include(FieldDescription.Token fieldToken, FieldAttributeAppender.Factory attributeAppenderFactory, Object defaultValue)
FieldRegistry
include
in interface FieldRegistry
fieldToken
- A token identifying the field for which this entry is valid.attributeAppenderFactory
- The field attribute appender factory to be registered for this field.defaultValue
- The field's default value or null
if no such default value is set.public FieldRegistry.Compiled compile(TypeDescription instrumentedType)
FieldRegistry
compile
in interface FieldRegistry
instrumentedType
- The instrumented type.Copyright © 2014–2015. All rights reserved.