@HashCodeAndEqualsPlugin.Enhance public static class TypeWriter.RecordComponentPool.Record.ForExplicitRecordComponent extends Object implements TypeWriter.RecordComponentPool.Record
TypeWriter.RecordComponentPool.Record.ForExplicitRecordComponent, TypeWriter.RecordComponentPool.Record.ForImplicitRecordComponent| Constructor and Description |
|---|
ForExplicitRecordComponent(RecordComponentAttributeAppender attributeAppender,
RecordComponentDescription recordComponentDescription)
Creates a record for a rich record component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClassVisitor classVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Writes this record to a given class visitor.
|
void |
apply(RecordComponentVisitor recordComponentVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies this record to a record component visitor.
|
RecordComponentDescription |
getRecordComponent()
Returns the record component that this record represents.
|
RecordComponentAttributeAppender |
getRecordComponentAppender()
Returns the record component attribute appender for a given record component.
|
boolean |
isImplicit()
Determines if this record is implicit, i.e is not defined by a
TypeWriter.RecordComponentPool. |
public ForExplicitRecordComponent(RecordComponentAttributeAppender attributeAppender, RecordComponentDescription recordComponentDescription)
attributeAppender - The attribute appender for the record component.recordComponentDescription - The implemented record component.public boolean isImplicit()
TypeWriter.RecordComponentPool.isImplicit in interface TypeWriter.RecordComponentPool.Recordtrue if this record is implicit.public RecordComponentDescription getRecordComponent()
getRecordComponent in interface TypeWriter.RecordComponentPool.Recordpublic RecordComponentAttributeAppender getRecordComponentAppender()
getRecordComponentAppender in interface TypeWriter.RecordComponentPool.Recordpublic void apply(ClassVisitor classVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
apply in interface TypeWriter.RecordComponentPool.RecordclassVisitor - The class visitor to which this record is to be written to.annotationValueFilterFactory - The annotation value filter factory to apply when writing annotations.public void apply(RecordComponentVisitor recordComponentVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
apply in interface TypeWriter.RecordComponentPool.RecordrecordComponentVisitor - The record component visitor onto which this record is to be applied.annotationValueFilterFactory - The annotation value filter factory to use for annotations.Copyright © 2014–2025. All rights reserved.