Record Class BoxRunner.CLIOptions

java.lang.Object
java.lang.Record
ortus.boxlang.runtime.BoxRunner.CLIOptions
Record Components:
templatePath - The path to the template to execute. Can be a class or template. Mutally exclusive with code
debug - Whether or not to run in debug mode. It can be `null` if not specified
code - The source code to execute, if any
configFile - The path to the config file to use
printAST - Whether or not to print the AST of the source code
transpile - Whether or not to transpile the source code to Java
runtimeHome - The path to the runtime home
showVersion - Whether or not to show the version of the runtime
cliArgs - The arguments to pass to the template or class
targetModule - The module to execute
Enclosing class:
BoxRunner

public static record BoxRunner.CLIOptions(String templatePath, Boolean debug, String code, String configFile, Boolean printAST, Boolean transpile, String runtimeHome, Boolean showVersion, List<String> cliArgs, String targetModule) extends Record
Command-line options for the BoxLang runtime.
  • Constructor Details

    • CLIOptions

      public CLIOptions(String templatePath, Boolean debug, String code, String configFile, Boolean printAST, Boolean transpile, String runtimeHome, Boolean showVersion, List<String> cliArgs, String targetModule)
      Creates an instance of a CLIOptions record class.
      Parameters:
      templatePath - the value for the templatePath record component
      debug - the value for the debug record component
      code - the value for the code record component
      configFile - the value for the configFile record component
      printAST - the value for the printAST record component
      transpile - the value for the transpile record component
      runtimeHome - the value for the runtimeHome record component
      showVersion - the value for the showVersion record component
      cliArgs - the value for the cliArgs record component
      targetModule - the value for the targetModule 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.
    • templatePath

      public String templatePath()
      Returns the value of the templatePath record component.
      Returns:
      the value of the templatePath record component
    • debug

      public Boolean debug()
      Returns the value of the debug record component.
      Returns:
      the value of the debug record component
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • configFile

      public String configFile()
      Returns the value of the configFile record component.
      Returns:
      the value of the configFile record component
    • printAST

      public Boolean printAST()
      Returns the value of the printAST record component.
      Returns:
      the value of the printAST record component
    • transpile

      public Boolean transpile()
      Returns the value of the transpile record component.
      Returns:
      the value of the transpile record component
    • runtimeHome

      public String runtimeHome()
      Returns the value of the runtimeHome record component.
      Returns:
      the value of the runtimeHome record component
    • showVersion

      public Boolean showVersion()
      Returns the value of the showVersion record component.
      Returns:
      the value of the showVersion record component
    • cliArgs

      public List<String> cliArgs()
      Returns the value of the cliArgs record component.
      Returns:
      the value of the cliArgs record component
    • targetModule

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