java.lang.Object
org.evomaster.client.java.controller.mongo.selectors.QuerySelector
org.evomaster.client.java.controller.mongo.selectors.EqualsSelector

public class EqualsSelector extends QuerySelector
{ field: { $eq: value } }
  • Field Details

  • Constructor Details

    • EqualsSelector

      public EqualsSelector()
  • Method Details

    • parseValue

      protected QueryOperation parseValue(String fieldName, Object value)
      Parses the provided field name and value into a QueryOperation representing an equality condition.
      Parameters:
      fieldName - the name of the field involved in the condition; must not be null
      value - the value to match against the field; null is a valid value
      Returns:
      an instance of EqualsOperation representing the equality condition for the given field and value
    • operator

      protected String operator()
      Description copied from class: QuerySelector
      The operator a query must have to be considered as an instance of the corresponding operation.
      Specified by:
      operator in class QuerySelector
    • 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