C# Class DslConfig.Boo.Steps.ImplicitBaseClassCompilerStep

Takes all the code that exists in a module's global section and put it in a specificied method of a class. Allow easy handling of the Anonymous Base Class pattern
Inheritance: BaseClassCompilerStep
Mostrar archivo Open project: johannes-brunner/DslConfig

Public Methods

Method Description
ImplicitBaseClassCompilerStep ( Type baseClass, string methodName ) : System

Create new instance of ImplicitBaseClassCompilerStep

ImplicitBaseClassCompilerStep ( Type baseClass, string methodName, ParameterDeclarationCollection parameters ) : System

Create new instance of ImplicitBaseClassCompilerStep

Protected Methods

Method Description
ExtendBaseClass ( Module module, ClassDefinition definition ) : void

Allow a derived class to perform additional operations on the newly created type definition.

ExtendBaseClass ( Boo.Lang.Compiler.Ast.TypeDefinition definition ) : void

Allow to extend the base class in additional ways

Method Details

ExtendBaseClass() protected method

Allow a derived class to perform additional operations on the newly created type definition.
protected ExtendBaseClass ( Module module, ClassDefinition definition ) : void
module Boo.Lang.Compiler.Ast.Module
definition Boo.Lang.Compiler.Ast.ClassDefinition
return void

ExtendBaseClass() protected method

Allow to extend the base class in additional ways
protected ExtendBaseClass ( Boo.Lang.Compiler.Ast.TypeDefinition definition ) : void
definition Boo.Lang.Compiler.Ast.TypeDefinition The definition.
return void

ImplicitBaseClassCompilerStep() public method

Create new instance of ImplicitBaseClassCompilerStep
public ImplicitBaseClassCompilerStep ( Type baseClass, string methodName ) : System
baseClass System.Type The base class that will be used
methodName string The name of the method that will get all the code from globals moved to it.
return System

ImplicitBaseClassCompilerStep() public method

Create new instance of ImplicitBaseClassCompilerStep
public ImplicitBaseClassCompilerStep ( Type baseClass, string methodName, ParameterDeclarationCollection parameters ) : System
baseClass System.Type The base class that will be used
methodName string The name of the method that will get all the code from globals moved to it.
parameters Boo.Lang.Compiler.Ast.ParameterDeclarationCollection The parameters of this method
return System