public class EObjectContext extends AbstractParserContext
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
eObject |
environmentFactory, rootElement, uri
Constructor and Description |
---|
EObjectContext(EnvironmentFactory environmentFactory,
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(Base2ASConversion conversion,
ExpressionInOCL expression)
Callback to initialize the ExpressionInOCL with the derived context such as
a contextvariable for the self type, parameter and result variables.
|
addAttribution, createBaseResource, getAttribution, getDoSetupMessage, getEnvironmentFactory, getExpression, getInstanceContext, getMetamodelManager, getRootElement, parse, setRootElement
public EObjectContext(@NonNull EnvironmentFactory environmentFactory, @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 Base2ASConversion conversion, @NonNull ExpressionInOCL expression)
ParserContext
initialize
in interface ParserContext
initialize
in class AbstractParserContext