public static interface TypeWriter.FieldPool.Entry
TypeWriter.FieldPool| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeWriter.FieldPool.Entry.NoOp
A default implementation of a compiled field registry that simply returns a no-op
FieldAttributeAppender.Factory
for any field. |
static class |
TypeWriter.FieldPool.Entry.Simple
A simple entry that creates a specific
FieldAttributeAppender.Factory
for any field. |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClassVisitor classVisitor,
FieldDescription fieldDescription)
Writes this entry to a given class visitor.
|
Object |
getDefaultValue()
Returns the default value for the field that is represented by this entry.
|
FieldAttributeAppender |
getFieldAppender()
Returns the field attribute appender for a given field.
|
FieldAttributeAppender getFieldAppender()
Object getDefaultValue()
null if no such value is set.void apply(ClassVisitor classVisitor, FieldDescription fieldDescription)
classVisitor - The class visitor to which this entry is to be written to.fieldDescription - A description of the field that is to be written.Copyright © 2014–2015. All rights reserved.