Class Parser

java.lang.Object
org.nustaq.reallive.query.Parser

public class Parser
extends java.lang.Object
Class for parsing and evaluating query expressions
Since:
1.0 modified + massively extended by r.moeller
Version:
7.0
Author:
Dmytro Titov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected EvalContext[] ctxRef  
  • Method Summary

    Modifier and Type Method Description
    CompiledQuery compile​(java.lang.String query)  
    java.util.List getTokenList()  
    static void main​(java.lang.String[] args)  
    protected void parse​(java.lang.String expression)
    Parses the math expression (complicated formula) and stores the result
    protected static void testArray​(Parser p, MapRecord hm)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • compile

      public CompiledQuery compile​(java.lang.String query)
    • getTokenList

      public java.util.List getTokenList()
    • parse

      protected void parse​(java.lang.String expression)
      Parses the math expression (complicated formula) and stores the result
      Parameters:
      expression - String input expression (math formula)
      Since:
      3.0
    • main

      public static void main​(java.lang.String[] args) throws java.lang.Throwable
      Throws:
      java.lang.Throwable
    • testArray

      protected static void testArray​(Parser p, MapRecord hm)