C# Класс Rhino.Tools.Shell.ShellConsole

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ShellConsole ( ) : System

Приватные методы

Метод Описание
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

Описание методов

Flush() публичный абстрактный Метод

Flushes the console's output
public abstract Flush ( ) : void
Результат void

GetConsole() публичный статический Метод

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
Результат ShellConsole

GetConsole() публичный статический Метод

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
Результат ShellConsole

GetIn() публичный абстрактный Метод

Returns the underlying System.IO.Stream
public abstract GetIn ( ) : Stream
Результат Stream

Print() публичный абстрактный Метод

Prints a single string to the console
public abstract Print ( string s ) : void
s string
Результат void

Println() публичный абстрактный Метод

Prints the newline character-sequence to the console
public abstract Println ( ) : void
Результат void

Println() публичный абстрактный Метод

Prints a string and the newline character-sequence to the console
public abstract Println ( string s ) : void
s string
Результат void

ReadLine() публичный абстрактный Метод

Reads a single line from the console
public abstract ReadLine ( ) : string
Результат string

ReadLine() публичный абстрактный Метод

Reads a single line from the console and sets the console's prompt to prompt
public abstract ReadLine ( string prompt ) : string
prompt string
Результат string

ShellConsole() защищенный Метод

protected ShellConsole ( ) : System
Результат System