singleton Console
Singleton Console provides methods for reading text data from stdin and writing text data to stdout and stderr. Unlike other singletons, Console is automatically created at the beginning of a Shadow console program, since its functionality is used for reporting uncaught exceptions. Some Console behavior is platform specific.
| Modifiers | Return Types | Method and Description |
|---|---|---|
public |
() |
create()Creates a new |
| Modifiers | Return Types | Method and Description |
|---|---|---|
public |
() |
destroy() |
| Modifiers | Return Types | Method and Description |
|---|---|---|
public locked |
(Console) |
_shadow_io__Console_printErrorLine(nullable Object value) |
public locked |
(Console) |
_shadow_io__Console_printLine(nullable Object value) |
public readonly |
(Console) |
copy(AddressMap addresses) |
public locked |
(Console) |
print(nullable Object value)Prints an object's |
public locked |
(Console) |
printError(nullable Object value)Prints an object's |
public locked |
(Console) |
printErrorLine()Prints a new line character to |
public locked |
(Console) |
printErrorLine(nullable Object value)Prints an object's |
public locked |
(Console) |
printLine()Prints a new line character to |
public locked |
(Console) |
printLine(nullable Object value)Prints an object's |
public locked |
(Console) |
printPointer(Object object) |
public locked |
(ubyte, boolean) |
readByte()Reads the next unsigned byte from |
public locked |
(code, boolean) |
readCode()Reads the next UTF-8 code point from |
public locked |
(double) |
readDouble()Reads the next white-spaced delimited text from |
public locked |
(int) |
readInt()Reads the next white-spaced delimited text from |
public locked |
(String, boolean) |
readLine()Reads the next line of text from |
public locked |
(String, boolean) |
readString()Reads the next white-spaced delimited text from |
public create() => ()
Creates a new Console.
public destroy() => ()
public locked _shadow_io__Console_printErrorLine(nullable Object value) => (Console)
public locked _shadow_io__Console_printLine(nullable Object value) => (Console)
public readonly copy(AddressMap addresses) => (Console)
public locked print(nullable Object value) => (Console)
Prints an object's String representation to stdout.
value - object to print
Console object
public locked printError(nullable Object value) => (Console)
Prints an object's String representation to stderr.
value - object to print
Console object
public locked printErrorLine() => (Console)
Prints a new line character to stderr.
Console object
public locked printErrorLine(nullable Object value) => (Console)
Prints an object's String representation to stderr, followed by a new line character.
value - object to print
Console object
public locked printLine() => (Console)
Prints a new line character to stdout.
Console object
public locked printLine(nullable Object value) => (Console)
Prints an object's String representation to stdout, followed by a new line character.
value - object to print
Console object
public locked readByte() => (ubyte, boolean)
Reads the next unsigned byte from stdin.
next unsigned byte
true if the end of the file was reached
public locked readCode() => (code, boolean)
Reads the next UTF-8 code point from stdin.
character as a code
true if the end of the file was reached
public locked readDouble() => (double)
Reads the next white-spaced delimited text from stdin and converts that value to a double.
text converted to double
NumberFormatException - if the text does not represent a legal double
public locked readInt() => (int)
Reads the next white-spaced delimited text from stdin and converts that value to an int.
text converted to int
NumberFormatException - if the text does not represent a legal int