C# Класс Patcher.Rules.RuleCompiler

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

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

Метод Описание
Add ( RuleEntry entry, RuleMetadata metadata, bool debug ) : void
CompileAll ( ) : bool
GetCompilerErrorHint ( CompilerError error ) : string
GetIllegalCodeTokens ( ) : IEnumerable
RuleCompiler ( RuleEngine engine, string pluginFileName ) : System

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

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

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

Add() публичный метод

public Add ( RuleEntry entry, RuleMetadata metadata, bool debug ) : void
entry RuleEntry
metadata RuleMetadata
debug bool
Результат void

CompileAll() публичный метод

public CompileAll ( ) : bool
Результат bool

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

public static GetCompilerErrorHint ( CompilerError error ) : string
error CompilerError
Результат string

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

public static GetIllegalCodeTokens ( ) : IEnumerable
Результат IEnumerable

RuleCompiler() публичный метод

public RuleCompiler ( RuleEngine engine, string pluginFileName ) : System
engine RuleEngine
pluginFileName string
Результат System