C# Class Patcher.Rules.RuleCompiler

显示文件 Open project: unforbidable/patcher Class Usage Examples

Public Methods

Method Description
Add ( RuleEntry entry, RuleMetadata metadata, bool debug ) : void
CompileAll ( ) : bool
GetCompilerErrorHint ( CompilerError error ) : string
GetIllegalCodeTokens ( ) : IEnumerable
RuleCompiler ( RuleEngine engine, string pluginFileName ) : System

Private Methods

Method Description
CheckIllegalTokens ( string code ) : void
EnsureMethodsExist ( string methods ) : bool
GetMethod ( Type type, string name ) : MethodInfo
LoadMethodsFromAssembly ( Assembly assembly ) : void
PreprocessCode ( string code ) : string
StripBlanks ( string text ) : string
StripComments ( string text ) : string
StripDebug ( string code ) : string
StripStrings ( string text ) : string
TrimLines ( string text ) : string
ValidateCachedAssemblyVersion ( string path ) : bool

Method Details

Add() public method

public Add ( RuleEntry entry, RuleMetadata metadata, bool debug ) : void
entry RuleEntry
metadata RuleMetadata
debug bool
return void

CompileAll() public method

public CompileAll ( ) : bool
return bool

GetCompilerErrorHint() public static method

public static GetCompilerErrorHint ( CompilerError error ) : string
error CompilerError
return string

GetIllegalCodeTokens() public static method

public static GetIllegalCodeTokens ( ) : IEnumerable
return IEnumerable

RuleCompiler() public method

public RuleCompiler ( RuleEngine engine, string pluginFileName ) : System
engine RuleEngine
pluginFileName string
return System