C# Class Antlr4.StringTemplate.Compiler.TemplateCompiler

Show file Open project: antlr/antlrcs Class Usage Examples

Public Properties

Property Type Description
NUM_OPTIONS int
SubtemplatePrefix string
defaultOptionValues string>.IDictionary
funcs Bytecode>.IDictionary
subtemplateCount int
supportedOptions RenderOption>.IDictionary

Public Methods

Method Description
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

Protected Methods

Method Description
ReportMessageAndThrowTemplateException ( ITokenStream tokens, IToken templateToken, Antlr.Runtime.Parser parser, RecognitionException re ) : void

Method Details

Compile() public method

public Compile ( string template ) : CompiledTemplate
template string
return CompiledTemplate

Compile() public method

public Compile ( string name, string template ) : CompiledTemplate
name string
template string
return CompiledTemplate

Compile() public method

public Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
srcName string
name string
args List
template string
templateToken IToken
return CompiledTemplate

DefineBlankRegion() public static method

public static DefineBlankRegion ( CompiledTemplate outermostImpl, IToken nameToken ) : CompiledTemplate
outermostImpl CompiledTemplate
nameToken IToken
return CompiledTemplate

GetNewSubtemplateName() public static method

public static GetNewSubtemplateName ( ) : string
return string

ReportMessageAndThrowTemplateException() protected method

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
return void

TemplateCompiler() public method

public TemplateCompiler ( TemplateGroup group ) : System.Collections.Generic
group TemplateGroup
return System.Collections.Generic

Property Details

NUM_OPTIONS public static property

public static int NUM_OPTIONS
return int

SubtemplatePrefix public static property

public static string SubtemplatePrefix
return string

defaultOptionValues public static property

public static IDictionary defaultOptionValues
return string>.IDictionary

funcs public static property

public static IDictionary funcs
return Bytecode>.IDictionary

subtemplateCount public static property

public static int subtemplateCount
return int

supportedOptions public static property

public static IDictionary supportedOptions
return RenderOption>.IDictionary