public class EnvironmentRegistryImpl extends java.lang.Object implements Environment.Registry
INSTANCE| Constructor and Description |
|---|
EnvironmentRegistryImpl() |
| 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.
|
@Nullable public Environment getEnvironmentFor(@NonNull OCLExpression expression)
Environment.RegistrygetEnvironmentFor in interface Environment.Registryexpression - a parsed OCL expressionnull if
none is available@Nullable public Environment getEnvironmentFor(@NonNull java.lang.Object abstractSyntaxElement)
Environment.RegistrygetEnvironmentFor in interface Environment.RegistryabstractSyntaxElement - an element in or referenced by the
AST of of an OCL constraintnull if
none is availablepublic void registerEnvironment(@NonNull
Environment environment)
Environment.RegistryregisterEnvironment in interface Environment.Registryenvironment - an environment to registerpublic void deregisterEnvironment(@NonNull
Environment environment)
Environment.RegistryderegisterEnvironment in interface Environment.Registryenvironment - the environment to deregister