C# 클래스 Microsoft.Scripting.Hosting.Shell.ConsoleHost

Core functionality to implement an interactive console. This should be derived for concrete implementations
파일 보기 프로젝트 열기: jschementi/iron

공개 메소드들

메소드 설명
PrintLanguageHelp ( StringBuilder output ) : void
Terminate ( int exitCode ) : void

Request (from another thread) the console REPL loop to terminate

보호된 메소드들

메소드 설명
ConsoleHost ( ) : System
CreateCommandLine ( ) : CommandLine
CreateConsole ( ScriptEngine engine, CommandLine commandLine, ConsoleOptions options ) : IConsole
CreateLanguageSetup ( ) : LanguageSetup
CreateOptionsParser ( ) : OptionsParser
CreateRuntimeSetup ( ) : ScriptRuntimeSetup
ExecuteInternal ( ) : void
ParseHostOptions ( string args ) : void
ParseOptions ( string args, ScriptRuntimeSetup runtimeSetup, LanguageSetup languageSetup ) : ConsoleOptions
PrintException ( TextWriter output, Exception e ) : void
PrintHelp ( ) : void
PrintVersion ( ) : void
ReportInvalidOption ( InvalidOptionException e ) : void
UnhandledException ( ScriptEngine engine, Exception e ) : void

비공개 메소드들

메소드 설명
CreateSuperConsole ( CommandLine commandLine, bool isColorful ) : IConsole
Execute ( ) : void
GetHelp ( ) : string
GetLanguageProvider ( ScriptRuntimeSetup setup ) : string
GetRuntime ( ) : string
InsertSearchPaths ( object>.IDictionary options, ICollection paths ) : void
PrintUsage ( ) : void
Run ( string args ) : int
RunCommandLine ( ) : int
RunFile ( ) : int
SetEnvironment ( ) : void

메소드 상세

ConsoleHost() 보호된 메소드

protected ConsoleHost ( ) : System
리턴 System

CreateCommandLine() 보호된 메소드

protected CreateCommandLine ( ) : CommandLine
리턴 CommandLine

CreateConsole() 보호된 메소드

protected CreateConsole ( ScriptEngine engine, CommandLine commandLine, ConsoleOptions options ) : IConsole
engine ScriptEngine
commandLine CommandLine
options ConsoleOptions
리턴 IConsole

CreateLanguageSetup() 보호된 메소드

protected CreateLanguageSetup ( ) : LanguageSetup
리턴 LanguageSetup

CreateOptionsParser() 보호된 메소드

protected CreateOptionsParser ( ) : OptionsParser
리턴 OptionsParser

CreateRuntimeSetup() 보호된 메소드

protected CreateRuntimeSetup ( ) : ScriptRuntimeSetup
리턴 ScriptRuntimeSetup

ExecuteInternal() 보호된 메소드

protected ExecuteInternal ( ) : void
리턴 void

ParseHostOptions() 보호된 메소드

protected ParseHostOptions ( string args ) : void
args string
리턴 void

ParseOptions() 보호된 메소드

protected ParseOptions ( string args, ScriptRuntimeSetup runtimeSetup, LanguageSetup languageSetup ) : ConsoleOptions
args string
runtimeSetup ScriptRuntimeSetup
languageSetup LanguageSetup
리턴 ConsoleOptions

PrintException() 보호된 정적인 메소드

protected static PrintException ( TextWriter output, Exception e ) : void
output System.IO.TextWriter
e System.Exception
리턴 void

PrintHelp() 보호된 메소드

protected PrintHelp ( ) : void
리턴 void

PrintLanguageHelp() 공개 메소드

public PrintLanguageHelp ( StringBuilder output ) : void
output StringBuilder
리턴 void

PrintVersion() 보호된 메소드

protected PrintVersion ( ) : void
리턴 void

ReportInvalidOption() 보호된 메소드

protected ReportInvalidOption ( InvalidOptionException e ) : void
e InvalidOptionException
리턴 void

Terminate() 공개 메소드

Request (from another thread) the console REPL loop to terminate
public Terminate ( int exitCode ) : void
exitCode int The caller can specify the exitCode corresponding to the event triggering /// the termination. This will be returned from CommandLine.Run
리턴 void

UnhandledException() 보호된 메소드

protected UnhandledException ( ScriptEngine engine, Exception e ) : void
engine ScriptEngine
e System.Exception
리턴 void