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

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

Public Methods

Method 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

Protected Methods

Method Description
GetChildRole ( NodeType nodeType ) : T4TokenRole

Gets the role of a child node.

Private Methods

Method Description
IsEndNode ( [ node ) : bool

Method Details

AddAttribute() public method

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

GetAttribute() public method

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

GetAttributes() public method

Returns the attributes of the directive.
public GetAttributes ( ) : IEnumerable
return IEnumerable

GetChildRole() protected method

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

GetEndToken() public method

Gets the end token of the block.
public GetEndToken ( ) : IT4Token
return IT4Token

GetName() public method

Gets the name of the node.
public GetName ( ) : string
return string

GetNameToken() public method

Gets the token representing the name of this node.
public GetNameToken ( ) : IT4Token
return IT4Token

GetStartToken() public method

Gets the start token of the block.
public GetStartToken ( ) : IT4Token
return IT4Token

ToString() public method

public ToString ( ) : string
return string