Class WhereCompiler
java.lang.Object
org.alfresco.rest.framework.resource.parameters.where.WhereCompiler
Processes a String expression using Antlr, it uses the Where grammar for the public api.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.antlr.runtime.tree.CommonTree
compileSelectClause
(String selectParam) static org.antlr.runtime.tree.CommonTree
compileWhereClause
(String expression) static String
resolveMessage
(org.antlr.runtime.RecognitionException exception) Returns a message based on the information in the RecognitionException
-
Constructor Details
-
WhereCompiler
public WhereCompiler()
-
-
Method Details
-
compileWhereClause
public static org.antlr.runtime.tree.CommonTree compileWhereClause(String expression) throws org.antlr.runtime.RecognitionException - Throws:
org.antlr.runtime.RecognitionException
-
compileSelectClause
public static org.antlr.runtime.tree.CommonTree compileSelectClause(String selectParam) throws org.antlr.runtime.RecognitionException - Throws:
org.antlr.runtime.RecognitionException
-
resolveMessage
Returns a message based on the information in the RecognitionException- Parameters:
exception
- RecognitionException- Returns:
- String explaining the error
-