Record Class CompilationConfig

java.lang.Object
java.lang.Record
ca.mcscert.jpipe.compiler.CompilationConfig
Record Components:
inputFile - path to the .jd source file, or STDIN.
outputFile - path to the output file, or STDOUT.
format - output format.
diagramName - name of the model to export.

public record CompilationConfig(String inputFile, String outputFile, Format format, String diagramName) extends Record
Immutable configuration for a single process-mode compilation run.

Use STDIN / STDOUT as sentinel values for inputFile / outputFile when reading from standard input or writing to standard output.

  • Field Details

  • Constructor Details

    • CompilationConfig

      public CompilationConfig(String inputFile, String outputFile, Format format, String diagramName)
      Creates an instance of a CompilationConfig record class.
      Parameters:
      inputFile - the value for the inputFile record component
      outputFile - the value for the outputFile record component
      format - the value for the format record component
      diagramName - the value for the diagramName record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • inputFile

      public String inputFile()
      Returns the value of the inputFile record component.
      Returns:
      the value of the inputFile record component
    • outputFile

      public String outputFile()
      Returns the value of the outputFile record component.
      Returns:
      the value of the outputFile record component
    • format

      public Format format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • diagramName

      public String diagramName()
      Returns the value of the diagramName record component.
      Returns:
      the value of the diagramName record component