X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.expressions%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fexpressions%2FEnvironmentDescription.java;fp=bundles%2Forg.simantics.scl.expressions%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fexpressions%2FEnvironmentDescription.java;h=0ae0a729b06dd6bc511160c8cb3cfdd16deefdb8;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.expressions/src/org/simantics/scl/expressions/EnvironmentDescription.java b/bundles/org.simantics.scl.expressions/src/org/simantics/scl/expressions/EnvironmentDescription.java new file mode 100644 index 000000000..0ae0a729b --- /dev/null +++ b/bundles/org.simantics.scl.expressions/src/org/simantics/scl/expressions/EnvironmentDescription.java @@ -0,0 +1,24 @@ +package org.simantics.scl.expressions; + +/** + * Describes an environment for evaluating expressions. + * The description includes the names and types of the + * environment variables, but not necessarily the values. + * The values are obtained using the ContextualValues + * given by successfully resolved variables. + * @author Hannu Niemistö + * @param + */ +public interface EnvironmentDescription { + /** + * Tries to resolve an environment variable + * with a given name. Returns null + * if there is no such variable. If variable is + * found, returns ContextualValue that can be + * used to obtain the value of the environment + * variable with a suitable context. + * @param name + * @return + */ + ContextualValue resolve(String name); +}