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

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

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

Метод Описание
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