@HashCodeAndEqualsPlugin.Enhance public static class TypeWriter.FieldPool.Record.ForImplicitField extends Object implements TypeWriter.FieldPool.Record
TypeWriter.FieldPool.Record.ForExplicitField, TypeWriter.FieldPool.Record.ForImplicitField
Constructor and Description |
---|
ForImplicitField(FieldDescription fieldDescription)
Creates a new record for a simple field.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(ClassVisitor classVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Writes this entry to a given class visitor.
|
void |
apply(FieldVisitor fieldVisitor,
AnnotationValueFilter.Factory annotationValueFilterFactory)
Applies this record to a field visitor.
|
FieldDescription |
getField()
Returns the field that this record represents.
|
FieldAttributeAppender |
getFieldAppender()
Returns the field attribute appender for a given field.
|
boolean |
isImplicit()
Determines if this record is implicit, i.e is not defined by a
TypeWriter.FieldPool . |
Object |
resolveDefault(Object defaultValue)
Resolves the default value that this record represents.
|
public ForImplicitField(FieldDescription fieldDescription)
fieldDescription
- The described field.public boolean isImplicit()
TypeWriter.FieldPool
.isImplicit
in interface TypeWriter.FieldPool.Record
true
if this record is implicit.public FieldDescription getField()
getField
in interface TypeWriter.FieldPool.Record
public FieldAttributeAppender getFieldAppender()
getFieldAppender
in interface TypeWriter.FieldPool.Record
public Object resolveDefault(Object defaultValue)
resolveDefault
in interface TypeWriter.FieldPool.Record
defaultValue
- The default value that was defined previously or null
if no default value is defined.null
if no default value is to be defined.public void apply(ClassVisitor classVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
apply
in interface TypeWriter.FieldPool.Record
classVisitor
- The class visitor to which this entry is to be written to.annotationValueFilterFactory
- The annotation value filter factory to apply when writing annotations.public void apply(FieldVisitor fieldVisitor, AnnotationValueFilter.Factory annotationValueFilterFactory)
apply
in interface TypeWriter.FieldPool.Record
fieldVisitor
- The field visitor onto which this record is to be applied.annotationValueFilterFactory
- The annotation value filter factory to use for annotations.Copyright © 2014–2020. All rights reserved.