Represents the current process (instance of the virtual machine).

By: Gavin, Tako
Attributes
argumentsSource Code

The command line arguments to the virtual machine.

string
shared 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.

Refined declaration: string
Inherited Attributes
Attributes inherited from: Object
Methods
exitSource Code
shared void exit(Integer code)

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

flushSource Code
shared void flush()

Flush the standard output of the virtual machine process.

flushErrorSource Code
shared void flushError()

Flush the standard error of the virtual machine process.

namedArgumentPresentSource Code
shared Boolean namedArgumentPresent(String name)

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

namedArgumentValueSource Code

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.

propertyValueSource Code

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

readLineSource Code
shared String readLine()

Read a line of input text from the standard input of the virtual machine process.

writeSource Code
shared void write(String string)

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

writeErrorSource Code
shared void writeError(String string)

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

writeErrorLineSource Code
shared void writeErrorLine(String line = ...)

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

Parameters:
  • line = ")
writeLineSource Code
shared 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