C# Class Antlr4.StringTemplate.TemplateGroup

Afficher le fichier Open project: antlr/antlrcs Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultKey string
DictionaryKey string
GroupFileExtension string
TemplateFileExtension string

Protected Properties

Свойство Type Description
NotFoundTemplate Antlr4.StringTemplate.Compiler.CompiledTemplate
adaptors TypeRegistry

Méthodes publiques

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

Méthodes protégées

Méthode Description
GetEmbeddedInstanceOf ( Antlr4.StringTemplate.TemplateFrame frame, string name ) : Template
Load ( string name ) : CompiledTemplate
LookupImportedTemplate ( string name ) : CompiledTemplate

Private Methods

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

Method Details

Compile() public méthode

public Compile ( string srcName, string name, List args, string template, IToken templateToken ) : CompiledTemplate
srcName string
name string
args List
template string
templateToken IToken
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

CreateSingleton() public méthode

public CreateSingleton ( IToken templateToken ) : Template
templateToken IToken
Résultat Template

CreateStringTemplate() public méthode

public CreateStringTemplate ( ) : Template
Résultat Template

CreateStringTemplate() public méthode

public CreateStringTemplate ( CompiledTemplate impl ) : Template
impl Antlr4.StringTemplate.Compiler.CompiledTemplate
Résultat Template

CreateStringTemplateInternally() public méthode

public CreateStringTemplateInternally ( CompiledTemplate impl ) : Template
impl Antlr4.StringTemplate.Compiler.CompiledTemplate
Résultat Template

CreateStringTemplateInternally() public méthode

public CreateStringTemplateInternally ( Template prototype ) : Template
prototype Template
Résultat Template

DefineDictionary() public méthode

public DefineDictionary ( string name, object>.IDictionary mapping ) : void
name string
mapping object>.IDictionary
Résultat void

DefineRegion() public méthode

public DefineRegion ( string enclosingTemplateName, IToken regionT, string template, IToken templateToken ) : CompiledTemplate
enclosingTemplateName string
regionT IToken
template string
templateToken IToken
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

DefineTemplate() public méthode

public DefineTemplate ( string fullyQualifiedTemplateName, IToken nameT, List args, string template, IToken templateToken ) : CompiledTemplate
fullyQualifiedTemplateName string
nameT IToken
args List
template string
templateToken IToken
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

DefineTemplate() public méthode

public DefineTemplate ( string name, string template ) : CompiledTemplate
name string
template string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

DefineTemplate() public méthode

public DefineTemplate ( string name, string template, string arguments ) : CompiledTemplate
name string
template string
arguments string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

DefineTemplateAlias() public méthode

public DefineTemplateAlias ( IToken aliasT, IToken targetT ) : CompiledTemplate
aliasT IToken
targetT IToken
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

DefineTemplateOrRegion() public méthode

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
Résultat void

GetAttributeRenderer() public méthode

public GetAttributeRenderer ( System.Type attributeType ) : IAttributeRenderer
attributeType System.Type
Résultat IAttributeRenderer

GetEmbeddedInstanceOf() protected méthode

protected GetEmbeddedInstanceOf ( Antlr4.StringTemplate.TemplateFrame frame, string name ) : Template
frame Antlr4.StringTemplate.TemplateFrame
name string
Résultat Template

GetInstanceOf() public méthode

public GetInstanceOf ( string name ) : Template
name string
Résultat Template

GetMangledRegionName() public static méthode

public static GetMangledRegionName ( string enclosingTemplateName, string name ) : string
enclosingTemplateName string
name string
Résultat string

GetModelAdaptor() public méthode

public GetModelAdaptor ( System.Type attributeType ) : IModelAdaptor
attributeType System.Type
Résultat IModelAdaptor

GetTemplateNames() public méthode

public GetTemplateNames ( ) : HashSet
Résultat HashSet

GetTypeProxyFactory() public méthode

public GetTypeProxyFactory ( System.Type targetType ) : ITypeProxyFactory
targetType System.Type
Résultat ITypeProxyFactory

GetUnmangledTemplateName() public static méthode

public static GetUnmangledTemplateName ( string mangledName ) : string
mangledName string
Résultat string

ImportTemplates() public méthode

public ImportTemplates ( IToken fileNameToken ) : void
fileNameToken IToken
Résultat void

ImportTemplates() public méthode

public ImportTemplates ( TemplateGroup g ) : void
g TemplateGroup
Résultat void

IsDefined() public méthode

public IsDefined ( string name ) : bool
name string
Résultat bool

IsDictionary() public méthode

public IsDictionary ( string name ) : bool
name string
Résultat bool

Load() protected méthode

protected Load ( string name ) : CompiledTemplate
name string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

Load() public méthode

public Load ( ) : void
Résultat void

LoadAbsoluteTemplateFile() public méthode

public LoadAbsoluteTemplateFile ( string fileName ) : CompiledTemplate
fileName string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

LoadGroupFile() public méthode

public LoadGroupFile ( string prefix, string fileName ) : void
prefix string
fileName string
Résultat void

LoadTemplateFile() public méthode

public LoadTemplateFile ( string prefix, string unqualifiedFileName, ICharStream templateStream ) : CompiledTemplate
prefix string
unqualifiedFileName string
templateStream ICharStream
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

LookupImportedTemplate() protected méthode

protected LookupImportedTemplate ( string name ) : CompiledTemplate
name string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

LookupTemplate() public méthode

public LookupTemplate ( string name ) : CompiledTemplate
name string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

RawDefineTemplate() public méthode

public RawDefineTemplate ( string name, CompiledTemplate code, IToken defT ) : void
name string
code Antlr4.StringTemplate.Compiler.CompiledTemplate
defT IToken
Résultat void

RawGetDictionary() public méthode

public RawGetDictionary ( string name ) : object>.IDictionary
name string
Résultat object>.IDictionary

RawGetTemplate() public méthode

public RawGetTemplate ( string name ) : CompiledTemplate
name string
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

RegisterModelAdaptor() public méthode

public RegisterModelAdaptor ( System.Type attributeType, IModelAdaptor adaptor ) : void
attributeType System.Type
adaptor IModelAdaptor
Résultat void

RegisterRenderer() public méthode

public RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer ) : void
attributeType System.Type
renderer IAttributeRenderer
Résultat void

RegisterRenderer() public méthode

public RegisterRenderer ( System.Type attributeType, IAttributeRenderer renderer, bool recursive ) : void
attributeType System.Type
renderer IAttributeRenderer
recursive bool
Résultat void

RegisterTypeProxyFactory() public méthode

public RegisterTypeProxyFactory ( System.Type targetType, ITypeProxyFactory factory ) : void
targetType System.Type
factory ITypeProxyFactory
Résultat void

SetDelimiters() public méthode

public SetDelimiters ( IToken openDelimiter, IToken closeDelimiter ) : void
openDelimiter IToken
closeDelimiter IToken
Résultat void

SetDelimiters() public méthode

public SetDelimiters ( char delimiterStartChar, char delimiterStopChar ) : void
delimiterStartChar char
delimiterStopChar char
Résultat void

Show() public méthode

public Show ( ) : string
Résultat string

TemplateGroup() public méthode

public TemplateGroup ( ) : System.Collections.Generic
Résultat System.Collections.Generic

TemplateGroup() public méthode

public TemplateGroup ( char delimiterStartChar, char delimiterStopChar ) : System.Collections.Generic
delimiterStartChar char
delimiterStopChar char
Résultat System.Collections.Generic

ToString() public méthode

public ToString ( ) : string
Résultat string

UndefineTemplate() public méthode

public UndefineTemplate ( string name ) : void
name string
Résultat void

Unload() public méthode

public Unload ( ) : void
Résultat void

Property Details

DefaultKey public_oe static_oe property

public static string DefaultKey
Résultat string

DictionaryKey public_oe static_oe property

public static string DictionaryKey
Résultat string

GroupFileExtension public_oe static_oe property

public static string GroupFileExtension
Résultat string

NotFoundTemplate protected_oe static_oe property

protected static CompiledTemplate,Antlr4.StringTemplate.Compiler NotFoundTemplate
Résultat Antlr4.StringTemplate.Compiler.CompiledTemplate

TemplateFileExtension public_oe static_oe property

public static string TemplateFileExtension
Résultat string

adaptors protected_oe property

protected TypeRegistry adaptors
Résultat TypeRegistry