java.lang.Object
java.lang.Record
org.aya.pretty.error.PrettyError.FormatConfig
- Enclosing class:
PrettyError
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrettyError.FormatConfigstatic final PrettyError.FormatConfig -
Constructor Summary
ConstructorsConstructorDescriptionFormatConfig(@NotNull kala.control.Option<Character> vbarForHints, char lineNoSeparator, @NotNull kala.control.Option<Character> errorIndicator, char underlineBegin, char underlineEnd, char underlineBody, char beginCorner, char endCorner) Creates an instance of aFormatConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the value of thebeginCornerrecord component.@NotNull DoccharReturns the value of theendCornerrecord component.@NotNull Docfinal booleanIndicates whether some other object is "equal to" this one.@NotNull kala.control.Option<Character>Returns the value of theerrorIndicatorrecord component.final inthashCode()Returns a hash code value for this object.charReturns the value of thelineNoSeparatorrecord component.@NotNull Docfinal StringtoString()Returns a string representation of this record class.charReturns the value of theunderlineBeginrecord component.charReturns the value of theunderlineBodyrecord component.@NotNull StringunderlineBody(int n) @NotNull DocunderlineBodyDoc(int n) charReturns the value of theunderlineEndrecord component.@NotNull kala.control.Option<Character>Returns the value of thevbarForHintsrecord component.
-
Field Details
-
CLASSIC
-
UNICODE
-
-
Constructor Details
-
FormatConfig
public FormatConfig(@NotNull @NotNull kala.control.Option<Character> vbarForHints, char lineNoSeparator, @NotNull @NotNull kala.control.Option<Character> errorIndicator, char underlineBegin, char underlineEnd, char underlineBody, char beginCorner, char endCorner) Creates an instance of aFormatConfigrecord class.- Parameters:
vbarForHints- the value for thevbarForHintsrecord componentlineNoSeparator- the value for thelineNoSeparatorrecord componenterrorIndicator- the value for theerrorIndicatorrecord componentunderlineBegin- the value for theunderlineBeginrecord componentunderlineEnd- the value for theunderlineEndrecord componentunderlineBody- the value for theunderlineBodyrecord componentbeginCorner- the value for thebeginCornerrecord componentendCorner- the value for theendCornerrecord component
-
-
Method Details
-
underlineBody
-
underlineBodyDoc
-
lineNoSepDoc
-
beginCornerDoc
-
endCornerDoc
-
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 '=='. -
vbarForHints
Returns the value of thevbarForHintsrecord component.- Returns:
- the value of the
vbarForHintsrecord component
-
lineNoSeparator
public char lineNoSeparator()Returns the value of thelineNoSeparatorrecord component.- Returns:
- the value of the
lineNoSeparatorrecord component
-
errorIndicator
Returns the value of theerrorIndicatorrecord component.- Returns:
- the value of the
errorIndicatorrecord component
-
underlineBegin
public char underlineBegin()Returns the value of theunderlineBeginrecord component.- Returns:
- the value of the
underlineBeginrecord component
-
underlineEnd
public char underlineEnd()Returns the value of theunderlineEndrecord component.- Returns:
- the value of the
underlineEndrecord component
-
underlineBody
public char underlineBody()Returns the value of theunderlineBodyrecord component.- Returns:
- the value of the
underlineBodyrecord component
-
beginCorner
public char beginCorner()Returns the value of thebeginCornerrecord component.- Returns:
- the value of the
beginCornerrecord component
-
endCorner
public char endCorner()Returns the value of theendCornerrecord component.- Returns:
- the value of the
endCornerrecord component
-