Compartilhar via


RequiresProvidesDirectiveProcessor Class

Definition

Base class for a directive processor that follows the requires, provides pattern.

public ref class RequiresProvidesDirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::DirectiveProcessor
[Windows::Foundation::Metadata::WebHostHidden]
public ref class RequiresProvidesDirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::DirectiveProcessor
[Windows::Foundation::Metadata::WebHostHidden]
class RequiresProvidesDirectiveProcessor abstract : Microsoft::VisualStudio::TextTemplating::DirectiveProcessor
public abstract class RequiresProvidesDirectiveProcessor : Microsoft.VisualStudio.TextTemplating.DirectiveProcessor
type RequiresProvidesDirectiveProcessor = class
    inherit DirectiveProcessor
Public MustInherit Class RequiresProvidesDirectiveProcessor
Inherits DirectiveProcessor
Inheritance
RequiresProvidesDirectiveProcessor
Derived

Constructors

RequiresProvidesDirectiveProcessor()

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.

Methods

FinishProcessingRun()

Finishes template processing.

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

Method for derived classes to contribute additively to initialization code for the TextTransformation generated class.

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

Method for derived classes to contribute additively to initialization code for the TextTransformation generated class.

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

Method for derived classes to generate the code they wish to add to the TextTransformation generated class.

GetClassCodeForProcessingRun()

Gets generated class code.

GetImportsForProcessingRun()

Gets list of importt.

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

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

GetReferencesForProcessingRun()

Gets list of references.

GetTemplateClassCustomAttributes()

Get any custom attributes to place on the template class.

(Inherited from DirectiveProcessor)
Initialize(ITextTemplatingEngineHost)

Initializes the processors.

InitializeProvidesDictionary(String, IDictionary<String,String>)

Method for derived classes to specify the provides parameters they will supply for each directive by putting the default name in the matching dictionary slot.

InitializeRequiresDictionary(String, IDictionary<String,String>)

Method for derived classes to specify the requires arguments they need for each directive by putting null in the matching dictionary slot.

IsDirectiveSupported(String)

Does this DirectiveProcessor support the given directive

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

Method for derived classes to make any modifications to the dictionaries that they require

ProcessDirective(String, IDictionary<String,String>)

Processes a single directive.

ProvideUniqueId(String, IDictionary<String,String>, IDictionary<String,String>, IDictionary<String,String>)

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

StartProcessingRun(CodeDomProvider, String, CompilerErrorCollection)

Starts processing run.

Explicit Interface Implementations

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

Applies to