public class ValueNotFoundException extends java.lang.RuntimeException implements VariableValueNotFoundInfo
EvaluationEnvironment. Normally, this exception is expected to occur only when
the PartialEvaluatorImpl together with a PartialEcoreEvaluationEnvironment is used.
In this case, the VariableExp is remembered together with the variable name. Only in case
of an ill-defined configuration would it be possible that the VariableExp is not set and
that only the variable name is set.| Constructor and Description |
|---|
ValueNotFoundException(java.lang.String variableName) |
ValueNotFoundException(java.lang.String variableName,
VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> variableExp) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public ValueNotFoundException(java.lang.String variableName,
VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> variableExp)
public ValueNotFoundException(java.lang.String variableName)
public java.lang.String getVariableName()
getVariableName in interface VariableValueNotFoundInfopublic VariableExp<org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EParameter> getVariableExp()
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.getVariableExp in interface VariableValueNotFoundInfo