protected class DynamicType.Builder.AbstractBase.Adapter.RecordComponentMatchAdapter extends DynamicType.Builder.RecordComponentDefinition.Optional.AbstractBase<U>
DynamicType.Builder.AbstractBase.Adapter<U>, DynamicType.Builder.AbstractBase.Delegator<U>
DynamicType.Builder.RecordComponentDefinition.Optional.AbstractBase<U>
DynamicType.Builder.RecordComponentDefinition.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 |
RecordComponentMatchAdapter(LatentMatcher<? super RecordComponentDescription> matcher)
Creates a new record component match adapter.
|
protected |
RecordComponentMatchAdapter(LatentMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory,
Transformer<RecordComponentDescription> transformer)
Creates a new record component match adapter.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
attribute(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory)
Applies the supplied record component attribute appender factory onto the previously defined record component.
|
protected DynamicType.Builder<U> |
materialize()
Creates a new builder that realizes the current state of the builder.
|
DynamicType.Builder.RecordComponentDefinition.Optional<U> |
transform(Transformer<RecordComponentDescription> transformer)
Transforms a record component description before writing.
|
annotateRecordComponent, annotateRecordComponent, annotateRecordComponent
annotateType, 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
annotateType, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
annotateType, 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
protected RecordComponentMatchAdapter(LatentMatcher<? super RecordComponentDescription> matcher)
matcher
- The matcher for identifying record components to match.protected RecordComponentMatchAdapter(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory, Transformer<RecordComponentDescription> transformer)
matcher
- The matcher for identifying record components to match.recordComponentAttributeAppenderFactory
- The record component attribute appender factory to apply.transformer
- A transformer to apply on matched record component descriptions.public DynamicType.Builder.RecordComponentDefinition.Optional<U> annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
annotations
- The annotations to declare.public DynamicType.Builder.RecordComponentDefinition.Optional<U> attribute(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory)
recordComponentAttributeAppenderFactory
- The record component attribute appender factory that should be applied on the
previously defined or matched method.public DynamicType.Builder.RecordComponentDefinition.Optional<U> transform(Transformer<RecordComponentDescription> transformer)
transformer
- The transformer to apply.protected DynamicType.Builder<U> materialize()
DynamicType.Builder.AbstractBase.Delegator
materialize
in class DynamicType.Builder.AbstractBase.Delegator<U>
Copyright © 2014–2021. All rights reserved.