C# Class MixinRefactoring.CompositeCommand

base class for commands composed of other commands. A composite command will execute all its commands sequentially and will create
Inheritance: IMixinCommand
Mostrar archivo Open project: pgenfer/mixinSharp

Public Methods

Method Description
CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
Execute ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax childDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic, Settings settings = null ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax

Protected Methods

Method Description
CompositeCommand ( MixinReference mixin ) : System
CreateCommands ( MixinReference mixin ) : IMixinCommand[]

must be implemented by derived classes. Should return all commands that are part of this composition.

Method Details

CanExecute() public method

public CanExecute ( ClassWithSourceCode childClass, Settings settings = null ) : bool
childClass ClassWithSourceCode
settings Settings
return bool

CompositeCommand() protected method

protected CompositeCommand ( MixinReference mixin ) : System
mixin MixinReference
return System

CreateCommands() protected abstract method

must be implemented by derived classes. Should return all commands that are part of this composition.
protected abstract CreateCommands ( MixinReference mixin ) : IMixinCommand[]
mixin MixinReference
return IMixinCommand[]

Execute() public method

public Execute ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax childDeclaration, Microsoft.CodeAnalysis.SemanticModel semantic, Settings settings = null ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
childDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
semantic Microsoft.CodeAnalysis.SemanticModel
settings Settings
return Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax