C# Class Rhino.Tools.Shell.ShellConsole

Datei anzeigen Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
Flush ( ) : void

Flushes the console's output

GetConsole ( Scriptable scope, Encoding cs ) : ShellConsole

Provides a specialized ShellConsole to handle line editing, history and completion. Relies on the JLine library (see ).

GetConsole ( Stream @in, TextWriter ps, Encoding cs ) : ShellConsole

Returns a new ShellConsole which uses the supplied System.IO.Stream and System.IO.TextWriter for its input/output

GetIn ( ) : Stream

Returns the underlying System.IO.Stream

Print ( string s ) : void

Prints a single string to the console

Println ( ) : void

Prints the newline character-sequence to the console

Println ( string s ) : void

Prints a string and the newline character-sequence to the console

ReadLine ( ) : string

Reads a single line from the console

ReadLine ( string prompt ) : string

Reads a single line from the console and sets the console's prompt to prompt

Protected Methods

Method Description
ShellConsole ( ) : System

Private Methods

Method Description
GetJLineShellConsoleV1 ( ClassLoader classLoader, Type readerClass, Scriptable scope, Encoding cs ) : ShellConsole.JLineShellConsoleV1
GetJLineShellConsoleV2 ( ClassLoader classLoader, Type readerClass, Scriptable scope, Encoding cs ) : ShellConsole.JLineShellConsoleV2
TryInvoke ( object obj, string method, Type paramTypes ) : object

Method Details

Flush() public abstract method

Flushes the console's output
public abstract Flush ( ) : void
return void

GetConsole() public static method

Provides a specialized ShellConsole to handle line editing, history and completion. Relies on the JLine library (see ).
public static GetConsole ( Scriptable scope, Encoding cs ) : ShellConsole
scope Scriptable
cs System.Text.Encoding
return ShellConsole

GetConsole() public static method

Returns a new ShellConsole which uses the supplied System.IO.Stream and System.IO.TextWriter for its input/output
public static GetConsole ( Stream @in, TextWriter ps, Encoding cs ) : ShellConsole
@in Stream
ps System.IO.TextWriter
cs System.Text.Encoding
return ShellConsole

GetIn() public abstract method

Returns the underlying System.IO.Stream
public abstract GetIn ( ) : Stream
return Stream

Print() public abstract method

Prints a single string to the console
public abstract Print ( string s ) : void
s string
return void

Println() public abstract method

Prints the newline character-sequence to the console
public abstract Println ( ) : void
return void

Println() public abstract method

Prints a string and the newline character-sequence to the console
public abstract Println ( string s ) : void
s string
return void

ReadLine() public abstract method

Reads a single line from the console
public abstract ReadLine ( ) : string
return string

ReadLine() public abstract method

Reads a single line from the console and sets the console's prompt to prompt
public abstract ReadLine ( string prompt ) : string
prompt string
return string

ShellConsole() protected method

protected ShellConsole ( ) : System
return System