1 package org.simantics.scl.expressions;
\r
4 * Describes an environment for evaluating expressions.
\r
5 * The description includes the names and types of the
\r
6 * environment variables, but not necessarily the values.
\r
7 * The values are obtained using the ContextualValues
\r
8 * given by successfully resolved variables.
\r
9 * @author Hannu Niemistö
\r
12 public interface EnvironmentDescription<Context> {
\r
14 * Tries to resolve an environment variable
\r
15 * with a given name. Returns <code>null</code>
\r
16 * if there is no such variable. If variable is
\r
17 * found, returns ContextualValue that can be
\r
18 * used to obtain the value of the environment
\r
19 * variable with a suitable context.
\r
23 ContextualValue<Context> resolve(String name);
\r