public class EObjectContext extends AbstractParserContext
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
eObject |
metaModelManager, uri
Constructor and Description |
---|
EObjectContext(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI uri,
org.eclipse.emf.ecore.EObject eObject) |
Modifier and Type | Method and Description |
---|---|
Type |
getClassContext()
Return the type of the self variable.
|
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.
|
createBaseResource, getExpression, getMetaModelManager, parse
public EObjectContext(@NonNull MetaModelManager metaModelManager, @Nullable org.eclipse.emf.common.util.URI uri, @Nullable org.eclipse.emf.ecore.EObject eObject)
@NonNull public Type getClassContext()
ParserContext
getClassContext
in interface ParserContext
getClassContext
in class AbstractParserContext
public void initialize(@NonNull Base2PivotConversion conversion, @NonNull ExpressionInOCL expression)
ParserContext
initialize
in interface ParserContext
initialize
in class AbstractParserContext