次の方法で共有


DslDirectiveProcessor Class

Definition

Double-derived template directive processor that provides Dsl files The implementation is done in DslDirectiveProcessorBase. This class exist so users can customize behavior easily.

public ref class DslDirectiveProcessor sealed : Microsoft::VisualStudio::Modeling::DslDefinition::DslDirectiveProcessorBase
public sealed class DslDirectiveProcessor : Microsoft.VisualStudio.Modeling.DslDefinition.DslDirectiveProcessorBase
type DslDirectiveProcessor = class
    inherit DslDirectiveProcessorBase
Public NotInheritable Class DslDirectiveProcessor
Inherits DslDirectiveProcessorBase
Inheritance

Constructors

DslDirectiveProcessor()

Constructor

Fields

DslDirectiveProcessorName

The friendly name of this processor.

(Inherited from DslDirectiveProcessorBase)

Properties

Errors

Error collection for DirectiveProcessor to add Errors/Warnings to.

(Inherited from DirectiveProcessor)
FriendlyName

The friendly name of this processor.

(Inherited from DslDirectiveProcessorBase)
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.

(Inherited from DslDirectiveProcessorBase)

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.

(Inherited from DslDirectiveProcessorBase)
GeneratePreInitializationCode(String, StringBuilder, CodeDomProvider, IDictionary<String,String>, IDictionary<String,String>)

Contribute additively to initialization code for the TextTransformation generated class.

(Inherited from DslDirectiveProcessorBase)
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

(Inherited from DslDirectiveProcessorBase)
GetClassCodeForProcessingRun()

Gets generated class code.

(Inherited from RequiresProvidesDirectiveProcessor)
GetImportsForProcessingRun()

Return namespace imports necessary for running template

(Inherited from DslDirectiveProcessorBase)
GetPostInitializationCodeForProcessingRun()

Override GetPostInitializationCodeForProcessingRun to surround all file loads with a top-level transaction. We do this so that the moniker cache does not get flushed after each file is loaded, so that cross-model monikers can be resolved by loading both models in T4 using directives.

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

(Inherited from DslDirectiveProcessorBase)
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

(Inherited from DslDirectiveProcessorBase)
InitializeRequiresDictionary(String, IDictionary<String,String>)

Override to initialize requires dictionary

(Inherited from DslDirectiveProcessorBase)
IsDirectiveSupported(String)

Check if the directive name is supported by this directive processor

(Inherited from DslDirectiveProcessorBase)
PostProcessArguments(String, IDictionary<String,String>, IDictionary<String,String>)

Process arguments

(Inherited from DslDirectiveProcessorBase)
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 get the reference to the CodeDomProvider

Explicit Interface Implementations

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

Applies to