intarsys runtime library

de.intarsys.tools.expression
Class EnvironmentResolver

java.lang.Object
  extended by de.intarsys.tools.expression.EnvironmentResolver
All Implemented Interfaces:
IStringEvaluator

public class EnvironmentResolver
extends Object
implements IStringEvaluator

An IStringEvaluator implementation giving access to IFileEnvironment related information.


Constructor Summary
EnvironmentResolver()
           
EnvironmentResolver(IFileEnvironment environment)
           
 
Method Summary
 Object evaluate(String expression, IArgs args)
          Evaluate an expression according to the syntax used by the implementor and return the result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentResolver

public EnvironmentResolver()

EnvironmentResolver

public EnvironmentResolver(IFileEnvironment environment)
Method Detail

evaluate

public Object evaluate(String expression,
                       IArgs args)
                throws EvaluationException
Description copied from interface: IStringEvaluator
Evaluate an expression according to the syntax used by the implementor and return the result.

Specified by:
evaluate in interface IStringEvaluator
Parameters:
expression - The expression to evaluate.
Returns:
The result object.
Throws:
EvaluationException - If we encounter a compile or runtime error.

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.