Interface TreeBuilder

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    Builder

    public interface TreeBuilder
    extends java.io.Serializable
    Tree builder interface. A tree builder can be used to create arbitrary many trees. Furthermore, a tree builder implementation must be thread-safe.
    Author:
    Christoph Beck
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Tree build​(java.lang.String expression)
      Parse the given expression and create an abstract syntax tree for it.
    • Method Detail

      • build

        Tree build​(java.lang.String expression)
            throws TreeBuilderException
        Parse the given expression and create an abstract syntax tree for it.
        Parameters:
        expression - expression string
        Returns:
        tree corresponding to the given expression
        Throws:
        ELException - on parse error
        TreeBuilderException