C# 클래스 GammaJul.ReSharper.ForTea.Tree.T4Directive

Represents a directive, like <#@ import namespace="System"#>
상속: GammaJul.ReSharper.ForTea.Tree.T4CompositeElement, IT4Directive
파일 보기 프로젝트 열기: MrJul/ForTea 1 사용 예제들

공개 메소드들

메소드 설명
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