1 package org.simantics.scl.expressions;
\r
3 import org.simantics.scl.compiler.types.Type;
\r
6 * A value that depends on some context. For example SCL expression
\r
7 * can be compiled into contextual value where the actual value
\r
8 * depends on the free variables of the expression.
\r
9 * @author Hannu Niemistö
\r
12 public interface ContextualValue<Context> {
\r
14 * SCL type of the value.
\r
20 * Evaluates the value in the given context.
\r
24 Object getValue(Context context);
\r