C# Class GammaJul.ReSharper.ForTea.Tree.T4Directive

Represents a directive, like <#@ import namespace="System"#>
Inheritance: GammaJul.ReSharper.ForTea.Tree.T4CompositeElement, IT4Directive
Afficher le fichier Open project: MrJul/ForTea Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
GetChildRole ( NodeType nodeType ) : T4TokenRole

Gets the role of a child node.

Private Methods

Méthode Description
IsEndNode ( [ node ) : bool

Method Details

AddAttribute() public méthode

Adds a new attribute to this directive.
public AddAttribute ( IT4DirectiveAttribute attribute ) : IT4DirectiveAttribute
attribute IT4DirectiveAttribute The attribute to add.
Résultat IT4DirectiveAttribute

GetAttribute() public méthode

Returns an attribute that has a given name.
public GetAttribute ( string name ) : IT4DirectiveAttribute
name string The name of the attribute to retrieve.
Résultat IT4DirectiveAttribute

GetAttributes() public méthode

Returns the attributes of the directive.
public GetAttributes ( ) : IEnumerable
Résultat IEnumerable

GetChildRole() protected méthode

Gets the role of a child node.
protected GetChildRole ( NodeType nodeType ) : T4TokenRole
nodeType NodeType The type of the child node
Résultat T4TokenRole

GetEndToken() public méthode

Gets the end token of the block.
public GetEndToken ( ) : IT4Token
Résultat IT4Token

GetName() public méthode

Gets the name of the node.
public GetName ( ) : string
Résultat string

GetNameToken() public méthode

Gets the token representing the name of this node.
public GetNameToken ( ) : IT4Token
Résultat IT4Token

GetStartToken() public méthode

Gets the start token of the block.
public GetStartToken ( ) : IT4Token
Résultat IT4Token

ToString() public méthode

public ToString ( ) : string
Résultat string