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, setRootElement
public ClassContext(EnvironmentFactory environmentFactory, URI uri, Class classContext, Type instanceContext)
public Class getClassContext()
ParserContext
getClassContext
in interface ParserContext
getClassContext
in class AbstractParserContext
public Type getInstanceContext()
getInstanceContext
in class AbstractParserContext
public void initialize(Base2ASConversion conversion, ExpressionInOCL expression)
ParserContext
initialize
in interface ParserContext
initialize
in class AbstractParserContext
public void setSelfName(String selfName)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.