net.sourceforge.jeval
Interface VariableResolver


public interface VariableResolver

This interface can be implement with a custom resolver and set onto the Evaluator class. It will then be used to resolve variables when they are replaced in an expression as it gets evaluated. Varaibles resolved by the resolved will override any varibles that exist in the variable map of an Evaluator instance.


Method Summary
 java.lang.String resolveVariable(java.lang.String variableName)
          Returns a variable value for the specified variable name.
 

Method Detail

resolveVariable

java.lang.String resolveVariable(java.lang.String variableName)
                                 throws FunctionException
Returns a variable value for the specified variable name.

Parameters:
variableName - The name of the variable to return the variable value for.
Returns:
A variable value for the specified variable name. If the variable name can not be resolved, then null should be returned.
Throws:
Can - throw a FunctionException if needed.
FunctionException


Copyright (C) 2002-2007 Robert Breidecker.