Package org.nustaq.reallive.query
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 CompiledQuerycompile(java.lang.String query)java.util.ListgetTokenList()static voidmain(java.lang.String[] args)protected voidparse(java.lang.String expression)Parses the math expression (complicated formula) and stores the resultprotected static voidtestArray(Parser p, MapRecord hm)
-
Field Details
-
Method Details
-
compile
-
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-Stringinput expression (math formula)- Since:
- 3.0
-
main
public static void main(java.lang.String[] args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
testArray
-