C# Class DataDictionary.Interpreter.ListOperators.SumExpression

Inheritance: DataDictionary.Interpreter.ListOperators.ExpressionBasedListExpression
显示文件 Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Public Properties

Property Type Description
Operator string

Private Properties

Property Type Description

Public Methods

Method Description
CheckExpression ( ) : void

Checks the expression and appends errors to the root tree node when inconsistencies are found

GetExplain ( TextualExplanation explanation, bool explainSubElements = true ) : void

Builds the explanation of the element

GetExpressionType ( ) : DataDictionary.Types.Type

Provides the type of this expression

SemanticAnalysis ( INamable instance, DataDictionary.Interpreter.Filter.BaseFilter expectation ) : bool

Performs the semantic analysis of the expression

SumExpression ( ModelElement root, ModelElement log, Expression listExpression, string iteratorVariableName, Expression condition, Expression expression, ParsingData parsingData ) : DataDictionary.Interpreter.Filter

Constructor

Protected Methods

Method Description
GetValue ( InterpretationContext context, ExplanationPart explain ) : IValue

Provides the value associated to this Expression

Method Details

CheckExpression() public method

Checks the expression and appends errors to the root tree node when inconsistencies are found
public CheckExpression ( ) : void
return void

GetExplain() public method

Builds the explanation of the element
public GetExplain ( TextualExplanation explanation, bool explainSubElements = true ) : void
explanation TextualExplanation
explainSubElements bool Precises if we need to explain the sub elements (if any)
return void

GetExpressionType() public method

Provides the type of this expression
public GetExpressionType ( ) : DataDictionary.Types.Type
return DataDictionary.Types.Type

GetValue() protected method

Provides the value associated to this Expression
protected GetValue ( InterpretationContext context, ExplanationPart explain ) : IValue
context InterpretationContext The context on which the value must be found
explain ExplanationPart The explanation to fill, if any
return IValue

SemanticAnalysis() public method

Performs the semantic analysis of the expression
public SemanticAnalysis ( INamable instance, DataDictionary.Interpreter.Filter.BaseFilter expectation ) : bool
instance INamable the reference instance on which this element should analysed
expectation DataDictionary.Interpreter.Filter.BaseFilter Indicates the kind of element we are looking for
return bool

SumExpression() public method

Constructor
public SumExpression ( ModelElement root, ModelElement log, Expression listExpression, string iteratorVariableName, Expression condition, Expression expression, ParsingData parsingData ) : DataDictionary.Interpreter.Filter
root ModelElement the root element for which this expression should be parsed
log ModelElement
listExpression Expression
iteratorVariableName string
condition Expression
expression Expression
parsingData ParsingData Additional information about the parsing process
return DataDictionary.Interpreter.Filter

Property Details

Operator public_oe static_oe property

The operator for this expression
public static string Operator
return string