java.lang.Object
org.alfresco.rest.framework.resource.parameters.where.WhereCompiler

public class WhereCompiler extends Object
Processes a String expression using Antlr, it uses the Where grammar for the public api.
  • 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

      public static String resolveMessage(org.antlr.runtime.RecognitionException exception)
      Returns a message based on the information in the RecognitionException
      Parameters:
      exception - RecognitionException
      Returns:
      String explaining the error