org.eclipse.ocl.examples.pivot.context
Class EInvocationContext
java.lang.Object
org.eclipse.ocl.examples.pivot.context.AbstractParserContext
org.eclipse.ocl.examples.pivot.context.EClassContext
org.eclipse.ocl.examples.pivot.context.EInvocationContext
- All Implemented Interfaces:
- ParserContext
public class EInvocationContext
- extends EClassContext
EInvocationContext supports parsing OCL expressions in the context of a query,
which is an Ecore Class and Ecore Parameters.
Constructor Summary |
EInvocationContext(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EClassifier eClassContext,
java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> eParameters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EInvocationContext
public EInvocationContext(@NonNull
MetaModelManager metaModelManager,
@Nullable
org.eclipse.emf.common.util.URI uri,
@Nullable
org.eclipse.emf.ecore.EClassifier eClassContext,
@Nullable
java.util.Map<java.lang.String,org.eclipse.emf.ecore.EClassifier> eParameters)
getParameters
@NonNull
public java.util.Map<java.lang.String,Type> getParameters()
initialize
public void initialize(@NonNull
Base2PivotConversion conversion,
@NonNull
ExpressionInOCL expression)
- Description copied from interface:
ParserContext
- Callback to initialize the ExpressionInOCL with the derived context such as
a contextvariable for the self type, parameter and result variables.
- Specified by:
initialize
in interface ParserContext
- Overrides:
initialize
in class EClassContext