|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.pivot.utilities.EnvironmentRegistryImpl
public class EnvironmentRegistryImpl
Implementation of the environment registry.
Field Summary |
---|
Fields inherited from interface org.eclipse.ocl.examples.pivot.Environment.Registry |
---|
INSTANCE |
Constructor Summary | |
---|---|
EnvironmentRegistryImpl()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentRegistryImpl()
Method Detail |
---|
@Nullable public Environment getEnvironmentFor(@NonNull OCLExpression expression)
Environment.Registry
getEnvironmentFor
in interface Environment.Registry
expression
- a parsed OCL expression
null
if
none is available@Nullable public Environment getEnvironmentFor(@NonNull java.lang.Object abstractSyntaxElement)
Environment.Registry
getEnvironmentFor
in interface Environment.Registry
abstractSyntaxElement
- an element in or referenced by the
AST of of an OCL constraint
null
if
none is availablepublic void registerEnvironment(@NonNull Environment environment)
Environment.Registry
registerEnvironment
in interface Environment.Registry
environment
- an environment to registerpublic void deregisterEnvironment(@NonNull Environment environment)
Environment.Registry
deregisterEnvironment
in interface Environment.Registry
environment
- the environment to deregister
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |