C# Класс mustache.TagDefinition

Defines the attributes of a custom tag.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
TagDefinition System

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

Метод Описание
ConsolidateWriter ( TextWriter writer, object>.Dictionary arguments ) : string

Consolidates the text in the given writer to a string, using the given arguments as necessary.

GetChildContext ( TextWriter writer, KeyScope scope, object>.Dictionary arguments ) : IEnumerable

Gets the context to use when building the inner text of the tag.

GetText ( TextWriter writer, object>.Dictionary arguments ) : void

Applies additional formatting to the inner text of the tag.

ShouldCreateSecondaryGroup ( TagDefinition definition ) : bool

Requests which generator group to associate the given tag type.

ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool

Gets whether the group with the given name should have text generated for them.

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

Метод Описание
GetChildTags ( ) : IEnumerable

Specifies which tags are scoped under the current tag.

GetClosingTags ( ) : IEnumerable
GetHasContent ( ) : bool

Gets whether tag has content.

GetIsContextSensitive ( ) : bool

Gets whether a tag is limited to the parent tag's context.

GetParameters ( ) : IEnumerable

Specifies which parameters are passed to the tag.

TagDefinition ( string tagName ) : System

Initializes a new instance of a TagDefinition.

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

Метод Описание
TagDefinition ( string tagName, bool isBuiltIn ) : System

Initializes a new instance of a TagDefinition.

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

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

Consolidates the text in the given writer to a string, using the given arguments as necessary.
public ConsolidateWriter ( TextWriter writer, object>.Dictionary arguments ) : string
writer System.IO.TextWriter The writer containing the text to consolidate.
arguments object>.Dictionary The arguments passed to the tag.
Результат string

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

Gets the context to use when building the inner text of the tag.
public GetChildContext ( TextWriter writer, KeyScope scope, object>.Dictionary arguments ) : IEnumerable
writer System.IO.TextWriter The text writer passed
scope KeyScope The current scope.
arguments object>.Dictionary The arguments passed to the tag.
Результат IEnumerable

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

Specifies which tags are scoped under the current tag.
protected GetChildTags ( ) : IEnumerable
Результат IEnumerable

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

protected GetClosingTags ( ) : IEnumerable
Результат IEnumerable

GetHasContent() защищенный абстрактный Метод

Gets whether tag has content.
protected abstract GetHasContent ( ) : bool
Результат bool

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

Gets whether a tag is limited to the parent tag's context.
protected GetIsContextSensitive ( ) : bool
Результат bool

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

Specifies which parameters are passed to the tag.
protected GetParameters ( ) : IEnumerable
Результат IEnumerable

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

Applies additional formatting to the inner text of the tag.
public GetText ( TextWriter writer, object>.Dictionary arguments ) : void
writer System.IO.TextWriter The text writer to write to.
arguments object>.Dictionary The arguments passed to the tag.
Результат void

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

Requests which generator group to associate the given tag type.
public ShouldCreateSecondaryGroup ( TagDefinition definition ) : bool
definition TagDefinition The child tag definition being grouped.
Результат bool

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

Gets whether the group with the given name should have text generated for them.
public ShouldGeneratePrimaryGroup ( object>.Dictionary arguments ) : bool
arguments object>.Dictionary The arguments passed to the tag.
Результат bool

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

Initializes a new instance of a TagDefinition.
The name of the tag is null or blank.
protected TagDefinition ( string tagName ) : System
tagName string The name of the tag.
Результат System