C# Class Rebel.Framework.Localization.Processing.PatternDialect

A pattern dialect consist of a parser that understands a specific grammar and factories for value formaters, parameter evaluators and switch case evaluators when the parsed AST is decorated
Exibir arquivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
GetEvaluator ( string pattern, TextManager manager ) : PatternEvaluator
GetParameterEvaluator ( ParameterSpec spec, TextManager manager ) : IParameterEvaluator
GetSwitchConditionEvaluator ( Expression expr, TextManager manager ) : ISwitchConditionEvaluator
GetValueFormatter ( string spelling, TextManager manager ) : IValueFormatter

Protected Methods

Method Description
PatternDialect ( ) : System.Collections.Generic

Method Details

GetEvaluator() public abstract method

public abstract GetEvaluator ( string pattern, TextManager manager ) : PatternEvaluator
pattern string
manager TextManager
return PatternEvaluator

GetParameterEvaluator() public method

public GetParameterEvaluator ( ParameterSpec spec, TextManager manager ) : IParameterEvaluator
spec ParameterSpec
manager TextManager
return IParameterEvaluator

GetSwitchConditionEvaluator() public method

public GetSwitchConditionEvaluator ( Expression expr, TextManager manager ) : ISwitchConditionEvaluator
expr Expression
manager TextManager
return ISwitchConditionEvaluator

GetValueFormatter() public method

public GetValueFormatter ( string spelling, TextManager manager ) : IValueFormatter
spelling string
manager TextManager
return IValueFormatter

PatternDialect() protected method

protected PatternDialect ( ) : System.Collections.Generic
return System.Collections.Generic