Package ghidra.program.database.util

# Class NotQuery

java.lang.Object
ghidra.program.database.util.NotQuery

All Implemented Interfaces:
  `Query`

public class NotQuery extends Object implements Query
Negates the given query such that this query is the logical "NOT" of the given query.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NotQuery(Query q1)`
  Construct a new query that results in the not of the given query.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `matches(DBRecord record)`
  Returns true if the given record matches the querys condition.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NotQuery

    public NotQuery(Query q1)
    Construct a new query that results in the not of the given query.
    Parameters:
      `q1` - the query to logically negate.

- ## Method Details

  - ### matches

    public boolean matches(DBRecord record)
    Description copied from interface: `Query`
    Returns true if the given record matches the querys condition.
    Specified by:
      `matches` in interface `Query`
    Parameters:
      `record` - the record to test for compliance.
    See Also:
      - `Query.matches(db.DBRecord)`