Class LumisExpressionEvaluatorImpl


  • public class LumisExpressionEvaluatorImpl
    extends lumis.portal.el.commonsel.ExpressionEvaluatorImpl
    Object that extends the standard ExpressionEvaluatorImpl. This object however does not store expressions in cache.
    Since:
    4.0.9
    Version:
    $Revision: 20622 $ $Date: 2017-10-18 13:14:01 -0200 (Wed, 18 Oct 2017) $
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object customFunctionInvocationEvalution​(lumis.portal.el.commonsel.FunctionInvocation functionInvocation, VariableResolver pResolver, FunctionMapper functions, lumis.portal.el.commonsel.Logger pLogger)  
      java.lang.Object evaluate​(java.lang.String expressionString, java.lang.Class expectedType, VariableResolver resolver, FunctionMapper functions)
      Evaluates the given expression String
      java.lang.Object parseExpressionString​(java.lang.String pExpressionString)
      Gets the parsed form of the given expression string.
      • Methods inherited from class lumis.portal.el.commonsel.ExpressionEvaluatorImpl

        parseAndRender, parseExpression
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LumisExpressionEvaluatorImpl

        public LumisExpressionEvaluatorImpl()
    • Method Detail

      • customFunctionInvocationEvalution

        public static java.lang.Object customFunctionInvocationEvalution​(lumis.portal.el.commonsel.FunctionInvocation functionInvocation,
                                                                         VariableResolver pResolver,
                                                                         FunctionMapper functions,
                                                                         lumis.portal.el.commonsel.Logger pLogger)
                                                                  throws ELException
        Throws:
        ELException
      • parseExpressionString

        public java.lang.Object parseExpressionString​(java.lang.String pExpressionString)
                                               throws ELException
        Description copied from class: lumis.portal.el.commonsel.ExpressionEvaluatorImpl
        Gets the parsed form of the given expression string. If the parsed form is cached (and caching is not bypassed), return the cached form, otherwise parse and cache the value. Returns either a String, Expression, or ExpressionString.
        Overrides:
        parseExpressionString in class lumis.portal.el.commonsel.ExpressionEvaluatorImpl
        Throws:
        ELException
      • evaluate

        public java.lang.Object evaluate​(java.lang.String expressionString,
                                         java.lang.Class expectedType,
                                         VariableResolver resolver,
                                         FunctionMapper functions)
                                  throws ELException
        Description copied from class: lumis.portal.el.commonsel.ExpressionEvaluatorImpl
        Evaluates the given expression String
        Overrides:
        evaluate in class lumis.portal.el.commonsel.ExpressionEvaluatorImpl
        Parameters:
        expressionString - The expression to be evaluated.
        expectedType - The expected type of the result of the evaluation
        resolver - A VariableResolver instance that can be used at runtime to resolve the name of implicit objects into Objects.
        functions - A FunctionMapper to resolve functions found in the expression. It can be null, in which case no functions are supported for this invocation.
        Returns:
        the expression String evaluated to the given expected type
        Throws:
        ELException