Class UnitGenerator<TUnit>
Inheritance
UnitGenerator<TUnit>
Syntax
public abstract class UnitGenerator<TUnit> : IUnitGenerator, IGenerator where TUnit : class, IUnit
Type Parameters
Constructors
UnitGenerator(TUnit)
Declaration
protected UnitGenerator(TUnit unit)
Parameters
Type |
Name |
Description |
TUnit |
unit |
|
Properties
camelName
Declaration
protected string camelName { get; }
Property Value
pascalName
Declaration
protected string pascalName { get; }
Property Value
unit
Declaration
public TUnit unit { get; }
Property Value
Methods
Alias(IMemberGeneration, String)
Declaration
protected GraphElementMemberAlias Alias(IMemberGeneration generation, string tag)
Parameters
Returns
Declaration
protected void DeclareControlInput(ControlInput controlInput, Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator, ControlOutput successorPort)
Parameters
Declaration
protected void DeclareControlInput(ControlInput controlInput, Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator, Func<MethodGeneration, IEnumerable<CodeStatement>> successorGenerator = null)
Parameters
DeclareMembers(ClassGeneration)
Declaration
public virtual void DeclareMembers(ClassGeneration class)
Parameters
Implements
DeclarePorts()
Declaration
public virtual void DeclarePorts()
Implements
DeclareValueOutput(ValueOutput, Func<MethodGeneration, CodeExpression>)
Declaration
protected void DeclareValueOutput(ValueOutput valueOutput, Func<MethodGeneration, CodeExpression> expressionGenerator)
Parameters
DeclareValueOutput(ValueOutput, Func<MethodGeneration, IEnumerable<CodeStatement>>, Func<MethodGeneration, CodeExpression>)
Declaration
protected void DeclareValueOutput(ValueOutput valueOutput, Func<MethodGeneration, IEnumerable<CodeStatement>> initGenerator, Func<MethodGeneration, CodeExpression> expressionGenerator)
Parameters
GenerateConstructorStatements(ConstructorGeneration)
Declaration
public virtual IEnumerable<CodeStatement> GenerateConstructorStatements(ConstructorGeneration method)
Parameters
Returns
Implements
GenerateControlInputBody(MethodGeneration, ControlInput)
Declaration
public IEnumerable<CodeStatement> GenerateControlInputBody(MethodGeneration method, ControlInput controlInput)
Parameters
Returns
Implements
Declaration
public IEnumerable<CodeStatement> GenerateControlInputSuccessor(MethodGeneration method, ControlInput controlInput)
Parameters
Returns
Implements
GenerateValueOutputExpression(MethodGeneration, ValueOutput)
Declaration
public CodeExpression GenerateValueOutputExpression(MethodGeneration method, ValueOutput valueOutput)
Parameters
Returns
Implements
GenerateValueOutputInit(MethodGeneration, ValueOutput)
Declaration
public IEnumerable<CodeStatement> GenerateValueOutputInit(MethodGeneration method, ValueOutput valueOutput)
Parameters
Returns
Implements
Explicit Interface Implementations
IGenerator.target
Declaration
object IGenerator.target { get; }
Returns
Implements
IUnitGenerator.target
Declaration
IUnit IUnitGenerator.target { get; }
Returns
Implements
Extension Methods