@HashCodeAndEqualsPlugin.Enhance public static class RecordComponentAttributeAppender.Explicit extends Object implements RecordComponentAttributeAppender, RecordComponentAttributeAppender.Factory
RetentionPolicy
annotation.RecordComponentAttributeAppender.Compound, RecordComponentAttributeAppender.Explicit, RecordComponentAttributeAppender.Factory, RecordComponentAttributeAppender.ForInstrumentedRecordComponent, RecordComponentAttributeAppender.NoOp
RecordComponentAttributeAppender.Factory.Compound
Constructor and Description |
---|
Explicit(List<? extends AnnotationDescription> annotations)
Creates a new annotation attribute appender for explicit annotation values.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(RecordComponentVisitor recordComponentVisitor,
RecordComponentDescription recordComponentDescription,
AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
|
RecordComponentAttributeAppender |
make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.
|
public Explicit(List<? extends AnnotationDescription> annotations)
annotations
- The annotations to be appended to the record component.public void apply(RecordComponentVisitor recordComponentVisitor, RecordComponentDescription recordComponentDescription, AnnotationValueFilter annotationValueFilter)
apply
in interface RecordComponentAttributeAppender
recordComponentVisitor
- The record component visitor to which the attributes that are represented by this attribute appender are written to.recordComponentDescription
- The description of the record component to which the record component visitor belongs to.annotationValueFilter
- The annotation value filter to apply when writing annotations.public RecordComponentAttributeAppender make(TypeDescription typeDescription)
make
in interface RecordComponentAttributeAppender.Factory
typeDescription
- The type for which a record component attribute appender is to be applied for.Copyright © 2014–2024. All rights reserved.