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

Implementation of IT4File.
Inheritance: FileElementBase, IT4File
Datei anzeigen Open project: MrJul/ForTea Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddDirective() public method

Adds a new directive.
public AddDirective ( IT4Directive directive ) : IT4Directive
directive IT4Directive The directive to add.
return IT4Directive

AddDirectiveAfter() public method

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.
return IT4Directive

AddDirectiveBefore() public method

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.
return IT4Directive

AddFeatureBlock() public method

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.
return GammaJul.ReSharper.ForTea.Tree.T4FeatureBlock

AddStatementBlock() public method

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.
return GammaJul.ReSharper.ForTea.Tree.T4StatementBlock

GetDirectives() public method

Gets a list of directives contained in the file.
public GetDirectives ( ) : IEnumerable
return IEnumerable

GetFeatureBlocks() public method

Gets a list of feature blocks contained in the file.
public GetFeatureBlocks ( ) : IEnumerable
return IEnumerable

GetIncludes() public method

Gets a list of direct includes.
public GetIncludes ( ) : IEnumerable
return IEnumerable

GetNonEmptyIncludePaths() public method

public GetNonEmptyIncludePaths ( ) : IEnumerable
return IEnumerable

GetStatementBlocks() public method

Gets a list of statement blocks contained in the file.
public GetStatementBlocks ( ) : IEnumerable
return IEnumerable

RemoveChild() public method

Removes a child node from the file.
public RemoveChild ( IT4TreeNode node ) : void
node IT4TreeNode The node to remove.
return void

RemoveDirective() public method

Removes a directive.
public RemoveDirective ( IT4Directive directive ) : void
directive IT4Directive The directive to remove.
return void