C# 클래스 DataDictionary.Interpreter.FunctionExpression

상속: Expression, ISubDeclarator
파일 보기 프로젝트 열기: ERTMSSolutions/ERTMSFormalSpecs 1 사용 예제들

공개 메소드들

메소드 설명
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

Fill ( List retVal, DataDictionary.Interpreter.Filter.BaseFilter filter ) : void

Fills the list provided with the element matching the filter provided

Find ( string name, List retVal ) : void

Appends the INamable which match the name provided in retVal

FunctionExpression ( ModelElement root, ModelElement log, List parameters, Expression expression, DataDictionary.Interpreter.ParsingData parsingData ) : System

Constructor

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

Provides the callable that is called by this expression

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

Builds the explanation of the element

GetExpressionType ( ) : DataDictionary.Types.Type

Provides the type of this expression

GetStaticCallable ( ) : ICallable

Provides the ICallable that is statically defined

InitDeclaredElements ( ) : void

Initialises the declared elements

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

Performs the semantic analysis of the expression

보호된 메소드들

메소드 설명
GetValue ( DataDictionary.Interpreter.InterpretationContext context, ExplanationPart explain ) : IValue

Provides the value associated to this Expression

메소드 상세

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

Fill() 공개 메소드

Fills the list provided with the element matching the filter provided
public Fill ( List retVal, DataDictionary.Interpreter.Filter.BaseFilter filter ) : void
retVal List The list to be filled with the element matching the condition expressed in the filter
filter DataDictionary.Interpreter.Filter.BaseFilter The filter to apply
리턴 void

Find() 공개 메소드

Appends the INamable which match the name provided in retVal
public Find ( string name, List retVal ) : void
name string
retVal List
리턴 void

FunctionExpression() 공개 메소드

Constructor
public FunctionExpression ( ModelElement root, ModelElement log, List parameters, Expression expression, DataDictionary.Interpreter.ParsingData parsingData ) : System
root ModelElement
log ModelElement
parameters List the function parameters
expression Expression the functional expression
parsingData DataDictionary.Interpreter.ParsingData Additional information about the parsing process
리턴 System

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

GetExplain() 공개 메소드

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)
리턴 void

GetExpressionType() 공개 메소드

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

GetStaticCallable() 공개 메소드

Provides the ICallable that is statically defined
public GetStaticCallable ( ) : ICallable
리턴 ICallable

GetValue() 보호된 메소드

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

InitDeclaredElements() 공개 메소드

Initialises the declared elements
public InitDeclaredElements ( ) : void
리턴 void

SemanticAnalysis() 공개 메소드

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
리턴 bool