|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.pivot.AbstractBasicEnvironment<EvaluationEnvironment> org.eclipse.ocl.examples.pivot.evaluation.AbstractEvaluationEnvironment
public abstract class AbstractEvaluationEnvironment
A partial implementation of the EvaluationEnvironment
interface,
providing some useful common behaviors. Implementors of metamodel-specific
environments are encourage to extend this class rather than implement
an evaluation environment "from scratch."
See the Environment
class for a description of the
generic type parameters of this class.
Field Summary | |
---|---|
protected MetaModelManager |
metaModelManager
|
Fields inherited from class org.eclipse.ocl.examples.pivot.AbstractBasicEnvironment |
---|
parent |
Constructor Summary | |
---|---|
protected |
AbstractEvaluationEnvironment(EvaluationEnvironment parent)
|
protected |
AbstractEvaluationEnvironment(MetaModelManager metaModelManager)
|
Method Summary | |
---|---|
void |
add(DomainTypedElement referredVariable,
java.lang.Object value)
Adds the supplied referredVariable and value binding to the environment |
void |
clear()
Clears the environment of variables. |
MetaModelManager |
getMetaModelManager()
|
java.lang.Object |
getValueOf(DomainTypedElement referredVariable)
Returns the value associated with the supplied referredVariable |
java.util.Set<DomainTypedElement> |
getVariables()
Return the set of all locally registered variables. |
boolean |
overrides(Operation operation,
int opcode)
Deprecated. This Classic OCL API is not used by the Pivot. |
java.lang.Object |
remove(DomainTypedElement referredVariable)
Deprecated. |
void |
replace(DomainTypedElement referredVariable,
java.lang.Object value)
Replaces the current value of the supplied referredVariable with the supplied value. |
java.lang.String |
toString()
Returns a string representation of the bindings |
Methods inherited from class org.eclipse.ocl.examples.pivot.AbstractBasicEnvironment |
---|
basicGetOptions, clearOptions, getAdapter, getOptions, getParent, getValue, isEnabled, notOK, putOptions, removeOption, removeOptions, setOption, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.pivot.evaluation.EvaluationEnvironment |
---|
createModelManager, getType, navigateAssociationClass |
Methods inherited from interface org.eclipse.ocl.examples.domain.evaluation.DomainEvaluationEnvironment |
---|
createVariable |
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 |
Field Detail |
---|
@NonNull protected final MetaModelManager metaModelManager
Constructor Detail |
---|
protected AbstractEvaluationEnvironment(@NonNull MetaModelManager metaModelManager)
protected AbstractEvaluationEnvironment(@NonNull EvaluationEnvironment parent)
Method Detail |
---|
@NonNull public MetaModelManager getMetaModelManager()
getMetaModelManager
in interface EvaluationEnvironment
@Nullable public java.lang.Object getValueOf(@NonNull DomainTypedElement referredVariable)
getValueOf
in interface EvaluationEnvironment
referredVariable
- the referredVariable whose value is to be returned
@NonNull public java.util.Set<DomainTypedElement> getVariables()
EvaluationEnvironment
getVariables
in interface EvaluationEnvironment
public void replace(@NonNull DomainTypedElement referredVariable, @Nullable java.lang.Object value)
replace
in interface DomainEvaluationEnvironment
replace
in interface EvaluationEnvironment
referredVariable
- the referredVariablevalue
- the new valuepublic void add(@NonNull DomainTypedElement referredVariable, @Nullable java.lang.Object value)
add
in interface DomainEvaluationEnvironment
add
in interface EvaluationEnvironment
referredVariable
- the referredVariable to addvalue
- the associated bindingEvaluationEnvironment.replace(DomainTypedElement, Object)
@Deprecated public java.lang.Object remove(@NonNull DomainTypedElement referredVariable)
remove
in interface EvaluationEnvironment
referredVariable
- the referredVariable to remove
public void clear()
clear
in interface EvaluationEnvironment
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public boolean overrides(@NonNull Operation operation, int opcode)
overrides
in interface EvaluationEnvironment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |