Class EfxExpressionTranslator07

  • All Implemented Interfaces:
    EfxExpressionTranslator, EfxListener, org.antlr.v4.runtime.tree.ParseTreeListener
    Direct Known Subclasses:
    EfxTemplateTranslator07

    public class EfxExpressionTranslator07
    extends EfxBaseListener
    implements EfxExpressionTranslator
    The the goal of the EfxExpressionTranslator is to take an EFX expression and translate it to a target scripting language. The target language syntax is not hardcoded into the translator so that this class can be reused to translate to several different languages. Instead a ScriptGenerator interface is used to provide specifics on the syntax of the target scripting language. Apart from writing expressions that can be translated and evaluated in a target scripting language (e.g. XPath/XQuery, JavaScript etc.), EFX also allows the definition of templates that can be translated to a target template markup language (e.g. XSLT, Thymeleaf etc.). The EfxExpressionTranslator07 only focuses on EFX expressions. To translate EFX templates you need to use the EfxTemplateTranslator07 which derives from this class.