]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.expressions/src/org/simantics/scl/expressions/EnvironmentDescription.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.expressions / src / org / simantics / scl / expressions / EnvironmentDescription.java
1 package org.simantics.scl.expressions;
2
3 /**
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ö
10  * @param <Context>
11  */
12 public interface EnvironmentDescription<Context> {
13     /**
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.
20      * @param name
21      * @return
22      */
23     ContextualValue<Context> resolve(String name);
24 }