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.
|
<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
getEnvironmentFor(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).
|
<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
getEnvironmentFor(OCLExpression<C> expression)
Obtains a suitable environment for introspection of the specified
expression.
|
void |
registerEnvironment(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
Adds the specified environment to the registry.
|
static final Environment.Registry INSTANCE
<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> getEnvironmentFor(OCLExpression<C> expression)
expression - a parsed OCL expressionnull if
none is available<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> getEnvironmentFor(Object abstractSyntaxElement)
abstractSyntaxElement - an element in or referenced by the
AST of of an OCL constraintnull if
none is availablevoid registerEnvironment(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
environment - an environment to registervoid deregisterEnvironment(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
environment - the environment to deregisterCopyright © 2015 Open eHealth Foundation. All rights reserved.