public class ClassContext extends AbstractParserContext
| Constructor and Description |
|---|
ClassContext(EnvironmentFactory environmentFactory,
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(String selfName) |
createBaseResource, getAttribution, getEnvironmentFactory, getExpression, getMetamodelManager, getRootElement, parse, setRootElementpublic ClassContext(EnvironmentFactory environmentFactory, URI uri, Class classContext, Type instanceContext)
public Class getClassContext()
ParserContextgetClassContext in interface ParserContextgetClassContext in class AbstractParserContextpublic Type getInstanceContext()
getInstanceContext in class AbstractParserContextpublic void initialize(Base2ASConversion conversion, ExpressionInOCL expression)
ParserContextinitialize in interface ParserContextinitialize in class AbstractParserContextpublic void setSelfName(String selfName)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.