FieldElements, or by random access via accessor
methods if only specific parts of the field is needed.
Fields can be obtained from ClassModel#fields(), or in the traversal
of member elements of a class.
ClassBuilder#withField(String, ClassDesc, Consumer) is the main way
to construct fields. ClassBuilder#transformField allows creating a
new field by selectively processing the original field elements and directing
the results to a field builder.
All field attributes are accessible as member elements.
ClassModel#fields(), FieldTransform
| Modifier and Type | Method and Description |
|---|---|
| public Utf8Entry | |
| public Utf8Entry | Returns: the field descriptor string of this fieldReturns the field descriptor string of this field. |
| public default ClassDesc | Returns: the field type, as a symbolic descriptorReturns the field type, as a symbolic descriptor. |
| public AccessFlags | |
| public Optional | Returns: the class model this field is a member of, if knownReturns the class model this field is a member of, if known. |
| fieldName | back to summary |
|---|---|
| public Utf8Entry fieldName() Returns the name of this field.
| |
| fieldType | back to summary |
|---|---|
| public Utf8Entry fieldType() Returns the field descriptor string of this field.
| |
| fieldTypeSymbol | back to summary |
|---|---|
| public default ClassDesc fieldTypeSymbol() Returns the field type, as a symbolic descriptor.
| |
| flags | back to summary |
|---|---|
| public AccessFlags flags() Returns the access flags.
| |
| parent | back to summary |
|---|---|
| public Optional Returns the class model this field is a member of, if known.
| |