Record Class flixw.TomlEntry

Enclosing class:
flixw

static record flixw.TomlEntry(int line, String table, String key, String value, boolean multiline) extends Record
One `key = value` occurrence, the table it was found in, and the line it sits on. `value` is the raw right-hand side; `multiline` marks a `"""` or `'''` opener, whose body this scanner deliberately does not reassemble -- no key flixw reads is one.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the key record component.
    private final int
    The field for the line record component.
    private final boolean
    The field for the multiline record component.
    private final String
    The field for the table record component.
    private final String
    The field for the value record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TomlEntry(int line, String table, String key, String value, boolean multiline)
    Creates an instance of a TomlEntry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    key()
    Returns the value of the key record component.
    int
    Returns the value of the line record component.
    boolean
    Returns the value of the multiline record component.
    Returns the value of the table record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the value record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • line

      private final int line
      The field for the line record component.
    • table

      private final String table
      The field for the table record component.
    • key

      private final String key
      The field for the key record component.
    • value

      private final String value
      The field for the value record component.
    • multiline

      private final boolean multiline
      The field for the multiline record component.
  • Constructor Details

    • TomlEntry

      TomlEntry(int line, String table, String key, String value, boolean multiline)
      Creates an instance of a TomlEntry record class.
      Parameters:
      line - the value for the line record component
      table - the value for the table record component
      key - the value for the key record component
      value - the value for the value record component
      multiline - the value for the multiline record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • line

      public int line()
      Returns the value of the line record component.
      Returns:
      the value of the line record component
    • table

      public String table()
      Returns the value of the table record component.
      Returns:
      the value of the table record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • value

      public String value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • multiline

      public boolean multiline()
      Returns the value of the multiline record component.
      Returns:
      the value of the multiline record component