C# Класс DataDictionary.Interpreter.Expression

Наследование: DataDictionary.Interpreter.InterpreterTreeNode, IReference
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddErrorAndExplain ( string message, ExplanationPart explain ) : void

Adds an error message to the root element and explains it

CheckExpression ( ) : void

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

CreateGraph ( DataDictionary.Interpreter.InterpretationContext context, Parameter parameter, ExplanationPart explain ) : Graph

Creates the graph associated to this expression, when the given parameter ranges over the X axis

CreateSurface ( DataDictionary.Interpreter.InterpretationContext context, Parameter xParam, Parameter yParam, ExplanationPart explain ) : Surface

Provides the surface of this function if it has been statically defined

Explain ( DataDictionary.Interpreter.InterpretationContext context = null ) : ExplanationPart

Provides all the steps used to get the value of the expression

Fill ( List retVal, BaseFilter filter ) : void

Fills the list provided with the element matching the filter provided

GetCalled ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : ICallable

Provides the callable that is called by this expression

GetExpressionType ( ) : Type

Provides the type of this expression

GetExpressionValue ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : IValue

Provides the value associated to this Expression

GetLiterals ( ) : List

Provides the list of literals found in the expression

GetReferenceTypes ( INamable instance, BaseFilter expectation, bool last ) : DataDictionary.Interpreter.ReturnValue

Provides the possible references types for this expression (used in semantic analysis)

GetReferences ( INamable instance, BaseFilter expectation, bool last ) : DataDictionary.Interpreter.ReturnValue

Provides the possible references for this expression (only available during semantic analysis)

GetRightSides ( ) : List

Provides the right sides used by this expression

GetStaticCallable ( ) : ICallable

Provides the ICallable that is statically defined

GetVariable ( DataDictionary.Interpreter.InterpretationContext context ) : IVariable

Provides the variable referenced by this expression, if any

GetVariables ( ) : List

Provides the variables used by this expression

IsInstance ( ) : bool

Indicates whether this expression references an instance

SemanticAnalysis ( BaseFilter expectation ) : bool

Performs the semantic analysis of the expression

SemanticAnalysis ( INamable instance = null ) : bool

Performs the semantic analysis of the expression

SemanticAnalysis ( INamable instance, BaseFilter expectation ) : bool

Performs the semantic analysis of the expression

Защищенные методы

Метод Описание
Expression ( ModelElement root, ModelElement log, DataDictionary.Interpreter.ParsingData parsingData ) : System

Constructor

GetValue ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : IValue

Provides the value associated to this Expression

Описание методов

AddErrorAndExplain() публичный Метод

Adds an error message to the root element and explains it
public AddErrorAndExplain ( string message, ExplanationPart explain ) : void
message string
explain ExplanationPart
Результат void

CheckExpression() публичный Метод

Checks the expression and appends errors to the root tree node when inconsistencies are found
public CheckExpression ( ) : void
Результат void

CreateGraph() публичный Метод

Creates the graph associated to this expression, when the given parameter ranges over the X axis
public CreateGraph ( DataDictionary.Interpreter.InterpretationContext context, Parameter parameter, ExplanationPart explain ) : Graph
context DataDictionary.Interpreter.InterpretationContext The interpretation context
parameter Parameter The parameters of *the enclosing function* for which the graph should be created
explain ExplanationPart
Результат Graph

CreateSurface() публичный Метод

Provides the surface of this function if it has been statically defined
public CreateSurface ( DataDictionary.Interpreter.InterpretationContext context, Parameter xParam, Parameter yParam, ExplanationPart explain ) : Surface
context DataDictionary.Interpreter.InterpretationContext the context used to create the surface
xParam Parameter The X axis of this surface
yParam Parameter The Y axis of this surface
explain ExplanationPart
Результат Surface

Explain() публичный Метод

Provides all the steps used to get the value of the expression
public Explain ( DataDictionary.Interpreter.InterpretationContext context = null ) : ExplanationPart
context DataDictionary.Interpreter.InterpretationContext
Результат ExplanationPart

Expression() защищенный Метод

Constructor
protected Expression ( ModelElement root, ModelElement log, DataDictionary.Interpreter.ParsingData parsingData ) : System
root ModelElement The root for which this expression should be evaluated
log ModelElement
parsingData DataDictionary.Interpreter.ParsingData Additional information about the parsing process
Результат System

Fill() публичный абстрактный Метод

Fills the list provided with the element matching the filter provided
public abstract Fill ( List retVal, BaseFilter filter ) : void
retVal List The list to be filled with the element matching the condition expressed in the filter
filter BaseFilter The filter to apply
Результат void

GetCalled() публичный Метод

Provides the callable that is called by this expression
public GetCalled ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : ICallable
context DataDictionary.Interpreter.InterpretationContext
explain ExplanationPart
Результат ICallable

GetExpressionType() публичный абстрактный Метод

Provides the type of this expression
public abstract GetExpressionType ( ) : Type
Результат DataDictionary.Types.Type

GetExpressionValue() публичный Метод

Provides the value associated to this Expression
public GetExpressionValue ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : IValue
context DataDictionary.Interpreter.InterpretationContext The context on which the value must be found
explain ExplanationPart
Результат IValue

GetLiterals() публичный Метод

Provides the list of literals found in the expression
public GetLiterals ( ) : List
Результат List

GetReferenceTypes() публичный Метод

Provides the possible references types for this expression (used in semantic analysis)
public GetReferenceTypes ( INamable instance, BaseFilter expectation, bool last ) : DataDictionary.Interpreter.ReturnValue
instance INamable the reference instance on which this element should analysed
expectation BaseFilter Indicates the kind of element we are looking for
last bool indicates that this is the last element in a dereference chain
Результат DataDictionary.Interpreter.ReturnValue

GetReferences() публичный Метод

Provides the possible references for this expression (only available during semantic analysis)
public GetReferences ( INamable instance, BaseFilter expectation, bool last ) : DataDictionary.Interpreter.ReturnValue
instance INamable the instance on which this element should be found.
expectation BaseFilter the expectation on the element found
last bool indicates that this is the last element in a dereference chain
Результат DataDictionary.Interpreter.ReturnValue

GetRightSides() публичный Метод

Provides the right sides used by this expression
public GetRightSides ( ) : List
Результат List

GetStaticCallable() публичный Метод

Provides the ICallable that is statically defined
public GetStaticCallable ( ) : ICallable
Результат ICallable

GetValue() защищенный абстрактный Метод

Provides the value associated to this Expression
protected abstract GetValue ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : IValue
context DataDictionary.Interpreter.InterpretationContext The context on which the value must be found
explain ExplanationPart
Результат IValue

GetVariable() публичный Метод

Provides the variable referenced by this expression, if any
public GetVariable ( DataDictionary.Interpreter.InterpretationContext context ) : IVariable
context DataDictionary.Interpreter.InterpretationContext The context on which the variable must be found
Результат IVariable

GetVariables() публичный Метод

Provides the variables used by this expression
public GetVariables ( ) : List
Результат List

IsInstance() публичный Метод

Indicates whether this expression references an instance
public IsInstance ( ) : bool
Результат bool

SemanticAnalysis() публичный Метод

Performs the semantic analysis of the expression
public SemanticAnalysis ( BaseFilter expectation ) : bool
expectation BaseFilter
Результат bool

SemanticAnalysis() публичный Метод

Performs the semantic analysis of the expression
public SemanticAnalysis ( INamable instance = null ) : bool
instance INamable the reference instance on which this element should analysed
Результат bool

SemanticAnalysis() публичный Метод

Performs the semantic analysis of the expression
public SemanticAnalysis ( INamable instance, BaseFilter expectation ) : bool
instance INamable the reference instance on which this element should analysed
expectation BaseFilter Indicates the kind of element we are looking for
Результат bool