@HashCodeAndEqualsPlugin.Enhance(includeSyntheticFields=true) protected class DynamicType.Builder.AbstractBase.Adapter.FieldMatchAdapter extends DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase<V>
DynamicType.Builder.AbstractBase.Delegator<U>, DynamicType.Builder.AbstractBase.UsingTypeWriter<U>DynamicType.Builder.FieldDefinition.Optional.Valuable.AbstractBase<U>DynamicType.Builder.FieldDefinition.Optional.Valuable<V>DynamicType.Builder.FieldDefinition.Optional<U>DynamicType.Builder.FieldDefinition<S>, DynamicType.Builder.InnerTypeDefinition<S>, DynamicType.Builder.MethodDefinition<S>, DynamicType.Builder.RecordComponentDefinition<S>, DynamicType.Builder.TypeVariableDefinition<S>| Modifier | Constructor and Description |
|---|---|
protected |
FieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue,
LatentMatcher<? super FieldDescription> matcher)
Creates a new field match adapter.
|
protected |
FieldMatchAdapter(LatentMatcher<? super FieldDescription> matcher)
Creates a new field match adapter.
|
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.FieldDefinition.Optional<U> |
annotateField(Collection<? extends AnnotationDescription> annotations)
Annotates the previously defined or matched field with the supplied annotations.
|
protected DynamicType.Builder<U> |
materialize()
Creates a new builder that realizes the current state of the builder.
|
protected DynamicType.Builder.FieldDefinition.Optional<U> |
materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
Object defaultValue)
Creates a new optional field definition for which all of the supplied values are represented.
|
value, value, value, value, value, valueannotateField, annotateField, annotateFieldannotateType, attribute, declaredTypes, define, defineConstructor, defineField, defineMethod, defineRecordComponent, field, ignoreAlso, ignoreAlso, implement, initializer, initializer, innerTypeOf, innerTypeOf, invokable, make, make, make, make, merge, modifiers, name, nestHost, nestMembers, permittedSubclass, recordComponent, recordComponent, require, suffix, topLevelType, toTypeDescription, transform, typeVariable, unsealed, visit, wrap, wrapannotateType, annotateType, annotateType, constructor, declaredTypes, declaredTypes, declaredTypes, define, define, define, define, define, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, defineRecordComponent, field, implement, implement, implement, innerTypeOf, innerTypeOf, innerTypeOf, invokable, merge, method, modifiers, modifiers, nestHost, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, require, require, require, serialVersionUid, typeVariable, typeVariable, typeVariable, typeVariable, withHashCodeEquals, withToString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotateField, annotateField, annotateFieldannotateType, annotateType, annotateType, annotateType, attribute, constructor, declaredTypes, declaredTypes, declaredTypes, declaredTypes, define, define, define, define, define, define, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineProperty, defineProperty, defineProperty, defineProperty, defineRecordComponent, defineRecordComponent, field, field, ignoreAlso, ignoreAlso, implement, implement, implement, implement, initializer, initializer, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, innerTypeOf, invokable, invokable, make, make, make, make, merge, merge, method, modifiers, modifiers, modifiers, name, nestHost, nestHost, nestMembers, nestMembers, nestMembers, nestMembers, noNestMate, permittedSubclass, permittedSubclass, permittedSubclass, permittedSubclass, recordComponent, recordComponent, require, require, require, require, serialVersionUid, suffix, topLevelType, toTypeDescription, transform, typeVariable, typeVariable, typeVariable, typeVariable, typeVariable, unsealed, visit, withHashCodeEquals, withToString, wrap, wrap, wrap, wrapprotected FieldMatchAdapter(LatentMatcher<? super FieldDescription> matcher)
matcher - The matcher for any fields to apply this matcher to.protected FieldMatchAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, @MaybeNull Object defaultValue, LatentMatcher<? super FieldDescription> matcher)
fieldAttributeAppenderFactory - The field attribute appender factory to apply.transformer - The field transformer to apply.defaultValue - The field's default value or null if no value is to be defined.matcher - The matcher for any fields to apply this matcher to.public DynamicType.Builder.FieldDefinition.Optional<U> annotateField(Collection<? extends AnnotationDescription> annotations)
annotations - The annotations to declare on the previously defined or matched field.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegatormaterialize in class DynamicType.Builder.AbstractBase.Delegator<U>protected DynamicType.Builder.FieldDefinition.Optional<U> materialize(FieldAttributeAppender.Factory fieldAttributeAppenderFactory, Transformer<FieldDescription> transformer, @MaybeNull Object defaultValue)
fieldAttributeAppenderFactory - The field attribute appender factory to apply.transformer - The field transformer to apply.defaultValue - The field's default value or null if no value is to be defined.Copyright © 2014–2023. All rights reserved.