java.lang.Object
org.aya.pretty.printer.Stylist
org.aya.pretty.backend.string.StringStylist
org.aya.pretty.backend.string.ClosingStylist
- Direct Known Subclasses:
ClosingStylist.Delegate,Html5Stylist,TeXStylist,UnixTermStylist
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
Fields inherited from class org.aya.pretty.printer.Stylist
colorScheme, styleFamily -
Constructor Summary
ConstructorsConstructorDescriptionClosingStylist(@NotNull ColorScheme colorScheme, @NotNull StyleFamily styleFamily) -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(@NotNull kala.collection.Seq<Style> styles, @NotNull Cursor cursor, EnumSet<StringPrinter.Outer> outer, @NotNull Runnable inside) protected abstract @NotNull ClosingStylist.StyleTokenformatBold(EnumSet<StringPrinter.Outer> outer) protected abstract @NotNull ClosingStylist.StyleTokenformatColorHex(int rgb, boolean background) protected @NotNull ClosingStylist.StyleTokenformatCustom(Style.CustomStyle style) protected abstract @NotNull ClosingStylist.StyleTokenformatItalic(EnumSet<StringPrinter.Outer> outer) protected @NotNull ClosingStylist.StyleTokenformatPresetColor(@NotNull String colorName, boolean background) protected @NotNull kala.collection.immutable.ImmutableSeq<ClosingStylist.StyleToken>formatPresetStyle(@NotNull String styleName, EnumSet<StringPrinter.Outer> outer) protected abstract @NotNull ClosingStylist.StyleTokenformatStrike(EnumSet<StringPrinter.Outer> outer) protected abstract @NotNull ClosingStylist.StyleToken
-
Constructor Details
-
ClosingStylist
public ClosingStylist(@NotNull @NotNull ColorScheme colorScheme, @NotNull @NotNull StyleFamily styleFamily)
-
-
Method Details
-
format
public void format(@NotNull @NotNull kala.collection.Seq<Style> styles, @NotNull @NotNull Cursor cursor, EnumSet<StringPrinter.Outer> outer, @NotNull @NotNull Runnable inside) - Specified by:
formatin classStringStylist
-
formatPresetStyle
@NotNull protected @NotNull kala.collection.immutable.ImmutableSeq<ClosingStylist.StyleToken> formatPresetStyle(@NotNull @NotNull String styleName, EnumSet<StringPrinter.Outer> outer) -
formatPresetColor
@NotNull protected @NotNull ClosingStylist.StyleToken formatPresetColor(@NotNull @NotNull String colorName, boolean background) -
formatCustom
@NotNull protected @NotNull ClosingStylist.StyleToken formatCustom(@NotNull Style.CustomStyle style) -
formatItalic
@NotNull protected abstract @NotNull ClosingStylist.StyleToken formatItalic(EnumSet<StringPrinter.Outer> outer) -
formatBold
@NotNull protected abstract @NotNull ClosingStylist.StyleToken formatBold(EnumSet<StringPrinter.Outer> outer) -
formatStrike
@NotNull protected abstract @NotNull ClosingStylist.StyleToken formatStrike(EnumSet<StringPrinter.Outer> outer) -
formatUnderline
@NotNull protected abstract @NotNull ClosingStylist.StyleToken formatUnderline(EnumSet<StringPrinter.Outer> outer) -
formatColorHex
@NotNull protected abstract @NotNull ClosingStylist.StyleToken formatColorHex(int rgb, boolean background)
-