org.eclipse.ocl.examples.pivot.context
Class EObjectContext
java.lang.Object
org.eclipse.ocl.examples.pivot.context.AbstractParserContext
org.eclipse.ocl.examples.pivot.context.EObjectContext
- All Implemented Interfaces:
- ParserContext
public class EObjectContext
- extends AbstractParserContext
EObjectContext supports parsing OCL expressions in the context of the lazily determined classifier of an EObject.
Field Summary |
protected org.eclipse.emf.ecore.EObject |
eObject
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eObject
@Nullable
protected final org.eclipse.emf.ecore.EObject eObject
EObjectContext
public EObjectContext(@NonNull
MetaModelManager metaModelManager,
@Nullable
org.eclipse.emf.common.util.URI uri,
@Nullable
org.eclipse.emf.ecore.EObject eObject)
getClassContext
@NonNull
public Type getClassContext()
- Description copied from interface:
ParserContext
- Return the type of the self variable.
- Specified by:
getClassContext
in interface ParserContext
- Overrides:
getClassContext
in class AbstractParserContext
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 AbstractParserContext