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

Implementation of IT4File.
Наследование: FileElementBase, IT4File
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddDirective ( IT4Directive directive ) : IT4Directive

Adds a new directive.

AddDirectiveAfter ( IT4Directive directive, IT4Directive anchor ) : IT4Directive

Adds a new directive after an existing one.

AddDirectiveBefore ( IT4Directive directive, IT4Directive anchor ) : IT4Directive

Adds a new directive before an existing one.

AddFeatureBlock ( GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock featureBlock ) : GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock

Adds a new feature block.

AddStatementBlock ( GammaJul.ReSharper.ForTea.Tree.T4StatementBlock statementBlock ) : GammaJul.ReSharper.ForTea.Tree.T4StatementBlock

Adds a new statement block.

GetDirectives ( ) : IEnumerable

Gets a list of directives contained in the file.

GetFeatureBlocks ( ) : IEnumerable

Gets a list of feature blocks contained in the file.

GetIncludes ( ) : IEnumerable

Gets a list of direct includes.

GetNonEmptyIncludePaths ( ) : IEnumerable
GetStatementBlocks ( ) : IEnumerable

Gets a list of statement blocks contained in the file.

RemoveChild ( IT4TreeNode node ) : void

Removes a child node from the file.

RemoveDirective ( IT4Directive directive ) : void

Removes a directive.

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

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

Adds a new directive.
public AddDirective ( IT4Directive directive ) : IT4Directive
directive IT4Directive The directive to add.
Результат IT4Directive

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

Adds a new directive after an existing one.
public AddDirectiveAfter ( IT4Directive directive, IT4Directive anchor ) : IT4Directive
directive IT4Directive The directive to add.
anchor IT4Directive The existing directive where will be placed after.
Результат IT4Directive

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

Adds a new directive before an existing one.
public AddDirectiveBefore ( IT4Directive directive, IT4Directive anchor ) : IT4Directive
directive IT4Directive The directive to add.
anchor IT4Directive The existing directive where will be placed before.
Результат IT4Directive

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

Adds a new feature block.
public AddFeatureBlock ( GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock featureBlock ) : GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock
featureBlock GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock The feature block to add.
Результат GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock

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

Adds a new statement block.
public AddStatementBlock ( GammaJul.ReSharper.ForTea.Tree.T4StatementBlock statementBlock ) : GammaJul.ReSharper.ForTea.Tree.T4StatementBlock
statementBlock GammaJul.ReSharper.ForTea.Tree.T4StatementBlock The statement block to add.
Результат GammaJul.ReSharper.ForTea.Tree.T4StatementBlock

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

Gets a list of directives contained in the file.
public GetDirectives ( ) : IEnumerable
Результат IEnumerable

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

Gets a list of feature blocks contained in the file.
public GetFeatureBlocks ( ) : IEnumerable
Результат IEnumerable

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

Gets a list of direct includes.
public GetIncludes ( ) : IEnumerable
Результат IEnumerable

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

public GetNonEmptyIncludePaths ( ) : IEnumerable
Результат IEnumerable

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

Gets a list of statement blocks contained in the file.
public GetStatementBlocks ( ) : IEnumerable
Результат IEnumerable

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

Removes a child node from the file.
public RemoveChild ( IT4TreeNode node ) : void
node IT4TreeNode The node to remove.
Результат void

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

Removes a directive.
public RemoveDirective ( IT4Directive directive ) : void
directive IT4Directive The directive to remove.
Результат void