Class BufferedFieldBuilder.Model

All Implemented Interfaces:
Iterable<FieldElement>, AttributedElement, ClassElement, ClassfileElement, CompoundElement<FieldElement>, FieldModel, WritableElement<FieldModel>
Enclosing class:
BufferedFieldBuilder

public final class BufferedFieldBuilder.Model extends AbstractUnboundModel<FieldElement> implements FieldModel
  • Constructor Details

    • Model

      public Model()
  • Method Details

    • parent

      public Optional<ClassModel> parent()
      Description copied from interface: FieldModel
      Returns the class model this field is a member of, if known.
      Specified by:
      parent in interface FieldModel
      Returns:
      the class model this field is a member of, if known
    • flags

      public AccessFlags flags()
      Description copied from interface: FieldModel
      Returns the access flags.
      Specified by:
      flags in interface FieldModel
      Returns:
      the access flags
    • fieldName

      public Utf8Entry fieldName()
      Description copied from interface: FieldModel
      Returns the name of this field.
      Specified by:
      fieldName in interface FieldModel
      Returns:
      the name of this field
    • fieldType

      public Utf8Entry fieldType()
      Description copied from interface: FieldModel
      Returns the field descriptor of this field.
      Specified by:
      fieldType in interface FieldModel
      Returns:
      the field descriptor of this field
    • writeTo

      public void writeTo(BufWriter buf)
      Description copied from interface: WritableElement
      Writes the element to the specified writer
      Specified by:
      writeTo in interface WritableElement<FieldModel>
      Parameters:
      buf - the writer
    • toString

      public String toString()
      Overrides:
      toString in class Object