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.
|
<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
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).
|
<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.
|
public <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)
Environment.Registry
getEnvironmentFor
in interface Environment.Registry
expression
- a parsed OCL expressionnull
if
none is availablepublic <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(java.lang.Object abstractSyntaxElement)
Environment.Registry
getEnvironmentFor
in interface Environment.Registry
abstractSyntaxElement
- an element in or referenced by the
AST of of an OCL constraintnull
if
none is availablepublic void registerEnvironment(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
Environment.Registry
registerEnvironment
in interface Environment.Registry
environment
- an environment to registerpublic void deregisterEnvironment(Environment<?,?,?,?,?,?,?,?,?,?,?,?> environment)
Environment.Registry
deregisterEnvironment
in interface Environment.Registry
environment
- the environment to deregister