C# Class Patcher.Rules.RuleCompiler

Afficher le fichier Open project: unforbidable/patcher Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Add ( RuleEntry entry, RuleMetadata metadata, bool debug ) : void
entry RuleEntry
metadata RuleMetadata
debug bool
Résultat void

CompileAll() public méthode

public CompileAll ( ) : bool
Résultat bool

GetCompilerErrorHint() public static méthode

public static GetCompilerErrorHint ( CompilerError error ) : string
error CompilerError
Résultat string

GetIllegalCodeTokens() public static méthode

public static GetIllegalCodeTokens ( ) : IEnumerable
Résultat IEnumerable

RuleCompiler() public méthode

public RuleCompiler ( RuleEngine engine, string pluginFileName ) : System
engine RuleEngine
pluginFileName string
Résultat System