Class StateGenerator<TState>
Inheritance
StateGenerator<TState>
Syntax
public abstract class StateGenerator<TState> : IStateGenerator, IBehaviourGenerator, IGenerator where TState : class, IState
Type Parameters
Constructors
StateGenerator(TState)
Declaration
protected StateGenerator(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Properties
camelName
Declaration
protected string camelName { get; }
Property Value
fieldAlias
Declaration
protected object fieldAlias { get; }
Property Value
pascalName
Declaration
protected string pascalName { get; }
Property Value
state
Declaration
public TState state { get; }
Property Value
Methods
DeclareMembers(ClassGeneration)
Declaration
public virtual void DeclareMembers(ClassGeneration class)
Parameters
Implements
GenerateActivateStatements(MethodGeneration)
Declaration
public IEnumerable<CodeStatement> GenerateActivateStatements(MethodGeneration method)
Parameters
Returns
Implements
GenerateConstructorStatements(ConstructorGeneration)
Declaration
public IEnumerable<CodeStatement> GenerateConstructorStatements(ConstructorGeneration method)
Parameters
Returns
Implements
GenerateDeactivateStatements(MethodGeneration)
Declaration
public IEnumerable<CodeStatement> GenerateDeactivateStatements(MethodGeneration method)
Parameters
Returns
Implements
GenerateStateField(FieldGeneration)
Declaration
protected virtual CodeFieldMember GenerateStateField(FieldGeneration field)
Parameters
Returns
GenerateStateInitializer(ConstructorGeneration)
Declaration
protected abstract CodeExpression GenerateStateInitializer(ConstructorGeneration constructor)
Parameters
Returns
Explicit Interface Implementations
IGenerator.target
Declaration
object IGenerator.target { get; }
Returns
Implements
IStateGenerator.target
Declaration
IState IStateGenerator.target { get; }
Returns
Implements
Extension Methods