Attributes
argumentsshared String[] arguments

The command line arguments to the virtual machine.

stringshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Inherited Attributes
Attributes inherited from: Object
Methods
environmentVariableValueshared String? environmentVariableValue(String name)

The value of the given environment variable defined for the current virtual machine process.

exitshared Nothing exit(Integer code)

Force the virtual machine to terminate with the given exit code.

flushshared void flush()

Flush the standard output of the virtual machine process.

flushErrorshared void flushError()

Flush the standard error of the virtual machine process.

namedArgumentPresentshared Boolean namedArgumentPresent(String name)

Determine if an argument of form -name or --name was specified among the command line arguments to the virtual machine.

namedArgumentValueshared String? namedArgumentValue(String name)

The value of the first argument of form -name=value, --name=value, or -name value specified among the command line arguments to the virtual machine, if any.

propertyValueshared String? propertyValue(String name)

The value of the given system property of the virtual machine, if any.

readLineshared String? readLine()

Read a line of input text from the standard input of the virtual machine process. Returns a line of text after removal of line-termination characters, or null to indicate the standard input has been closed.

writeshared void write(String string)

Print a string to the standard output of the virtual machine process.

writeErrorshared void writeError(String string)

Print a string to the standard error of the virtual machine process.

writeErrorLineshared void writeErrorLine(String line = "")

Print a line to the standard error of the virtual machine process.

Parameters:
  • line = ""
writeLineshared void writeLine(String line = "")

Print a line to the standard output of the virtual machine process.

Parameters:
  • line = ""
See also print()
Inherited Methods
Methods inherited from: Object