|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.pivot.AbstractEnvironmentFactory org.eclipse.ocl.examples.pivot.utilities.PivotEnvironmentFactory
public class PivotEnvironmentFactory
Implementation of the EnvironmentFactory
for parsing OCL expressions
on Ecore models.
Field Summary | |
---|---|
protected TypeManager |
typeManager
|
Constructor Summary | |
---|---|
PivotEnvironmentFactory()
Initializes me. |
|
PivotEnvironmentFactory(org.eclipse.emf.ecore.EPackage.Registry reg,
TypeManager typeManager)
Initializes me with an EPackage.Registry that the
environments I create will use to look up packages. |
Method Summary | |
---|---|
PivotEnvironment |
createEnvironment()
Creates a root environment, in which package contexts and/or classifier contexts will be created as nested environments. |
PivotEnvironment |
createEnvironment(Environment parent)
Creates a child environment of a specified parent , for
definition of nested scopes. |
PivotEvaluationEnvironment |
createEvaluationEnvironment()
Creates a new evaluation environment to track the values of variables in an OCL expression as it is evaluated. |
PivotEvaluationEnvironment |
createEvaluationEnvironment(EvaluationEnvironment parent)
Creates a new evaluation environment as a nested environment of the specified parent. |
protected Type |
getClassifier(java.lang.Object context)
Obtains client metamodel's classifier for the specified context object, which may be an instance of a classifier
in the user model or may actually be a classifier in the user model. |
org.eclipse.emf.ecore.EPackage.Registry |
getEPackageRegistry()
Obtains the package registry used by environment that I create to look up packages. |
static PivotEnvironmentFactory |
getGlobalRegistryInstance()
|
TypeManager |
getTypeManager()
|
PivotEnvironment |
loadEnvironment(org.eclipse.emf.ecore.resource.Resource resource)
Loads an environment from the specified resource. |
Methods inherited from class org.eclipse.ocl.examples.pivot.AbstractEnvironmentFactory |
---|
createAttributeContext, createClassifierContext, createEvaluationVisitor, createInstanceContext, createOperationContext, createPackageContext, getAdapter, isEvaluationTracingEnabled, setEvaluationTracingEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TypeManager typeManager
Constructor Detail |
---|
public PivotEnvironmentFactory()
public PivotEnvironmentFactory(org.eclipse.emf.ecore.EPackage.Registry reg, TypeManager typeManager)
EPackage.Registry
that the
environments I create will use to look up packages.
reg
- my package registry (must not be null
)typeManager
- Method Detail |
---|
public static PivotEnvironmentFactory getGlobalRegistryInstance()
public PivotEnvironment createEnvironment()
EnvironmentFactory
public PivotEnvironment loadEnvironment(org.eclipse.emf.ecore.resource.Resource resource)
EnvironmentFactory
resource
- a resource containing the persisted environmentpublic final org.eclipse.emf.ecore.EPackage.Registry getEPackageRegistry()
public PivotEnvironment createEnvironment(Environment parent)
EnvironmentFactory
parent
, for
definition of nested scopes.
parent
- the parent environment
public PivotEvaluationEnvironment createEvaluationEnvironment()
EnvironmentFactory
public PivotEvaluationEnvironment createEvaluationEnvironment(EvaluationEnvironment parent)
EnvironmentFactory
parent
- a nesting evaluation environment
public TypeManager getTypeManager()
protected Type getClassifier(java.lang.Object context)
AbstractEnvironmentFactory
context
object, which may be an instance of a classifier
in the user model or may actually be a classifier in the user model.
getClassifier
in class AbstractEnvironmentFactory
context
- a context object or classifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |