Class IqlQueryParser


  • public final class IqlQueryParser
    extends java.lang.Object
    Parser for the InterMine dialect of OQL (IQL)
    Author:
    Matthew Wakeling, Andrew Varley
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Query parse​(IqlQuery iq)
      Construct a new query by parsing a String.
      static java.lang.String unescape​(java.lang.String word)
      Unescapes a String, by removing quotes from the beginning and end.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parse

        public static Query parse​(IqlQuery iq)
        Construct a new query by parsing a String.
        Parameters:
        iq - an IqlQuery object to parse
        Returns:
        the Query representing the IqlQuery
        Throws:
        java.lang.IllegalArgumentException - if the OQLQuery contains an invalid query String
      • unescape

        public static java.lang.String unescape​(java.lang.String word)
        Unescapes a String, by removing quotes from the beginning and end.
        Parameters:
        word - the String
        Returns:
        the unescaped String