Class OrPattern

java.lang.Object
org.aspectj.org.eclipse.jdt.core.search.SearchPattern
org.aspectj.org.eclipse.jdt.internal.core.search.matching.OrPattern
All Implemented Interfaces:
Cloneable, IParallelizable, IIndexConstants

public class OrPattern extends SearchPattern implements IIndexConstants, IParallelizable, Cloneable
  • Field Details

  • Constructor Details

  • 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
    • findIndexMatches

      public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentName, 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. This API provides a flag to control whether to skip resolving document name for the matching entries. If a SearchPattern subclass has a different implementation of index matching, they have to override this API to support document name resolving feature.
      Overrides:
      findIndexMatches in class SearchPattern
      Parameters:
      index - the target index to query
      requestor - the search requestor
      participant - the search participant
      scope - the search scope where the search results should be found
      resolveDocumentName - whether to skip the document name resolving for the matching entries
      progressMonitor - a progress monitor
      Throws:
      IOException
    • getBlankPattern

      public SearchPattern getBlankPattern()
      Description copied from class: SearchPattern
      Returns a blank pattern that can be used as a record to decode an index key.

      Implementors of this method should return a new search pattern that is going to be used to decode index keys.

      Specified by:
      getBlankPattern in class SearchPattern
      Returns:
      a new blank pattern
      See Also:
    • isPolymorphicSearch

      public boolean isPolymorphicSearch()
      Overrides:
      isPolymorphicSearch in class SearchPattern
    • hasPackageDeclaration

      public final boolean hasPackageDeclaration()
      Returns whether the pattern has one or several package declaration or not.
      Returns:
      true if one at least of the stored pattern is a package declaration pattern (PackageDeclarationPattern), false otherwise.
    • hasSignatures

      public final boolean hasSignatures()
      Returns whether the pattern has signatures or not.
      Returns:
      true if one at least of the stored pattern has signatures.
    • toString

      public String toString()
      Overrides:
      toString in class SearchPattern
      See Also:
    • isParallelSearchSupported

      public boolean isParallelSearchSupported()
      Description copied from interface: IParallelizable
      Answers true if the current instance supports parallel index search
      Specified by:
      isParallelSearchSupported in interface IParallelizable
      Returns:
      Returns true if the implementation is safe to be used in a parallel search.
    • clone

      Overrides:
      clone in class SearchPattern
      Throws:
      CloneNotSupportedException