Class MultiConditionQuerySelector

java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.MultiConditionQuerySelector
Direct Known Subclasses:
AndSelector, NorSelector, OrSelector

public abstract class MultiConditionQuerySelector extends QuerySelector
Selectors for operations whose value consist of a list of conditions
  • Constructor Details

    • MultiConditionQuerySelector

      public MultiConditionQuerySelector()
  • Method Details

    • getOperation

      public QueryOperation getOperation(Object bsonDocument)
      Description copied from class: QuerySelector
      Returns the operation mapped to the selector if the query satisfy all syntax checks or null if not.
      Specified by:
      getOperation in class QuerySelector
    • extractOperator

      protected String extractOperator(Object query)
      Description copied from class: QuerySelector
      Extracts the operator (for example $eq) from the query.
      Specified by:
      extractOperator in class QuerySelector
    • composeConditions

      protected abstract QueryOperation composeConditions(List<QueryOperation> conditions)
      Composes a QueryOperation from a list of conditions. The specific behavior of this method depends on the implementation in subclasses and how they process the provided conditions to create a composite operation.
      Parameters:
      conditions - the list of QueryOperation objects representing the individual query conditions
      Returns:
      a QueryOperation representing the composed query based on the given conditions, or null if the conditions cannot be composed