public static interface Environment.Registry
This registry may be populated at run-time or, in an Eclipse environment, statically on the org.eclipse.ocl.environments extension point.
| Modifier and Type | Field and Description |
|---|---|
static Environment.Registry |
INSTANCE
The shared registry instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterEnvironment(Environment environment)
Removes the specified environment from the registry.
|
Environment |
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 |
getEnvironmentFor(OCLExpression expression)
Obtains a suitable environment for introspection of the specified
expression.
|
void |
registerEnvironment(Environment environment)
Adds the specified environment to the registry.
|
@NonNull static final Environment.Registry INSTANCE
Environment getEnvironmentFor(@NonNull OCLExpression expression)
expression - a parsed OCL expressionnull if
none is availableEnvironment getEnvironmentFor(@NonNull java.lang.Object abstractSyntaxElement)
abstractSyntaxElement - an element in or referenced by the
AST of of an OCL constraintnull if
none is availablevoid registerEnvironment(@NonNull
Environment environment)
environment - an environment to registervoid deregisterEnvironment(@NonNull
Environment environment)
environment - the environment to deregister