C# Класс GammaJul.ReSharper.ForTea.Tree.T4Directive

Represents a directive, like <#@ import namespace="System"#>
Наследование: GammaJul.ReSharper.ForTea.Tree.T4CompositeElement, IT4Directive
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddAttribute ( IT4DirectiveAttribute attribute ) : IT4DirectiveAttribute

Adds a new attribute to this directive.

GetAttribute ( string name ) : IT4DirectiveAttribute

Returns an attribute that has a given name.

GetAttributes ( ) : IEnumerable

Returns the attributes of the directive.

GetEndToken ( ) : IT4Token

Gets the end token of the block.

GetName ( ) : string

Gets the name of the node.

GetNameToken ( ) : IT4Token

Gets the token representing the name of this node.

GetStartToken ( ) : IT4Token

Gets the start token of the block.

ToString ( ) : string

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

Метод Описание
GetChildRole ( NodeType nodeType ) : T4TokenRole

Gets the role of a child node.

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

Метод Описание
IsEndNode ( [ node ) : bool

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

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

Adds a new attribute to this directive.
public AddAttribute ( IT4DirectiveAttribute attribute ) : IT4DirectiveAttribute
attribute IT4DirectiveAttribute The attribute to add.
Результат IT4DirectiveAttribute

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

Returns an attribute that has a given name.
public GetAttribute ( string name ) : IT4DirectiveAttribute
name string The name of the attribute to retrieve.
Результат IT4DirectiveAttribute

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

Returns the attributes of the directive.
public GetAttributes ( ) : IEnumerable
Результат IEnumerable

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

Gets the role of a child node.
protected GetChildRole ( NodeType nodeType ) : T4TokenRole
nodeType NodeType The type of the child node
Результат T4TokenRole

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

Gets the end token of the block.
public GetEndToken ( ) : IT4Token
Результат IT4Token

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

Gets the name of the node.
public GetName ( ) : string
Результат string

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

Gets the token representing the name of this node.
public GetNameToken ( ) : IT4Token
Результат IT4Token

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

Gets the start token of the block.
public GetStartToken ( ) : IT4Token
Результат IT4Token

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

public ToString ( ) : string
Результат string