Class TemplateEngine.ConstantExpression

    • Field Detail

      • value

        private final java.lang.Object value
        The constant held by this unified expression.
    • Constructor Detail

      • ConstantExpression

        ConstantExpression​(java.lang.Object val,
                           TemplateEngine.TemplateExpression source)
        Creates a constant unified expression.

        If the wrapped constant is a string, it is treated as a JEXL strings with respect to escaping.

        Parameters:
        val - the constant value
        source - the source TemplateExpression if any