All Implemented Interfaces:
Cloneable, IParallelizable, IIndexConstants
Direct Known Subclasses:
AndPattern, PackageReferencePattern, TypeReferencePattern

public abstract class IntersectingPattern extends JavaSearchPattern
Query the index multiple times and do an 'and' on the results.
  • Constructor Details

    • IntersectingPattern

      public IntersectingPattern(int patternKind, int matchRule)
  • Method Details

    • findIndexMatches

      public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws IOException
      Description copied from class: SearchPattern
      Query a given index for matching entries. Assumes the sender has opened the index and will close when finished.
      Overrides:
      findIndexMatches in class SearchPattern
      Throws:
      IOException
    • hasNextQuery

      protected abstract boolean hasNextQuery()
      Returns whether another query must be done.
    • resetQuery

      protected abstract void resetQuery()
      Resets the query and prepares this pattern to be queried.