Interface ExpressionPreparer


public interface ExpressionPreparer
An interface used to prepare an Expression object. This interface is used to mutate an element of an Expression from one form to another. For example, we may use this to translate a StatementTree object to a Statement object.
Author:
Tobias Downer
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPrepare(Object element)
    Returns true if this preparer will prepare the given object in an expression.
    prepare(Object element)
    Returns the new translated object to be mutated from the given element.
  • Method Details

    • canPrepare

      boolean canPrepare(Object element)
      Returns true if this preparer will prepare the given object in an expression.
    • prepare

      Object prepare(Object element) throws DatabaseException
      Returns the new translated object to be mutated from the given element.
      Throws:
      DatabaseException