Class TypeParameterPattern

All Implemented Interfaces:
Cloneable, IParallelizable, IIndexConstants

public class TypeParameterPattern extends JavaSearchPattern
Pattern to search type parameters.
Since:
3.1
  • Field Details

    • findDeclarations

      protected boolean findDeclarations
    • findReferences

      protected boolean findReferences
    • name

      protected char[] name
    • typeParameter

      protected ITypeParameter typeParameter
    • declaringMemberName

      protected char[] declaringMemberName
    • methodDeclaringClassName

      protected char[] methodDeclaringClassName
    • methodArgumentTypes

      protected char[][] methodArgumentTypes
  • Constructor Details

    • TypeParameterPattern

      public TypeParameterPattern(boolean findDeclarations, boolean findReferences, ITypeParameter typeParameter, int matchRule)
  • Method Details

    • findIndexMatches

      public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      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
    • findIndexMatches

      public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentName, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      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
    • print

      protected StringBuilder print(StringBuilder output)
      Overrides:
      print in class JavaSearchPattern