C# Класс Company.OrmLanguage.OrmLanguageDirectiveProcessorBase

Base implementation for template directive processor that provides OrmLanguage files
Наследование: VSTextTemplating::RequiresProvidesDirectiveProcessor
Показать файл Открыть проект

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

Метод Описание
GetImportsForProcessingRun ( ) : string[]

Return namespace imports necessary for running template

GetReferencesForProcessingRun ( ) : string[]

Get assembly references needed for running template

IsDirectiveSupported ( string directiveName ) : bool

Check if the directive name is supported by this directive processor

OrmLanguageDirectiveProcessorBase ( )

Constructor

StartProcessingRun ( global languageProvider, string templateContents, global errors ) : void

Override StartProcessingRun to reset the helpers flag.

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

Метод Описание
GeneratePreInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void

Contribute additively to initialization code for the TextTransformation generated class.

This code will be added before the call to the base class.

InitializeProvidesDictionary ( string directiveName, string>.global providesDictionary ) : void

Override to initialize provides dictinoary

InitializeRequiresDictionary ( string directiveName, string>.global requiresDictionary ) : void

Override to initialize requires dictionary

PostProcessArguments ( string directiveName, string>.global requiresArguments, string>.global providesArguments ) : void

Process arguments

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

Метод Описание
GeneratePostInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void
GenerateTransformCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void

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

GeneratePreInitializationCode() защищенный Метод

Contribute additively to initialization code for the TextTransformation generated class.
This code will be added before the call to the base class.
protected GeneratePreInitializationCode ( string directiveName, global codeBuffer, global languageProvider, string>.global requiresArguments, string>.global providesArguments ) : void
directiveName string
codeBuffer global
languageProvider global
requiresArguments string>.global
providesArguments string>.global
Результат void

GetImportsForProcessingRun() публичный Метод

Return namespace imports necessary for running template
public GetImportsForProcessingRun ( ) : string[]
Результат string[]

GetReferencesForProcessingRun() публичный Метод

Get assembly references needed for running template
public GetReferencesForProcessingRun ( ) : string[]
Результат string[]

InitializeProvidesDictionary() защищенный Метод

Override to initialize provides dictinoary
protected InitializeProvidesDictionary ( string directiveName, string>.global providesDictionary ) : void
directiveName string
providesDictionary string>.global
Результат void

InitializeRequiresDictionary() защищенный Метод

Override to initialize requires dictionary
protected InitializeRequiresDictionary ( string directiveName, string>.global requiresDictionary ) : void
directiveName string
requiresDictionary string>.global
Результат void

IsDirectiveSupported() публичный Метод

Check if the directive name is supported by this directive processor
public IsDirectiveSupported ( string directiveName ) : bool
directiveName string
Результат bool

OrmLanguageDirectiveProcessorBase() публичный Метод

Constructor

PostProcessArguments() защищенный Метод

Process arguments
protected PostProcessArguments ( string directiveName, string>.global requiresArguments, string>.global providesArguments ) : void
directiveName string
requiresArguments string>.global
providesArguments string>.global
Результат void

StartProcessingRun() публичный Метод

Override StartProcessingRun to reset the helpers flag.
public StartProcessingRun ( global languageProvider, string templateContents, global errors ) : void
languageProvider global
templateContents string
errors global
Результат void