org.eclipse.ocl.examples.impactanalyzer.deltaPropagation
Class VariableValueNotFoundInfoImpl

java.lang.Object
  extended by org.eclipse.ocl.examples.impactanalyzer.deltaPropagation.VariableValueNotFoundInfoImpl
All Implemented Interfaces:
VariableValueNotFoundInfo

public class VariableValueNotFoundInfoImpl
extends java.lang.Object
implements VariableValueNotFoundInfo


Constructor Summary
VariableValueNotFoundInfoImpl(java.lang.String variableName)
           
VariableValueNotFoundInfoImpl(java.lang.String variableName, VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> variableExp)
           
 
Method Summary
 VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> getVariableExp()
          If the request for the undefined variable was triggered by evaluating a VariableExp, this expression is returned.
 java.lang.String getVariableName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableValueNotFoundInfoImpl

public VariableValueNotFoundInfoImpl(java.lang.String variableName,
                                     VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> variableExp)

VariableValueNotFoundInfoImpl

public VariableValueNotFoundInfoImpl(java.lang.String variableName)
Method Detail

getVariableName

public java.lang.String getVariableName()
Specified by:
getVariableName in interface VariableValueNotFoundInfo

getVariableExp

public VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> getVariableExp()
If the request for the undefined variable was triggered by evaluating a VariableExp, this expression is returned. In some cases the EvaluationEnvironment.getValueOf(String) method is called without a particular variable expression at hand, e.g., in order to look up the context object which is the value of the "self" variable for which not always a variable expression is available. In those cases, null will be returned.

Specified by:
getVariableExp in interface VariableValueNotFoundInfo