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.
|
void |
setSelfName(java.lang.String selfName) |
addAttribution, createBaseResource, getAttribution, getDoSetupMessage, getEnvironmentFactory, getExpression, getMetamodelManager, getRootElement, parse, setRootElement
protected 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()
ParserContext
getClassContext
in interface ParserContext
getClassContext
in class AbstractParserContext
@Nullable public Type getInstanceContext()
getInstanceContext
in class AbstractParserContext
public void initialize(@NonNull Base2ASConversion conversion, @NonNull ExpressionInOCL expression)
ParserContext
initialize
in interface ParserContext
initialize
in class AbstractParserContext
public void setSelfName(@NonNull java.lang.String selfName)