Module aya.cli.impl

Record Class CompilerFlags

java.lang.Object
java.lang.Record
org.aya.cli.single.CompilerFlags

public record CompilerFlags(@NotNull CompilerFlags.Message message, boolean interruptedTrace, boolean remake, CompilerFlags.PrettyInfo prettyInfo, @NotNull kala.collection.SeqLike<Path> modulePaths, @Nullable Path outputFile) extends Record
  • Constructor Details

    • CompilerFlags

      public CompilerFlags(@NotNull @NotNull CompilerFlags.Message message, boolean interruptedTrace, boolean remake, @Nullable CompilerFlags.PrettyInfo prettyInfo, @NotNull @NotNull kala.collection.SeqLike<Path> modulePaths, @Nullable @Nullable Path outputFile)
      Creates an instance of a CompilerFlags record class.
      Parameters:
      message - the value for the message record component
      interruptedTrace - the value for the interruptedTrace record component
      remake - the value for the remake record component
      prettyInfo - the value for the prettyInfo record component
      modulePaths - the value for the modulePaths record component
      outputFile - the value for the outputFile record component
  • Method Details

    • prettyInfoFromOutput

      @Nullable public static CompilerFlags.PrettyInfo prettyInfoFromOutput(@Nullable @Nullable Path outputFile, @NotNull @NotNull RenderOptions renderOptions, boolean noCodeStyle, boolean inlineCodeStyle, boolean SSR)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • message

      @NotNull public @NotNull CompilerFlags.Message message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • interruptedTrace

      public boolean interruptedTrace()
      Returns the value of the interruptedTrace record component.
      Returns:
      the value of the interruptedTrace record component
    • remake

      public boolean remake()
      Returns the value of the remake record component.
      Returns:
      the value of the remake record component
    • prettyInfo

      @Nullable public CompilerFlags.PrettyInfo prettyInfo()
      Returns the value of the prettyInfo record component.
      Returns:
      the value of the prettyInfo record component
    • modulePaths

      @NotNull public @NotNull kala.collection.SeqLike<Path> modulePaths()
      Returns the value of the modulePaths record component.
      Returns:
      the value of the modulePaths record component
    • outputFile

      @Nullable public @Nullable Path outputFile()
      Returns the value of the outputFile record component.
      Returns:
      the value of the outputFile record component