it.amattioli.workstate.config
Class BeanShellHelper
java.lang.Object
it.amattioli.workstate.config.BeanShellHelper
public class BeanShellHelper
- extends Object
|
Field Summary |
static bsh.Interpreter |
i
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
public static bsh.Interpreter i
evalExpr
public static Object evalExpr(String expr)
throws bsh.EvalError
- Evaluate a BeanShell expression. This method interprets the string parameter
as a BeanShell expression and returns the result.
- Parameters:
expr - the string containing the evaluating expression
- Returns:
- the result of the expression evaluation
- Throws:
bsh.EvalError - if the expression has errors
Copyright © 2011. All Rights Reserved.