Package ghidra.program.database.util

# Class OrQuery

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

All Implemented Interfaces:
  `Query`

public class OrQuery extends Object implements Query
Combines two queries such that this query is the logical "OR" of the two queries. If the first query matches, then the second query is not executed.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OrQuery(Query q1, Query q2)`
  Construct a new OrQuery from two other queries.

- ## 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

  - ### OrQuery

    public OrQuery(Query q1, Query q2)
    Construct a new OrQuery from two other queries.
    Parameters:
      `q1` - the first query
      `q2` - the second query

- ## 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)`