Interface FieldList

All Known Implementing Classes:
StdFieldList

public interface FieldList
Interface for lists of fields.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(int n)
    Get the nth field.
    boolean
    Get whether this instance is mutable.
    int
    Get the number of fields in the list.
  • Method Details

    • isMutable

      boolean isMutable()
      Get whether this instance is mutable. Note that the FieldList interface itself doesn't provide any means of mutation, but that doesn't mean that there isn't a non-interface way of mutating an instance.
      Returns:
      true iff this instance is somehow mutable
    • size

      int size()
      Get the number of fields in the list.
      Returns:
      the size
    • get

      Field get(int n)
      Get the nth field.
      Parameters:
      n - n >= 0, n < size(); which field
      Returns:
      non-null; the field in question