public abstract class VirtualTable extends Object implements IVirtualOperationTable
IVirtualOperationTable.Access
Modifier and Type | Method and Description |
---|---|
void |
addOperation(EOperation operation)
Adds operation that is virtual in relation to the owning operation of this table.
|
Collection<EOperation> |
getOperations() |
EOperation |
lookupActualOperation(EClassifier actualContextType,
Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject> env,
InternalEvaluationEnv evalEnv)
Performs actual operation lookup according to virtual semantics for the
given actual type.
|
EOperation |
lookupActualOperation(EClassifier actualContextType,
Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject> env,
Module scope,
InternalEvaluationEnv evalEnv)
Performs actual operation lookup according to virtual semantics for the
given actual type, and limits operations in a scope.
|
public void addOperation(EOperation operation)
Note: No check is done for non-compatible signature, owner type. It supposed to be done done externally.
operation
- operation to add to this tablepublic EOperation lookupActualOperation(EClassifier actualContextType, Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject> env, InternalEvaluationEnv evalEnv)
IVirtualOperationTable
The lookup is performed based from formalOperation operation resolved in operation call at compilation time, resulting in runtime dispatched operation for the actual type.
lookupActualOperation
in interface IVirtualOperationTable
actualContextType
- actual context type whose instance is to be used for operation
call dispatch. It is resolved at runtime and might be
different from the owning type resolved at compilation timeenv
- parsing environment used for type, operation resolutionevalEnv
- TODOnull
if no one was
found.#addOperationInModule(EOperation, Module)
public EOperation lookupActualOperation(EClassifier actualContextType, Environment<EPackage,EClassifier,EOperation,EStructuralFeature,EEnumLiteral,EParameter,EObject,CallOperationAction,SendSignalAction,Constraint,EClass,EObject> env, Module scope, InternalEvaluationEnv evalEnv)
IVirtualOperationTable
The lookup is performed based from formalOperation operation resolved in operation call at compilation time, resulting in runtime dispatched operation for the actual type.
lookupActualOperation
in interface IVirtualOperationTable
actualContextType
- actual context type whose instance is to be used for operation
call dispatch. It is resolved at runtime and might be
different from the owning type resolved at compilation timeenv
- parsing environment used for type, operation resolutionscope
- the module in which the resulting operation was manifested as
visible by previous call to
#addOperationInModule(EOperation, Module)
evalEnv
- TODOnull
if no one was
found.#addOperationInModule(EOperation, Module)
public Collection<EOperation> getOperations()
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.