Class CQValidator

java.lang.Object
fr.inria.rules.integraal.util.validator.query.CQValidator
All Implemented Interfaces:
Validator<Query>

public class CQValidator extends Object implements Validator<Query>
Validates that a query is a conjunctive query.
Author:
Michel Leclère Checks that the query is a CQ (i.e. a FOQuery whose FOFormula only contains conjunctions and atoms)
  • Constructor Details

    • CQValidator

      public CQValidator()
      Creates the CQ validator.
  • Method Details

    • check

      public boolean check(Query element)
      Description copied from interface: Validator
      Checks whether the supplied element satisfies this validator.
      Specified by:
      check in interface Validator<Query>
      Parameters:
      element - element to check
      Returns:
      true iff the element respect a implementation defined property