Package ortus.boxlang.runtime
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 codedebug- Whether or not to run in debug mode. It can be `null` if not specifiedcode- The source code to execute, if anyconfigFile- The path to the config file to useprintAST- Whether or not to print the AST of the source codetranspile- Whether or not to transpile the source code to JavaruntimeHome- The path to the runtime homeshowVersion- Whether or not to show the version of the runtimecliArgs- The arguments to pass to the template or classtargetModule- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncliArgs()Returns the value of thecliArgsrecord component.code()Returns the value of thecoderecord component.Returns the value of theconfigFilerecord component.debug()Returns the value of thedebugrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.printAST()Returns the value of theprintASTrecord component.Returns the value of theruntimeHomerecord component.Returns the value of theshowVersionrecord component.Returns the value of thetargetModulerecord component.Returns the value of thetemplatePathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranspilerecord component.
-
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 aCLIOptionsrecord class.- Parameters:
templatePath- the value for thetemplatePathrecord componentdebug- the value for thedebugrecord componentcode- the value for thecoderecord componentconfigFile- the value for theconfigFilerecord componentprintAST- the value for theprintASTrecord componenttranspile- the value for thetranspilerecord componentruntimeHome- the value for theruntimeHomerecord componentshowVersion- the value for theshowVersionrecord componentcliArgs- the value for thecliArgsrecord componenttargetModule- the value for thetargetModulerecord component
-
-
Method Details
-
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). -
templatePath
Returns the value of thetemplatePathrecord component.- Returns:
- the value of the
templatePathrecord component
-
debug
Returns the value of thedebugrecord component.- Returns:
- the value of the
debugrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
configFile
Returns the value of theconfigFilerecord component.- Returns:
- the value of the
configFilerecord component
-
printAST
Returns the value of theprintASTrecord component.- Returns:
- the value of the
printASTrecord component
-
transpile
Returns the value of thetranspilerecord component.- Returns:
- the value of the
transpilerecord component
-
runtimeHome
Returns the value of theruntimeHomerecord component.- Returns:
- the value of the
runtimeHomerecord component
-
showVersion
Returns the value of theshowVersionrecord component.- Returns:
- the value of the
showVersionrecord component
-
cliArgs
Returns the value of thecliArgsrecord component.- Returns:
- the value of the
cliArgsrecord component
-
targetModule
Returns the value of thetargetModulerecord component.- Returns:
- the value of the
targetModulerecord component
-