org.eclipse.ocl.examples.pivot
Interface Environment.Internal

All Superinterfaces:
Adaptable, BasicEnvironment, Customizable, Environment
All Known Implementing Classes:
AbstractEnvironment, PivotEnvironment
Enclosing interface:
Environment

public static interface Environment.Internal
extends BasicEnvironment, Environment

An interface that merges the Environment and BasicEnvironment interfaces that define the behaviour realised in abstract form by AbstractEnvironment. The purpose of this interface is primarily for internal use by the parser and/or the particular environment implementation and its corresponding factory. Client applications will not usually need to use this interface.

This interface is not expected to be implemented by clients. It may be implemented by custom Environment classes, but it is recommended to extend the AbstractEnvironment class.

Since:
1.2
Author:
Christian W. Damus (cdamus)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.Environment
Environment.Internal, Environment.Registry
 
Field Summary
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.Environment
OCL_NAMESPACE_URI, RESULT_VARIABLE_NAME, SELF_VARIABLE_NAME
 
Method Summary
 void dispose()
          Disposes of any objects that I have created that should be cleaned up.
 Environment.Internal getInternalParent()
          Obtains my parent environment after construction.
 void setInternalParent(Environment.Internal parent)
          Assigns me a parent environment after construction.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Adaptable
getAdapter
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Customizable
clearOptions, getOptions, getValue, isEnabled, putOptions, removeOption, removeOptions, setOption
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Environment
addElement, getContextPackage, getDefinition, getFactory, getOCLFactory, getOCLStandardLibrary, getParent, getSelfVariable, getStates, getTypeManager, setSelfVariable
 

Method Detail

getInternalParent

Environment.Internal getInternalParent()
Obtains my parent environment after construction.

Returns:
my parent

setInternalParent

void setInternalParent(Environment.Internal parent)
Assigns me a parent environment after construction. It is not advisable to set the parent to null if I previously had one.

Parameters:
parent - my new parent

dispose

void dispose()
Disposes of any objects that I have created that should be cleaned up.

Since:
1.2