java.lang.Object
org.aya.cli.render.RenderOptions
Multi-target
Stylist, usually created from json files.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescription@UnknownNullability RenderOptions.ColorSchemeNamestatic final @NotNull RenderOptions.ColorSchemeNamestatic final @NotNull RenderOptions.StyleFamilyName@Nullable String@UnknownNullability RenderOptions.StyleFamilyName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic @NotNull org.aya.pretty.backend.string.StringStylistdefaultStylist(@NotNull RenderOptions.OutputTarget output) booleanvoidboolean@NotNull String@NotNull String@NotNull Stringrender(@NotNull RenderOptions.OutputTarget output, @NotNull org.aya.pretty.doc.Doc doc, @NotNull RenderOptions.Opts opts) @NotNull org.aya.pretty.backend.string.StringStyliststylist(@NotNull RenderOptions.OutputTarget output) @NotNull org.aya.pretty.backend.string.StringStyliststylistOrDefault(@NotNull RenderOptions.OutputTarget output) voidupdateColorScheme(@NotNull kala.control.Either<RenderOptions.ColorSchemeName, Path> nameOrPath) voidupdateStyleFamily(@NotNull kala.control.Either<RenderOptions.StyleFamilyName, Path> nameOrPath)
-
Field Details
-
DEFAULT_COLOR_SCHEME
-
DEFAULT_STYLE_FAMILY
-
colorScheme
-
styleFamily
-
path
-
-
Constructor Details
-
RenderOptions
public RenderOptions()
-
-
Method Details
-
checkDeserialization
public void checkDeserialization() -
isDefault
public boolean isDefault() -
prettyColorScheme
-
prettyStyleFamily
-
updateColorScheme
public void updateColorScheme(@NotNull @NotNull kala.control.Either<RenderOptions.ColorSchemeName, Path> nameOrPath) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
updateStyleFamily
public void updateStyleFamily(@NotNull @NotNull kala.control.Either<RenderOptions.StyleFamilyName, Path> nameOrPath) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
invalidate
public void invalidate() -
defaultStylist
@NotNull public static @NotNull org.aya.pretty.backend.string.StringStylist defaultStylist(@NotNull @NotNull RenderOptions.OutputTarget output) -
stylist
@NotNull public @NotNull org.aya.pretty.backend.string.StringStylist stylist(@NotNull @NotNull RenderOptions.OutputTarget output) throws IOException, com.google.gson.JsonParseException - Throws:
IOExceptioncom.google.gson.JsonParseException
-
stylistOrDefault
@NotNull public @NotNull org.aya.pretty.backend.string.StringStylist stylistOrDefault(@NotNull @NotNull RenderOptions.OutputTarget output) -
render
@NotNull public @NotNull String render(@NotNull @NotNull RenderOptions.OutputTarget output, @NotNull @NotNull org.aya.pretty.doc.Doc doc, @NotNull @NotNull RenderOptions.Opts opts) -
equals
-