C# Класс Antlr4.StringTemplate.TemplateGroup

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

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

Свойство Тип Описание
DefaultKey string
DictionaryKey string
GroupFileExtension string
TemplateFileExtension string

Защищенные свойства (Protected)

Свойство Тип Описание
NotFoundTemplate Antlr4.StringTemplate.Compiler.CompiledTemplate
adaptors TypeRegistry

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

Метод Описание
Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
CreateSingleton ( IToken templateToken ) : Template
CreateStringTemplate ( ) : Template
CreateStringTemplate ( CompiledTemplate impl ) : Template
CreateStringTemplateInternally ( CompiledTemplate impl ) : Template
CreateStringTemplateInternally ( Template prototype ) : Template
DefineDictionary ( string name, object>.IDictionary mapping ) : void
DefineRegion ( string enclosingTemplateName, IToken regionT, string template, IToken templateToken ) : CompiledTemplate
DefineTemplate ( string fullyQualifiedTemplateName, IToken nameT, List args, string template, IToken templateToken ) : CompiledTemplate
DefineTemplate ( string name, string template ) : CompiledTemplate
DefineTemplate ( string name, string template, string arguments ) : CompiledTemplate
DefineTemplateAlias ( IToken aliasT, IToken targetT ) : CompiledTemplate
DefineTemplateOrRegion ( string fullyQualifiedTemplateName, string regionSurroundingTemplateName, IToken templateToken, string template, IToken nameToken, List args ) : void
GetAttributeRenderer ( System.Type attributeType ) : IAttributeRenderer
GetInstanceOf ( string name ) : Template
GetMangledRegionName ( string enclosingTemplateName, string name ) : string
GetModelAdaptor ( System.Type attributeType ) : IModelAdaptor
GetTemplateNames ( ) : HashSet
GetTypeProxyFactory ( System.Type targetType ) : ITypeProxyFactory
GetUnmangledTemplateName ( string mangledName ) : string
ImportTemplates ( IToken fileNameToken ) : void
ImportTemplates ( TemplateGroup g ) : void
IsDefined ( string name ) : bool
IsDictionary ( string name ) : bool
Load ( ) : void
LoadAbsoluteTemplateFile ( string fileName ) : CompiledTemplate
LoadGroupFile ( string prefix, string fileName ) : void
LoadTemplateFile ( string prefix, string unqualifiedFileName, ICharStream templateStream ) : CompiledTemplate
LookupTemplate ( string name ) : CompiledTemplate
RawDefineTemplate ( string name, CompiledTemplate code, IToken defT ) : void
RawGetDictionary ( string name ) : object>.IDictionary
RawGetTemplate ( string name ) : CompiledTemplate
RegisterModelAdaptor ( System.Type attributeType, IModelAdaptor adaptor ) : void
RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer ) : void
RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer, bool recursive ) : void
RegisterTypeProxyFactory ( System.Type targetType, ITypeProxyFactory factory ) : void
SetDelimiters ( IToken openDelimiter, IToken closeDelimiter ) : void
SetDelimiters ( char delimiterStartChar, char delimiterStopChar ) : void
Show ( ) : string
TemplateGroup ( ) : System.Collections.Generic
TemplateGroup ( char delimiterStartChar, char delimiterStopChar ) : System.Collections.Generic
ToString ( ) : string
UndefineTemplate ( string name ) : void
Unload ( ) : void

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

Метод Описание
GetEmbeddedInstanceOf ( Antlr4.StringTemplate.TemplateFrame frame, string name ) : Template
Load ( string name ) : CompiledTemplate
LookupImportedTemplate ( string name ) : CompiledTemplate

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

Метод Описание
CacheCompiledGroup ( string cachePath, string prefix, string fileName, System.DateTime lastWriteTime ) : void
CalculateReachableSerializedObjects ( ICollection rootSet ) : HashSet
CalculateReachableSerializedObjects ( object obj, HashSet reachableObjects ) : void
CreateGroupObject ( System.IO.BinaryReader reader, int key, object>.Dictionary objects ) : object
GetOrderedExports ( IEnumerable serializedObjects ) : List
GetOrderedExports ( object currentObject, List exportList, HashSet visited ) : void
ImportTemplates ( TemplateGroup group, bool clearOnUnload ) : void
LoadGroupObject ( System.IO.BinaryReader reader, int key, object>.Dictionary objects ) : void
TryLoadCachedGroup ( byte data, System.DateTime lastWriteTime ) : bool
TryLoadGroupFromCache ( string cachePath, string prefix, string fileName ) : bool
WriteGroupObject ( System.IO.BinaryWriter writer, object obj ) : void
WriteGroupObjectReference ( System.IO.BinaryWriter writer, object obj ) : void

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

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

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

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

public CreateSingleton ( IToken templateToken ) : Template
templateToken IToken
Результат Template

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

public CreateStringTemplate ( ) : Template
Результат Template

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

public CreateStringTemplate ( CompiledTemplate impl ) : Template
impl Antlr4.StringTemplate.Compiler.CompiledTemplate
Результат Template

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

public CreateStringTemplateInternally ( CompiledTemplate impl ) : Template
impl Antlr4.StringTemplate.Compiler.CompiledTemplate
Результат Template

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

public CreateStringTemplateInternally ( Template prototype ) : Template
prototype Template
Результат Template

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

public DefineDictionary ( string name, object>.IDictionary mapping ) : void
name string
mapping object>.IDictionary
Результат void

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

public DefineRegion ( string enclosingTemplateName, IToken regionT, string template, IToken templateToken ) : CompiledTemplate
enclosingTemplateName string
regionT IToken
template string
templateToken IToken
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public DefineTemplate ( string fullyQualifiedTemplateName, IToken nameT, List args, string template, IToken templateToken ) : CompiledTemplate
fullyQualifiedTemplateName string
nameT IToken
args List
template string
templateToken IToken
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public DefineTemplate ( string name, string template ) : CompiledTemplate
name string
template string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public DefineTemplate ( string name, string template, string arguments ) : CompiledTemplate
name string
template string
arguments string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public DefineTemplateAlias ( IToken aliasT, IToken targetT ) : CompiledTemplate
aliasT IToken
targetT IToken
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public DefineTemplateOrRegion ( string fullyQualifiedTemplateName, string regionSurroundingTemplateName, IToken templateToken, string template, IToken nameToken, List args ) : void
fullyQualifiedTemplateName string
regionSurroundingTemplateName string
templateToken IToken
template string
nameToken IToken
args List
Результат void

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

public GetAttributeRenderer ( System.Type attributeType ) : IAttributeRenderer
attributeType System.Type
Результат IAttributeRenderer

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

protected GetEmbeddedInstanceOf ( Antlr4.StringTemplate.TemplateFrame frame, string name ) : Template
frame Antlr4.StringTemplate.TemplateFrame
name string
Результат Template

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

public GetInstanceOf ( string name ) : Template
name string
Результат Template

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

public static GetMangledRegionName ( string enclosingTemplateName, string name ) : string
enclosingTemplateName string
name string
Результат string

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

public GetModelAdaptor ( System.Type attributeType ) : IModelAdaptor
attributeType System.Type
Результат IModelAdaptor

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

public GetTemplateNames ( ) : HashSet
Результат HashSet

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

public GetTypeProxyFactory ( System.Type targetType ) : ITypeProxyFactory
targetType System.Type
Результат ITypeProxyFactory

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

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

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

public ImportTemplates ( IToken fileNameToken ) : void
fileNameToken IToken
Результат void

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

public ImportTemplates ( TemplateGroup g ) : void
g TemplateGroup
Результат void

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

public IsDefined ( string name ) : bool
name string
Результат bool

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

public IsDictionary ( string name ) : bool
name string
Результат bool

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

protected Load ( string name ) : CompiledTemplate
name string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public Load ( ) : void
Результат void

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

public LoadAbsoluteTemplateFile ( string fileName ) : CompiledTemplate
fileName string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public LoadGroupFile ( string prefix, string fileName ) : void
prefix string
fileName string
Результат void

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

public LoadTemplateFile ( string prefix, string unqualifiedFileName, ICharStream templateStream ) : CompiledTemplate
prefix string
unqualifiedFileName string
templateStream ICharStream
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

protected LookupImportedTemplate ( string name ) : CompiledTemplate
name string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public LookupTemplate ( string name ) : CompiledTemplate
name string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public RawDefineTemplate ( string name, CompiledTemplate code, IToken defT ) : void
name string
code Antlr4.StringTemplate.Compiler.CompiledTemplate
defT IToken
Результат void

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

public RawGetDictionary ( string name ) : object>.IDictionary
name string
Результат object>.IDictionary

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

public RawGetTemplate ( string name ) : CompiledTemplate
name string
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

public RegisterModelAdaptor ( System.Type attributeType, IModelAdaptor adaptor ) : void
attributeType System.Type
adaptor IModelAdaptor
Результат void

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

public RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer ) : void
attributeType System.Type
renderer IAttributeRenderer
Результат void

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

public RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer, bool recursive ) : void
attributeType System.Type
renderer IAttributeRenderer
recursive bool
Результат void

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

public RegisterTypeProxyFactory ( System.Type targetType, ITypeProxyFactory factory ) : void
targetType System.Type
factory ITypeProxyFactory
Результат void

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

public SetDelimiters ( IToken openDelimiter, IToken closeDelimiter ) : void
openDelimiter IToken
closeDelimiter IToken
Результат void

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

public SetDelimiters ( char delimiterStartChar, char delimiterStopChar ) : void
delimiterStartChar char
delimiterStopChar char
Результат void

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

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

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

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

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

public TemplateGroup ( char delimiterStartChar, char delimiterStopChar ) : System.Collections.Generic
delimiterStartChar char
delimiterStopChar char
Результат System.Collections.Generic

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

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

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

public UndefineTemplate ( string name ) : void
name string
Результат void

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

public Unload ( ) : void
Результат void

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

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

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

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

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

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

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

NotFoundTemplate защищенное статическое свойство

protected static CompiledTemplate,Antlr4.StringTemplate.Compiler NotFoundTemplate
Результат Antlr4.StringTemplate.Compiler.CompiledTemplate

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

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

adaptors защищенное свойство

protected TypeRegistry adaptors
Результат TypeRegistry