Class ExpressionSupport

    • Field Detail

      • EMPTY_ITERATOR

        protected static final Iterator EMPTY_ITERATOR
    • Constructor Detail

      • ExpressionSupport

        public ExpressionSupport()
    • Method Detail

      • evaluateRecurse

        public Object evaluateRecurse​(JellyContext context)
        Description copied from interface: Expression
        This method evaluates the expression until a value (a non-Expression) object is returned. If the expression returns another expression, then the nested expression is evaluated.

        Sometimes when Jelly is used inside Maven the value of an expression can actually be another expression. For example if a properties file is read, the values of variables can actually be expressions themselves.

        e.g. ${foo.bar} can lookup "foo.bar" in a Maven context which could actually be another expression.

        So using this method, nested expressions can be evaluated to the actual underlying value object.

        Specified by:
        evaluateRecurse in interface Expression
      • evaluateAsBoolean

        public boolean evaluateAsBoolean​(JellyContext context)
        Description copied from interface: Expression
        Evaluates the expression with the given context coercing the result to be a boolean.
        Specified by:
        evaluateAsBoolean in interface Expression