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