C# 클래스 DataDictionary.Interpreter.Designator

상속: DataDictionary.Interpreter.InterpreterTreeNode, IReference, ITextualExplain
파일 보기 프로젝트 열기: ERTMSSolutions/ERTMSFormalSpecs 1 사용 예제들

공개 메소드들

메소드 설명
CheckExpression ( ) : void

Checks a designator

Designator ( ModelElement root, ModelElement log, string image, DataDictionary.Interpreter.ParsingData parsingData ) : System.Collections.Generic

Constructor

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

Fills the list provided with the element matching the filter provided

GetCalled ( DataDictionary.Interpreter.InterpretationContext context ) : ICallable

Provides the ICallable designated by this designator according to the interpretation context

GetDesignatorType ( ) : Type

Provides the type designated by this designator

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

Builds the explanation of the element

GetReference ( DataDictionary.Interpreter.InterpretationContext context ) : INamable

Provides the element referenced by this designator, given the enclosing element

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

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

GetValue ( DataDictionary.Interpreter.InterpretationContext context ) : IValue

Provides the value designated by this designator according to the interpretation context

GetVariable ( DataDictionary.Interpreter.InterpretationContext context ) : IVariable

Provides the variable designated by this designator according to the interpretation context

IsInstance ( ) : bool

Indicates whether this expression references an instance

IsPredefined ( ) : bool

Indicates that the designator is predefined

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

Performs the semantic analysis of the term

비공개 메소드들

메소드 설명
EnclosingSubDeclarator ( INamable instance ) : INamable

Provides the enclosing sub declarator

FillBySubdeclarator ( ISubDeclarator subDeclarator, DataDictionary.Interpreter.Filter.BaseFilter expectation, bool asType, DataDictionary.Interpreter.ReturnValue values ) : int

Fills the retVal result set according to the subDeclarator class provided as parameter

GetReferenceBySubDeclarator ( ISubDeclarator subDeclarator ) : INamable

Provides the reference for this subdeclarator

addReference ( INamable namable, DataDictionary.Interpreter.Filter.BaseFilter expectation, bool asType, DataDictionary.Interpreter.ReturnValue resultSet ) : int

Adds a reference which satisfies the provided expectation in the result set

enclosing ( INamable retVal ) : INamable

Provides the enclosing element

메소드 상세

CheckExpression() 공개 메소드

Checks a designator
public CheckExpression ( ) : void
리턴 void

Designator() 공개 메소드

Constructor
public Designator ( ModelElement root, ModelElement log, string image, DataDictionary.Interpreter.ParsingData parsingData ) : System.Collections.Generic
root ModelElement
log ModelElement
image string The designator image
parsingData DataDictionary.Interpreter.ParsingData Additional information about the parsing process
리턴 System.Collections.Generic

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

GetCalled() 공개 메소드

Provides the ICallable designated by this designator according to the interpretation context
public GetCalled ( DataDictionary.Interpreter.InterpretationContext context ) : ICallable
context DataDictionary.Interpreter.InterpretationContext
리턴 ICallable

GetDesignatorType() 공개 메소드

Provides the type designated by this designator
public GetDesignatorType ( ) : Type
리턴 DataDictionary.Types.Type

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

GetReference() 공개 메소드

Provides the element referenced by this designator, given the enclosing element
public GetReference ( DataDictionary.Interpreter.InterpretationContext context ) : INamable
context DataDictionary.Interpreter.InterpretationContext
리턴 INamable

GetReferences() 공개 메소드

Provides the possible references for this designator (only available during semantic analysis)
public GetReferences ( INamable instance, DataDictionary.Interpreter.Filter.BaseFilter expectation, bool lastElement ) : DataDictionary.Interpreter.ReturnValue
instance INamable the instance on which this element should be found.
expectation DataDictionary.Interpreter.Filter.BaseFilter the expectation on the element found
lastElement bool Indicates that this element is the last one in a dereference chain
리턴 DataDictionary.Interpreter.ReturnValue

GetValue() 공개 메소드

Provides the value designated by this designator according to the interpretation context
public GetValue ( DataDictionary.Interpreter.InterpretationContext context ) : IValue
context DataDictionary.Interpreter.InterpretationContext
리턴 IValue

GetVariable() 공개 메소드

Provides the variable designated by this designator according to the interpretation context
public GetVariable ( DataDictionary.Interpreter.InterpretationContext context ) : IVariable
context DataDictionary.Interpreter.InterpretationContext
리턴 IVariable

IsInstance() 공개 메소드

Indicates whether this expression references an instance
public IsInstance ( ) : bool
리턴 bool

IsPredefined() 공개 메소드

Indicates that the designator is predefined
public IsPredefined ( ) : bool
리턴 bool

SemanticAnalysis() 공개 메소드

Performs the semantic analysis of the term
public SemanticAnalysis ( INamable instance, DataDictionary.Interpreter.Filter.BaseFilter expectation, bool lastElement ) : void
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
lastElement bool Indicates that this element is the last one in a dereference chain
리턴 void