S
- A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.RecordComponentDefinition<S>
Modifier and Type | Interface and Description |
---|---|
static interface |
DynamicType.Builder.RecordComponentDefinition.Optional<U>
A
DynamicType.Builder.RecordComponentDefinition as an optional build step. |
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
annotateRecordComponent(Annotation... annotation)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
annotateRecordComponent(AnnotationDescription... annotation)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
annotateRecordComponent(List<? extends Annotation> annotations)
Annotates the record component with the supplied annotations.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
attribute(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory)
Applies the supplied record component attribute appender factory onto the previously defined record component.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> |
transform(Transformer<RecordComponentDescription> transformer)
Transforms a record component description before writing.
|
DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent(Annotation... annotation)
annotation
- The annotations to declare.DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent(List<? extends Annotation> annotations)
annotations
- The annotations to declare.DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent(AnnotationDescription... annotation)
annotation
- The annotations to declare.DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent(Collection<? extends AnnotationDescription> annotations)
annotations
- The annotations to declare.DynamicType.Builder.RecordComponentDefinition.Optional<S> attribute(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory)
recordComponentAttributeAppenderFactory
- The record component attribute appender factory that should be applied on the
previously defined or matched method.DynamicType.Builder.RecordComponentDefinition.Optional<S> transform(Transformer<RecordComponentDescription> transformer)
transformer
- The transformer to apply.Copyright © 2014–2020. All rights reserved.