java.lang.Object
org.evomaster.client.java.controller.cassandra.parser.CqlParserUtils

public class CqlParserUtils extends Object
  • Method Details

    • parseCqlCommand

      public static CqlParser.RootContext parseCqlCommand(String cqlCommand)
    • canParseCqlCommand

      public static boolean canParseCqlCommand(String cqlCommand)
    • isSelect

      public static boolean isSelect(String cqlCommand)
    • isUpdate

      public static boolean isUpdate(String cqlCommand)
    • isDelete

      public static boolean isDelete(String cqlCommand)
    • getWhereSpec

      public static CqlParser.WhereSpecContext getWhereSpec(CqlParser.RootContext root)
    • getWhereOperation

      public static CqlQueryOperation getWhereOperation(CqlParser.RootContext root)
      Parses the WHERE clause of a CQL SELECT, UPDATE, or DELETE and returns the corresponding operation tree. Multiple AND-joined conditions are wrapped in an AndOperation; a single condition is returned directly; null is returned when no WHERE clause is present.