public class PivotEvaluationEnvironment extends AbstractEvaluationEnvironment
EvaluationEnvironment
for evaluation of OCL
expressions on instances of Ecore models (i.e., on M0 models).metaModelManager
parent
Constructor and Description |
---|
PivotEvaluationEnvironment(EvaluationEnvironment parent)
Initializes me with my parent evaluation environment (nesting scope).
|
PivotEvaluationEnvironment(MetaModelManager metaModelManager)
Initializes me.
|
Modifier and Type | Method and Description |
---|---|
DomainModelManager |
createModelManager(java.lang.Object object)
Retrieves the reference feature in the specified context object that
references the specified association class.
|
DomainTypedElement |
createVariable(java.lang.String name,
DomainType type)
Ecore implementation of the enumeration literal value.
|
Type |
getType(java.lang.Object object)
Queries the type of the specified object.
|
java.lang.Object |
navigateAssociationClass(Type associationClass,
Property navigationSource,
java.lang.Object source)
Obtains the instance of the specified association class that links the
specified source element, optionally via the specified property.
|
add, clear, getMetaModelManager, getValueOf, overrides, remove, replace, toString
basicGetOptions, clearOptions, getAdapter, getOptions, getParent, getValue, isEnabled, notOK, putOptions, removeOption, removeOptions, setOption, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAdapter
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
public PivotEvaluationEnvironment(@NonNull MetaModelManager metaModelManager)
public PivotEvaluationEnvironment(@NonNull EvaluationEnvironment parent)
parent
- my parent (nesting scope); must not be null
@NonNull public DomainModelManager createModelManager(@Nullable java.lang.Object object)
context
- the context objectassociationClass
- the association class that it references@NonNull public DomainTypedElement createVariable(@NonNull java.lang.String name, @NonNull DomainType type)
public java.lang.Object navigateAssociationClass(Type associationClass, Property navigationSource, java.lang.Object source) throws java.lang.IllegalArgumentException
EvaluationEnvironment
associationClass
- the association class to navigate tonavigationSource
- in case of ambiguity, the property of the
source element's classifier through which to navigate to the
association classsource
- the source element from which to navigatejava.lang.IllegalArgumentException
- if the association class is not
associated with the source element, or is not supported by this
environmentpublic Type getType(java.lang.Object object)
EvaluationEnvironment
object
- an object