org.eclipse.ocl.examples.pivot.context
Class EInvocationContext

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.context.AbstractParserContext
      extended by org.eclipse.ocl.examples.pivot.context.EClassContext
          extended by 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.


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.pivot.context.EClassContext
eClassContext
 
Fields inherited from class org.eclipse.ocl.examples.pivot.context.AbstractParserContext
metaModelManager, uri
 
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)
           
 
Method Summary
 java.util.Map<java.lang.String,Type> getParameters()
           
 void initialize(Base2PivotConversion conversion, ExpressionInOCL expression)
          Callback to initialize the ExpressionInOCL with the derived context such as a contextvariable for the self type, parameter and result variables.
 
Methods inherited from class org.eclipse.ocl.examples.pivot.context.EClassContext
getClassContext
 
Methods inherited from class org.eclipse.ocl.examples.pivot.context.AbstractParserContext
createBaseResource, getExpression, getMetaModelManager, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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