public class ClassContext extends AbstractParserContext
| Modifier and Type | Field and Description |
|---|---|
protected Class |
classContext |
protected Type |
instanceContext |
environmentFactory, rootElement, uri| Constructor and Description |
|---|
ClassContext(EnvironmentFactory environmentFactory,
org.eclipse.emf.common.util.URI uri,
Class classContext,
Type instanceContext) |
| Modifier and Type | Method and Description |
|---|---|
Class |
getClassContext()
Return the type of the self variable.
|
Type |
getInstanceContext() |
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.
|
createBaseResource, getDoSetupMessage, getEnvironmentFactory, getExpression, getMetamodelManager, getRootElement, parse, setRootElementprotected final Class classContext
@Nullable protected final Type instanceContext
public ClassContext(@NonNull
EnvironmentFactory environmentFactory,
@Nullable
org.eclipse.emf.common.util.URI uri,
Class classContext,
@Nullable
Type instanceContext)
public Class getClassContext()
ParserContextgetClassContext in interface ParserContextgetClassContext in class AbstractParserContext@Nullable public Type getInstanceContext()
getInstanceContext in class AbstractParserContextpublic void initialize(@NonNull
Base2ASConversion conversion,
@NonNull
ExpressionInOCL expression)
ParserContextinitialize in interface ParserContextinitialize in class AbstractParserContext