Interface JexlScriptParser

  • All Known Implementing Classes:
    JexlParser, Parser

    public interface JexlScriptParser
    The interface that produces a JEXL script AST from a source.
    Since:
    3.5.0
    • Method Detail

      • parse

        ASTJexlScript parse​(JexlInfo info,
                            JexlFeatures features,
                            java.lang.String src,
                            Scope scope)
        Parses a script or expression.
        Parameters:
        info - information structure
        features - the set of parsing features
        src - the expression to parse
        scope - the script frame
        Returns:
        the parsed tree
        Throws:
        JexlException - if any error occurred during parsing
      • jxltParse

        default ASTJexlScript jxltParse​(JexlInfo info,
                                        JexlFeatures features,
                                        java.lang.String src,
                                        Scope scope)
        Parses an embedded JXLT script or expression, an interpolation expression.
        Parameters:
        info - information structure
        features - the set of parsing features
        src - the expression to parse
        scope - the script frame
        Returns:
        the parsed tree
        Throws:
        JexlException - if any error occurred during parsing