Interface Interpreter


public interface Interpreter
Generic object that can be used to parse string "queries" and return an iterable result
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    An exception thrown if the query cannot be parsed by the interpreter
  • Method Summary

    Modifier and Type
    Method
    Description
    ca.uqac.lif.cep.Pullable
    Executes a query
    void
    Resets the state of the interpreter
  • Method Details

    • reset

      void reset()
      Resets the state of the interpreter
    • executeQuery

      ca.uqac.lif.cep.Pullable executeQuery(String query) throws Interpreter.ParseException
      Executes a query
      Parameters:
      query - A string representing the query to execute
      Returns:
      A pullable that can be used to fetch the results of the query
      Throws:
      Interpreter.ParseException - An exception thrown if the query cannot be parsed by the interpreter