DslDirectiveProcessorBase Class

Definition

Base implementation for template directive processor that provides Dsl files

public ref class DslDirectiveProcessorBase : Microsoft::VisualStudio::TextTemplating::RequiresProvidesDirectiveProcessor
public class DslDirectiveProcessorBase : Microsoft.VisualStudio.TextTemplating.RequiresProvidesDirectiveProcessor
type DslDirectiveProcessorBase = class
    inherit RequiresProvidesDirectiveProcessor
Public Class DslDirectiveProcessorBase
Inherits RequiresProvidesDirectiveProcessor
Inheritance
Derived

Constructors

DslDirectiveProcessorBase()

Constructor

Fields

DslDirectiveProcessorName

The friendly name of this processor.

Properties

Errors

Error collection for DirectiveProcessor to add Errors/Warnings to.

(Inherited from DirectiveProcessor)
FriendlyName

The friendly name of this processor.

Host

Gets associated text templating host.

(Inherited from RequiresProvidesDirectiveProcessor)
LoadDiagramData

Property that indicates whether this directive processor needs access to diagram data as well as model data. Normally, this is not the case so the default value of this property is false. Derived classes may override this property to change the value.

Methods

FinishProcessingRun()

Finishes template processing.

(Inherited from RequiresProvidesDirectiveProcessor)
GeneratePostInitializationCode(String, StringBuilder, CodeDomProvider, IDictionary<String,String>, IDictionary<String,String>)

Contribute additively to initialization code for the TextTransformation generated class.

GeneratePreInitializationCode(String, StringBuilder, CodeDomProvider, IDictionary<String,String>, IDictionary<String,String>)

Contribute additively to initialization code for the TextTransformation generated class.

GenerateTransformCode(String, StringBuilder, CodeDomProvider, IDictionary<String,String>, IDictionary<String,String>)

Generate the code to access the model. Use to CodeDomProvider so we are language-agnostic

GetClassCodeForProcessingRun()

Gets generated class code.

(Inherited from RequiresProvidesDirectiveProcessor)
GetImportsForProcessingRun()

Return namespace imports necessary for running template

GetPostInitializationCodeForProcessingRun()

Get the code to contribute to the body of the initialize method of the generated template processing class as a consequence of the most recent run. This code will run after the base class' Initialize method

(Inherited from RequiresProvidesDirectiveProcessor)
GetPreInitializationCodeForProcessingRun()

Get the code to contribute to the body of the initialize method of the generated template processing class as a consequence of the most recent run. This code will run before the base class' Initialize method

(Inherited from RequiresProvidesDirectiveProcessor)
GetReferencesForProcessingRun()

Get assembly references needed for running template

GetTemplateClassCustomAttributes()

Get any custom attributes to place on the template class.

(Inherited from DirectiveProcessor)
Initialize(ITextTemplatingEngineHost)

Initializes the processors.

(Inherited from RequiresProvidesDirectiveProcessor)
InitializeProvidesDictionary(String, IDictionary<String,String>)

Override to initialize provides dictinoary

InitializeRequiresDictionary(String, IDictionary<String,String>)

Override to initialize requires dictionary

IsDirectiveSupported(String)

Check if the directive name is supported by this directive processor

PostProcessArguments(String, IDictionary<String,String>, IDictionary<String,String>)

Process arguments

ProcessDirective(String, IDictionary<String,String>)

Processes a single directive.

(Inherited from RequiresProvidesDirectiveProcessor)
ProvideUniqueId(String, IDictionary<String,String>, IDictionary<String,String>, IDictionary<String,String>)

Provide a token to uniquely identify this instance of a directive processor

(Inherited from RequiresProvidesDirectiveProcessor)
StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection)

Override StartProcessingRun to reset the helpers flag.

Explicit Interface Implementations

IDirectiveProcessor.Errors (Inherited from DirectiveProcessor)
IDirectiveProcessor.RequiresProcessingRunIsHostSpecific (Inherited from DirectiveProcessor)
IDirectiveProcessor.SetProcessingRunIsHostSpecific(Boolean) (Inherited from DirectiveProcessor)

Applies to