org.eclipse.ocl.examples.pivot.context
Class ClassContext
java.lang.Object
org.eclipse.ocl.examples.pivot.context.AbstractParserContext
org.eclipse.ocl.examples.pivot.context.ClassContext
- All Implemented Interfaces:
- ParserContext
- Direct Known Subclasses:
- DiagnosticContext, OperationContext, PropertyContext
public class ClassContext
- extends AbstractParserContext
ClassContext supports parsing OCL expressions in the context of a Class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classContext
protected final Type classContext
ClassContext
public ClassContext(MetaModelManager metaModelManager,
org.eclipse.emf.common.util.URI uri,
Type classContext)
getClassContext
public Type getClassContext()
- Description copied from interface:
ParserContext
- Return the type of the self variable.
- Specified by:
getClassContext
in interface ParserContext
- Overrides:
getClassContext
in class AbstractParserContext
initialize
public void initialize(Base2PivotConversion conversion,
ExpressionInOCL expression)
- Description copied from interface:
ParserContext
- Callback to initialize the ExpressionInOCL with the derived context such as
a contextvariable for the self type, parameter and result variables.
- Specified by:
initialize
in interface ParserContext
- Overrides:
initialize
in class AbstractParserContext