C# 클래스 Myre.Debugging.CommandEngine

A class which provides a command line interface into an assembly.
파일 보기 프로젝트 열기: TomGillen/Myre 1 사용 예제들

공개 메소드들

메소드 설명
AddCommand ( object target, string methodName ) : void

Adds the command.

AddCommand ( object target, string methodName, string commandName, string description = null ) : void

Adds the command.

AddOption ( object target, string propertyName ) : void

Adds the option.

AddOption ( object target, string propertyName, string optionName, string description = null ) : void

Adds the option.

CommandEngine ( ) : System

Initializes a new instance of the CommandEngine class.

Execute ( string command ) : CommandResult

Executes the specified command.

GetHelp ( string command ) : Myre.Debugging.CommandHelp

Gets intellisense-like help for a command.

GetHelp ( ) : IEnumerable

Gets the command and option help.

GetIdentifierHelp ( string commandOrOption ) : CommandHelpInfo?

Gets help information for a command or option.

RemoveCommand ( string commandName ) : void

Removes the command.

RemoveOption ( string optionName ) : void

비공개 메소드들

메소드 설명
AppendDefinition ( string item, Myre.Debugging.CommandHelp &commandHelp ) : bool
FindParameterHelp ( string command, string parameters, Myre.Debugging.CommandHelp &help ) : void
GetExpressionHelp ( string command, Myre.Debugging.CommandHelp &help ) : void
GetOption ( string optionName ) : object
GetOrSet ( PropertyInfo property ) : object
GetReturnType ( string item ) : string
ParametersDescription ( MethodInfo method ) : object
RunExpression ( string commandString ) : object
ScanAssembly ( Assembly assembly ) : void
SplitParameters ( string parametersString ) : string[]

메소드 상세

AddCommand() 공개 메소드

Adds the command.
public AddCommand ( object target, string methodName ) : void
target object The object containing the method.
methodName string Name of the method.
리턴 void

AddCommand() 공개 메소드

Adds the command.
public AddCommand ( object target, string methodName, string commandName, string description = null ) : void
target object The object containing the method.
methodName string Name of the method.
commandName string Name of the command.
description string
리턴 void

AddOption() 공개 메소드

Adds the option.
public AddOption ( object target, string propertyName ) : void
target object The object containing the property.
propertyName string Name of the property.
리턴 void

AddOption() 공개 메소드

Adds the option.
public AddOption ( object target, string propertyName, string optionName, string description = null ) : void
target object The object containing the property.
propertyName string Name of the property.
optionName string Name of the option.
description string
리턴 void

CommandEngine() 공개 메소드

Initializes a new instance of the CommandEngine class.
public CommandEngine ( ) : System
리턴 System

Execute() 공개 메소드

Executes the specified command.
public Execute ( string command ) : CommandResult
command string The command.
리턴 CommandResult

GetHelp() 공개 메소드

Gets intellisense-like help for a command.
public GetHelp ( string command ) : Myre.Debugging.CommandHelp
command string
리턴 Myre.Debugging.CommandHelp

GetHelp() 공개 메소드

Gets the command and option help.
public GetHelp ( ) : IEnumerable
리턴 IEnumerable

GetIdentifierHelp() 공개 메소드

Gets help information for a command or option.
public GetIdentifierHelp ( string commandOrOption ) : CommandHelpInfo?
commandOrOption string The command or option.
리턴 CommandHelpInfo?

RemoveCommand() 공개 메소드

Removes the command.
public RemoveCommand ( string commandName ) : void
commandName string Name of the command.
리턴 void

RemoveOption() 공개 메소드

public RemoveOption ( string optionName ) : void
optionName string
리턴 void