public class PartialEcoreEnvironmentFactoryNoAllInstances extends PartialEcoreEnvironmentFactory
PartialEvaluationVisitorImplNoAllInstances
as evaluation visitor which throws a
NoAllInstancesDuringEvaluationForUnusedCheck
exception in case allInstances()
is to be evaluated.INSTANCE
Constructor and Description |
---|
PartialEcoreEnvironmentFactoryNoAllInstances()
Uses a
DefaultOppositeEndFinder for querying hidden opposites |
PartialEcoreEnvironmentFactoryNoAllInstances(org.eclipse.emf.common.notify.Notification atPre)
Taking a
Notification object such that an evaluation performed with the EvaluationVisitor returned by this
factory's createEvaluationVisitor(Environment, EvaluationEnvironment, Map) operation will be based on the state
before the notification. |
PartialEcoreEnvironmentFactoryNoAllInstances(org.eclipse.emf.common.notify.Notification atPre,
OppositeEndFinder oppositeEndFinder) |
Modifier and Type | Method and Description |
---|---|
PartialEvaluationVisitorImplNoAllInstances |
createEvaluationVisitor(Environment<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> env,
EvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> evalEnv,
java.util.Map<? extends org.eclipse.emf.ecore.EClass,? extends java.util.Set<? extends org.eclipse.emf.ecore.EObject>> extentMap)
Creates a visitor.
|
createEvaluationEnvironment, createEvaluationEnvironment, getAtPre, getSourceExpression, getValueOfSourceExpression, setExpressionValue, setSourceExpression, setValueOfSourceExpression
createOppositeEndFinder
createEnvironment, createEnvironment, createOCLAnalyzer, createOCLAnalyzer, createOCLFactoryWithHistory, createOCLSyntaxHelper, createValidationVisitor, getClassifier, getEPackageRegistry, getOppositeEndFinder, loadEnvironment, lookupPackage
createAttributeContext, createClassifierContext, createInstanceContext, createOperationContext, createPackageContext, createPackageContext, getAdapter, isEvaluationTracingEnabled, setEvaluationTracingEnabled
public PartialEcoreEnvironmentFactoryNoAllInstances()
DefaultOppositeEndFinder
for querying hidden oppositespublic PartialEcoreEnvironmentFactoryNoAllInstances(org.eclipse.emf.common.notify.Notification atPre)
Notification
object such that an evaluation performed with the EvaluationVisitor
returned by this
factory's createEvaluationVisitor(Environment, EvaluationEnvironment, Map)
operation will be based on the state
before the notification. For example, if the notification indicates the removal of a reference from an element
e1 to an element e2 across reference r then when during partial evaluation r is
traversed starting from e1 then e2 will show in the results although in the current version of the model
it would not.
Uses a DefaultOppositeEndFinder
for navigating hidden opposites.
public PartialEcoreEnvironmentFactoryNoAllInstances(org.eclipse.emf.common.notify.Notification atPre, OppositeEndFinder oppositeEndFinder)
public PartialEvaluationVisitorImplNoAllInstances createEvaluationVisitor(Environment<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> env, EvaluationEnvironment<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject> evalEnv, java.util.Map<? extends org.eclipse.emf.ecore.EClass,? extends java.util.Set<? extends org.eclipse.emf.ecore.EObject>> extentMap)
AbstractEnvironmentFactory.isEvaluationTracingEnabled()
result is ignored here. Unfortunately,
the TracingEvaluationVisitor class is not visible here. The PartialEcoreEnvironmentFactory.sourceExpression
and PartialEcoreEnvironmentFactory.valueOfSourceExpression
are passed to the PartialEvaluationVisitorImplNoAllInstances
constructor and are nulled out before the constructor is called. As a consequence of this, subsequent
requests to this factory to create a visitor will result in visitors that don't treat the
source expression special anymore. This prevents incorrect use of the cached value during
recursions.createEvaluationVisitor
in interface EnvironmentFactory<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,CallOperationAction,SendSignalAction,Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>
createEvaluationVisitor
in class PartialEcoreEnvironmentFactory
env
- the environment in which the expression was originally parsed
(or some compatible environment)evalEnv
- the evaluation environment that the visitor is to use
for tracking variables, navigating properties, etc.extentMap
- the map of Classes to their extends