Record Class VerbatimLines.Lines
java.lang.Object
java.lang.Record
org.ek9lang.compiler.formatter.VerbatimLines.Lines
- Record Components:
interior- lines after the first of a multi-line comment or String: never re-indented or re-spaced.withinStrings- every line a multi-line String touches, its opening line included: never re-spaced, split or joined.
- Enclosing class:
VerbatimLines
-
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.interior()Returns the value of theinteriorrecord component.final StringtoString()Returns a string representation of this record class.(package private) booleantouchesString(int first, int last) True when any line fromfirsttolast(inclusive) is within a multi-line String.Returns the value of thewithinStringsrecord component.
-
Constructor Details
-
Lines
-
-
Method Details
-
touchesString
boolean touchesString(int first, int last) True when any line fromfirsttolast(inclusive) is within a multi-line String. -
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
interior
-
withinStrings
Returns the value of thewithinStringsrecord component.- Returns:
- the value of the
withinStringsrecord component
-