C# Класс Antlr4.StringTemplate.Compiler.TemplateCompiler

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

Открытые свойства

Свойство Тип Описание
NUM_OPTIONS int
SubtemplatePrefix string
defaultOptionValues string>.IDictionary
funcs Bytecode>.IDictionary
subtemplateCount int
supportedOptions RenderOption>.IDictionary

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

Метод Описание
Compile ( string template ) : CompiledTemplate
Compile ( string name, string template ) : CompiledTemplate
Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
DefineBlankRegion ( CompiledTemplate outermostImpl, IToken nameToken ) : CompiledTemplate
GetNewSubtemplateName ( ) : string
TemplateCompiler ( TemplateGroup group ) : System.Collections.Generic

Защищенные методы

Метод Описание
ReportMessageAndThrowTemplateException ( ITokenStream tokens, IToken templateToken, Antlr.Runtime.Parser parser, RecognitionException re ) : void

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

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

public Compile ( string template ) : CompiledTemplate
template string
Результат CompiledTemplate

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

public Compile ( string name, string template ) : CompiledTemplate
name string
template string
Результат CompiledTemplate

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

public Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
srcName string
name string
args List
template string
templateToken IToken
Результат CompiledTemplate

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

public static DefineBlankRegion ( CompiledTemplate outermostImpl, IToken nameToken ) : CompiledTemplate
outermostImpl CompiledTemplate
nameToken IToken
Результат CompiledTemplate

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

public static GetNewSubtemplateName ( ) : string
Результат string

ReportMessageAndThrowTemplateException() защищенный метод

protected ReportMessageAndThrowTemplateException ( ITokenStream tokens, IToken templateToken, Antlr.Runtime.Parser parser, RecognitionException re ) : void
tokens ITokenStream
templateToken IToken
parser Antlr.Runtime.Parser
re Antlr.Runtime.RecognitionException
Результат void

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

public TemplateCompiler ( TemplateGroup group ) : System.Collections.Generic
group TemplateGroup
Результат System.Collections.Generic

Описание свойств

NUM_OPTIONS публичное статическое свойство

public static int NUM_OPTIONS
Результат int

SubtemplatePrefix публичное статическое свойство

public static string SubtemplatePrefix
Результат string

defaultOptionValues публичное статическое свойство

public static IDictionary defaultOptionValues
Результат string>.IDictionary

funcs публичное статическое свойство

public static IDictionary funcs
Результат Bytecode>.IDictionary

subtemplateCount публичное статическое свойство

public static int subtemplateCount
Результат int

supportedOptions публичное статическое свойство

public static IDictionary supportedOptions
Результат RenderOption>.IDictionary