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 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 cannot be resolved, then null should be returned.
        Throws:
        FunctionException - if variable name cannot be properly resolved or translated