java.lang.Object
java.lang.Record
org.aya.concrete.remark.CodeOptions
public record CodeOptions(@NotNull NormalizeMode mode, @NotNull org.aya.util.distill.DistillerOptions options, @NotNull CodeOptions.ShowCode showCode)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCodeOptions(@NotNull NormalizeMode mode, @NotNull org.aya.util.distill.DistillerOptions options, @NotNull CodeOptions.ShowCode showCode) Creates an instance of aCodeOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Literateanalyze(@NotNull org.commonmark.node.Code code, @NotNull org.aya.util.error.SourcePos sourcePos) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull NormalizeModemode()Returns the value of themoderecord component.@NotNull org.aya.util.distill.DistillerOptionsoptions()Returns the value of theoptionsrecord component.@NotNull CodeOptions.ShowCodeshowCode()Returns the value of theshowCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
CodeOptions
public CodeOptions(@NotNull @NotNull NormalizeMode mode, @NotNull @NotNull org.aya.util.distill.DistillerOptions options, @NotNull @NotNull CodeOptions.ShowCode showCode) Creates an instance of aCodeOptionsrecord class.- Parameters:
mode- the value for themoderecord componentoptions- the value for theoptionsrecord componentshowCode- the value for theshowCoderecord component
-
-
Method Details
-
analyze
@NotNull public static @NotNull Literate analyze(@NotNull @NotNull org.commonmark.node.Code code, @NotNull @NotNull org.aya.util.error.SourcePos sourcePos) -
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. All components in this record class are compared withObjects::equals(Object,Object). -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
options
@NotNull public @NotNull org.aya.util.distill.DistillerOptions options()Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
showCode
Returns the value of theshowCoderecord component.- Returns:
- the value of the
showCoderecord component
-