Class QueryParseExceptionComparator

java.lang.Object
org.aksw.jenax.stmt.util.QueryParseExceptionComparator
All Implemented Interfaces:
Comparator<org.apache.jena.query.QueryParseException>

public class QueryParseExceptionComparator extends Object implements Comparator<org.apache.jena.query.QueryParseException>
Compares QueryParseExceptions by their line and column number. If multiple parsers attempt to parse a sparql statement, this comparator can be used to detect which parser came farthest.
Author:
raven
  • Constructor Details

    • QueryParseExceptionComparator

      public QueryParseExceptionComparator()
  • Method Details

    • compare

      public int compare(org.apache.jena.query.QueryParseException a, org.apache.jena.query.QueryParseException b)
      Specified by:
      compare in interface Comparator<org.apache.jena.query.QueryParseException>