java.lang.Object
java.lang.Record
org.aya.cli.single.CompilerFlags.PrettyInfo
- Enclosing class:
CompilerFlags
public static record CompilerFlags.PrettyInfo(boolean ascii, boolean prettyNoCodeStyle, boolean prettyInlineCodeStyle, boolean prettySSR, CliEnums.PrettyStage prettyStage, CliEnums.PrettyFormat prettyFormat, @NotNull org.aya.util.prettier.PrettierOptions prettierOptions, @NotNull RenderOptions renderOptions, @Nullable String prettyDir)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPrettyInfo(boolean ascii, boolean prettyNoCodeStyle, boolean prettyInlineCodeStyle, boolean prettySSR, CliEnums.PrettyStage prettyStage, CliEnums.PrettyFormat prettyFormat, @NotNull org.aya.util.prettier.PrettierOptions prettierOptions, @NotNull RenderOptions renderOptions, @Nullable String prettyDir) Creates an instance of aPrettyInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanascii()Returns the value of theasciirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.util.prettier.PrettierOptionsReturns the value of theprettierOptionsrecord component.@Nullable StringReturns the value of theprettyDirrecord component.Returns the value of theprettyFormatrecord component.booleanReturns the value of theprettyInlineCodeStylerecord component.booleanReturns the value of theprettyNoCodeStylerecord component.booleanReturns the value of theprettySSRrecord component.Returns the value of theprettyStagerecord component.@NotNull RenderOptionsReturns the value of therenderOptionsrecord component.renderOpts(boolean headerCode) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrettyInfo
public PrettyInfo(boolean ascii, boolean prettyNoCodeStyle, boolean prettyInlineCodeStyle, boolean prettySSR, @NotNull CliEnums.PrettyStage prettyStage, @NotNull CliEnums.PrettyFormat prettyFormat, @NotNull @NotNull org.aya.util.prettier.PrettierOptions prettierOptions, @NotNull @NotNull RenderOptions renderOptions, @Nullable @Nullable String prettyDir) Creates an instance of aPrettyInforecord class.- Parameters:
ascii- the value for theasciirecord componentprettyNoCodeStyle- the value for theprettyNoCodeStylerecord componentprettyInlineCodeStyle- the value for theprettyInlineCodeStylerecord componentprettySSR- the value for theprettySSRrecord componentprettyStage- the value for theprettyStagerecord componentprettyFormat- the value for theprettyFormatrecord componentprettierOptions- the value for theprettierOptionsrecord componentrenderOptions- the value for therenderOptionsrecord componentprettyDir- the value for theprettyDirrecord component
-
-
Method Details
-
renderOpts
-
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 '=='. -
ascii
public boolean ascii()Returns the value of theasciirecord component.- Returns:
- the value of the
asciirecord component
-
prettyNoCodeStyle
public boolean prettyNoCodeStyle()Returns the value of theprettyNoCodeStylerecord component.- Returns:
- the value of the
prettyNoCodeStylerecord component
-
prettyInlineCodeStyle
public boolean prettyInlineCodeStyle()Returns the value of theprettyInlineCodeStylerecord component.- Returns:
- the value of the
prettyInlineCodeStylerecord component
-
prettySSR
public boolean prettySSR()Returns the value of theprettySSRrecord component.- Returns:
- the value of the
prettySSRrecord component
-
prettyStage
Returns the value of theprettyStagerecord component.- Returns:
- the value of the
prettyStagerecord component
-
prettyFormat
Returns the value of theprettyFormatrecord component.- Returns:
- the value of the
prettyFormatrecord component
-
prettierOptions
@NotNull public @NotNull org.aya.util.prettier.PrettierOptions prettierOptions()Returns the value of theprettierOptionsrecord component.- Returns:
- the value of the
prettierOptionsrecord component
-
renderOptions
Returns the value of therenderOptionsrecord component.- Returns:
- the value of the
renderOptionsrecord component
-
prettyDir
Returns the value of theprettyDirrecord component.- Returns:
- the value of the
prettyDirrecord component
-