|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Environment.Registry
A registry of environments. The registry may be consulted to find a default environment suitable for the introspection of a model element. These environments will never be used for the definition of constraints or variables.
This registry may be populated at run-time or, in an Eclipse environment, statically on the org.eclipse.ocl.environments extension point.
| Field Summary | |
|---|---|
static Environment.Registry |
INSTANCE
The shared registry instance. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
@NonNull static final Environment.Registry INSTANCE
| Method Detail |
|---|
Environment getEnvironmentFor(@NonNull
OCLExpression expression)
expression - a parsed OCL expression
null if
none is available
Environment getEnvironmentFor(@NonNull
java.lang.Object abstractSyntaxElement)
abstractSyntaxElement - an element in or referenced by the
AST of of an OCL constraint
null if
none is available
void registerEnvironment(@NonNull
Environment environment)
environment - an environment to register
void deregisterEnvironment(@NonNull
Environment environment)
environment - the environment to deregister
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||