Modifier and Type | Class and Description |
---|---|
class |
AbstractEnvironment
A partial implementation of the
Environment interface providing
some useful common behavior for providers of metamodel bindings. |
Modifier and Type | Method and Description |
---|---|
Environment |
AbstractEnvironmentFactory.createClassifierContext(Environment parent,
Type context) |
Environment |
EnvironmentFactory.createClassifierContext(Environment parent,
Type context)
Creates an environment suitable for parsing OCL expressions in the
specified
context , which is some classifier
in the client's model. |
Environment |
EnvironmentFactory.createEnvironment()
Creates a root environment, in which package contexts and/or classifier
contexts will be created as nested environments.
|
Environment |
EnvironmentFactory.createEnvironment(Environment parent)
Creates a child environment of a specified
parent , for
definition of nested scopes. |
Environment |
AbstractEnvironmentFactory.createInstanceContext(Environment parent,
java.lang.Object context) |
Environment |
EnvironmentFactory.createInstanceContext(Environment parent,
java.lang.Object context)
Creates an environment suitable for parsing OCL expressions on the
specified
context object, which is an instance of some
classifier in the client's model. |
Environment |
AbstractEnvironmentFactory.createOperationContext(Environment parent,
Operation operation) |
Environment |
EnvironmentFactory.createOperationContext(Environment parent,
Operation operation)
Creates an environment suitable for parsing OCL expressions on the
specified
operation , which is some operation
in the client's metamodel. |
protected Environment |
AbstractEnvironmentFactory.createPackageContext(Environment parent,
Package context)
Creates an environment for the specified package context.
|
Environment |
AbstractEnvironmentFactory.createPropertyContext(Environment parent,
Property property) |
Environment |
EnvironmentFactory.createPropertyContext(Environment parent,
Property property)
Creates an environment suitable for parsing OCL expressions on the
specified
property , which is some attribute
in the client's metamodel. |
Environment |
OCL.getEnvironment()
Obtains the OCL parsing environment.
|
Environment |
Environment.Registry.getEnvironmentFor(java.lang.Object abstractSyntaxElement)
Obtains a suitable environment for introspection of the specified
model element, type (such as a collection type), or other abstract
syntax element (e.g., a variable).
|
Environment |
Environment.Registry.getEnvironmentFor(OCLExpression expression)
Obtains a suitable environment for introspection of the specified
expression.
|
Environment |
Environment.getParent()
Obtains my parent environment, if I have one.
|
static Environment |
OCLUtil.getValidationEnvironment(java.lang.Object target,
java.util.Map<java.lang.Object,java.lang.Object> context)
Attempts to get an environment instance that is appropriate for introspection
of the specified validation target.
|
Environment |
EnvironmentFactory.loadEnvironment(org.eclipse.emf.ecore.resource.Resource resource)
Loads an environment from the specified resource.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.Diagnostic |
OCLUtil.checkForErrors(Environment env)
Checks whether the specified environment's problem handler has any
diagnostics of error severity or worse and, if so, throws a semantic
exception encapsulating these diagnostics.
|
Environment |
AbstractEnvironmentFactory.createClassifierContext(Environment parent,
Type context) |
Environment |
EnvironmentFactory.createClassifierContext(Environment parent,
Type context)
Creates an environment suitable for parsing OCL expressions in the
specified
context , which is some classifier
in the client's model. |
Environment |
EnvironmentFactory.createEnvironment(Environment parent)
Creates a child environment of a specified
parent , for
definition of nested scopes. |
EvaluationVisitor |
AbstractEnvironmentFactory.createEvaluationVisitor(Environment env,
EvaluationEnvironment evalEnv,
DomainModelManager modelManager) |
EvaluationVisitor |
EnvironmentFactory.createEvaluationVisitor(Environment env,
EvaluationEnvironment evalEnv,
DomainModelManager modelManager)
Creates a new evaluation visitor, for the evaluation of OCL expressions.
|
Environment |
AbstractEnvironmentFactory.createInstanceContext(Environment parent,
java.lang.Object context) |
Environment |
EnvironmentFactory.createInstanceContext(Environment parent,
java.lang.Object context)
Creates an environment suitable for parsing OCL expressions on the
specified
context object, which is an instance of some
classifier in the client's model. |
Environment |
AbstractEnvironmentFactory.createOperationContext(Environment parent,
Operation operation) |
Environment |
EnvironmentFactory.createOperationContext(Environment parent,
Operation operation)
Creates an environment suitable for parsing OCL expressions on the
specified
operation , which is some operation
in the client's metamodel. |
protected Environment |
AbstractEnvironmentFactory.createPackageContext(Environment parent,
Package context)
Creates an environment for the specified package context.
|
Environment |
AbstractEnvironmentFactory.createPropertyContext(Environment parent,
Property property) |
Environment |
EnvironmentFactory.createPropertyContext(Environment parent,
Property property)
Creates an environment suitable for parsing OCL expressions on the
specified
property , which is some attribute
in the client's metamodel. |
void |
Environment.Registry.deregisterEnvironment(Environment environment)
Removes the specified environment from the registry.
|
static <T> T |
OCLUtil.getAdapter(Environment env,
java.lang.Class<T> adapterType)
Obtains an adapter for the specified interface type.
|
static OCL |
OCL.newInstance(Environment env)
Creates a new
OCL using the specified initial Ecore
environment. |
void |
Environment.Registry.registerEnvironment(Environment environment)
Adds the specified environment to the registry.
|
Constructor and Description |
---|
AbstractEnvironment(Environment parent)
Initializes me with the specified parent environment.
|
OCL(EnvironmentFactory envFactory,
Environment rootEnv)
Initializes me with my environment factory and root environment.
|
Modifier and Type | Field and Description |
---|---|
protected Environment |
AbstractEvaluationVisitor.environment |
Modifier and Type | Method and Description |
---|---|
Environment |
AbstractEvaluationVisitor.getEnvironment() |
Environment |
AbstractEvaluationVisitorDecorator.getEnvironment()
Obtains my delegate's environment.
|
Environment |
EvaluationVisitor.getEnvironment()
Obtains the environment that provides the metamodel semantics for the
expression to be evaluated.
|
Constructor and Description |
---|
AbstractEvaluationVisitor(Environment env,
EvaluationEnvironment evalEnv,
DomainModelManager modelManager)
Initializes me.
|
EvaluationVisitorImpl(Environment env,
EvaluationEnvironment evalEnv,
DomainModelManager modelManager)
Constructor
|
Modifier and Type | Field and Description |
---|---|
protected Environment |
OCLHelperImpl.rootEnvironment |
Modifier and Type | Method and Description |
---|---|
Environment |
OCLHelper.getEnvironment()
|
Environment |
OCLHelperImpl.getEnvironment() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
HelperUtil.getConstraintContext(Environment env,
java.lang.Object element,
ExpressionInOCL expr) |
static java.lang.Object |
HelperUtil.getConstraintContext(Environment env,
java.lang.Object element,
OCLExpression expr) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ParsingOptions.getValue(Environment env,
Option<T> option)
Obtains the value of the specified option's setting in the the given
environment's options map, adapting the environment as necessary to the
Customizable API. |
static Option<Type> |
ParsingOptions.implicitRootClass(Environment env)
A parsing option specifying a class that's assumed to be the implicit
root of the subject model's class hierarchy.
|
static <T> void |
ParsingOptions.setOption(Environment env,
Option<T> option,
T value)
Add an option to apply to the specified environment, adapting it as
necessary to the
Customizable API. |
Modifier and Type | Class and Description |
---|---|
class |
PivotEnvironment
Implementation of the
Environment for parsing OCL expressions on
Ecore models. |
Modifier and Type | Method and Description |
---|---|
Environment |
EnvironmentRegistryImpl.getEnvironmentFor(java.lang.Object abstractSyntaxElement) |
Environment |
EnvironmentRegistryImpl.getEnvironmentFor(OCLExpression expression) |
Modifier and Type | Method and Description |
---|---|
PivotEnvironment |
PivotEnvironmentFactory.createEnvironment(Environment parent) |
void |
EnvironmentRegistryImpl.deregisterEnvironment(Environment environment) |
void |
EnvironmentRegistryImpl.registerEnvironment(Environment environment) |
Modifier and Type | Field and Description |
---|---|
protected Environment |
PivotEObjectValidator.ValidationAdapter.rootEnvironment |
Constructor and Description |
---|
OCLConsolePage.CancelableEvaluationVisitor(org.eclipse.core.runtime.IProgressMonitor monitor,
Environment env,
EvaluationEnvironment evalEnv,
DomainModelManager modelManager) |