Record Class flixw.TomlEntry
java.lang.Object
java.lang.Record
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
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thekeyrecord component.private final intThe field for thelinerecord component.private final booleanThe field for themultilinerecord component.private final StringThe field for thetablerecord component.private final StringThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.intline()Returns the value of thelinerecord component.booleanReturns the value of themultilinerecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
line
private final int lineThe field for thelinerecord component. -
table
The field for thetablerecord component. -
key
The field for thekeyrecord component. -
value
The field for thevaluerecord component. -
multiline
private final boolean multilineThe field for themultilinerecord component.
-
-
Constructor Details
-
TomlEntry
Creates an instance of aTomlEntryrecord class.- Parameters:
line- the value for thelinerecord componenttable- the value for thetablerecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord componentmultiline- the value for themultilinerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
multiline
public boolean multiline()Returns the value of themultilinerecord component.- Returns:
- the value of the
multilinerecord component
-