Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.search
Class OrPattern

java.lang.Object
  extended byorg.eclipse.cdt.internal.core.search.matching.CSearchPattern
      extended byorg.eclipse.cdt.core.search.OrPattern
All Implemented Interfaces:
ICSearchConstants, ICSearchPattern

public class OrPattern
extends org.eclipse.cdt.internal.core.search.matching.CSearchPattern


Nested Class Summary
 
Nested classes inherited from class org.eclipse.cdt.internal.core.search.matching.CSearchPattern
org.eclipse.cdt.internal.core.search.matching.CSearchPattern.Requestor
 
Nested classes inherited from class org.eclipse.cdt.core.search.ICSearchConstants
ICSearchConstants.LimitTo, ICSearchConstants.SearchFor
 
Field Summary
 
Fields inherited from class org.eclipse.cdt.internal.core.search.matching.CSearchPattern
_caseSensitive, _limitTo, _matchMode, ACCURATE_MATCH, fSearchForValues, IMPOSSIBLE_MATCH, INACCURATE_MATCH, POSSIBLE_MATCH
 
Fields inherited from interface org.eclipse.cdt.core.search.ICSearchConstants
ALL_OCCURRENCES, CANCEL_IF_NOT_READY_TO_SEARCH, CASE_INSENSITIVE, CASE_SENSITIVE, CLASS, CLASS_STRUCT, DECLARATIONS, DECLARATIONS_DEFINITIONS, DEFINITIONS, DERIVED, ENUM, ENUMTOR, EXACT_MATCH, EXTERNAL_SEARCH_LINK_PREFIX, FIELD, FORCE_IMMEDIATE_SEARCH, FRIEND, FUNCTION, INCLUDE, MACRO, METHOD, NAMESPACE, PATTERN_MATCH, PREFIX_MATCH, REFERENCES, STRUCT, TYPE, TYPEDEF, UNION, UNKNOWN_LIMIT_TO, UNKNOWN_SEARCH_FOR, VAR, WAIT_UNTIL_READY_TO_SEARCH
 
Constructor Summary
OrPattern()
           
 
Method Summary
 void addPattern(ICSearchPattern pattern)
           
 boolean canAccept(ICSearchConstants.LimitTo limit)
           
protected  void decodeIndexEntry(IEntryResult entryResult)
          Decodes the index entry
 void feedIndexRequestor(org.eclipse.cdt.internal.core.search.IIndexSearchRequestor requestor, int detailLevel, int[] fileRefs, int[][] offsets, int[][] offsetLengths, IndexInput input, ICSearchScope scope)
          Feed the requestor according to the current search pattern
 void findIndexMatches(IndexInput input, org.eclipse.cdt.internal.core.search.IIndexSearchRequestor requestor, int detailLevel, IProgressMonitor progressMonitor, ICSearchScope scope)
           
 char[] indexEntryPrefix()
          Answers the suitable prefix that should be used in order to query indexes for the corresponding item.
protected  boolean matchIndexEntry()
          Checks whether an entry matches the current search pattern
 int matchLevel(org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node, ICSearchConstants.LimitTo limit)
           
protected  void resetIndexInfo()
          Called to reset any variables used in the decoding of index entries, this ensures that the matchIndexEntry is not polluted by index info from previous entries.
 
Methods inherited from class org.eclipse.cdt.internal.core.search.matching.CSearchPattern
createPattern, createScanner, createScanner, findIndexMatches, getLimitTo, getMatchLocatable, matchesName, matchQualifications, matchQualifications, parse, parse, scanForParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrPattern

public OrPattern()
Method Detail

addPattern

public void addPattern(ICSearchPattern pattern)
Parameters:
pattern -

matchLevel

public int matchLevel(org.eclipse.cdt.core.parser.ISourceElementCallbackDelegate node,
                      ICSearchConstants.LimitTo limit)
Parameters:
node -
Returns:

canAccept

public boolean canAccept(ICSearchConstants.LimitTo limit)

findIndexMatches

public void findIndexMatches(IndexInput input,
                             org.eclipse.cdt.internal.core.search.IIndexSearchRequestor requestor,
                             int detailLevel,
                             IProgressMonitor progressMonitor,
                             ICSearchScope scope)
                      throws IOException
Throws:
IOException

feedIndexRequestor

public void feedIndexRequestor(org.eclipse.cdt.internal.core.search.IIndexSearchRequestor requestor,
                               int detailLevel,
                               int[] fileRefs,
                               int[][] offsets,
                               int[][] offsetLengths,
                               IndexInput input,
                               ICSearchScope scope)
                        throws IOException
Description copied from class: org.eclipse.cdt.internal.core.search.matching.CSearchPattern
Feed the requestor according to the current search pattern

Throws:
IOException

resetIndexInfo

protected void resetIndexInfo()
Description copied from class: org.eclipse.cdt.internal.core.search.matching.CSearchPattern
Called to reset any variables used in the decoding of index entries, this ensures that the matchIndexEntry is not polluted by index info from previous entries.


decodeIndexEntry

protected void decodeIndexEntry(IEntryResult entryResult)
Description copied from class: org.eclipse.cdt.internal.core.search.matching.CSearchPattern
Decodes the index entry


indexEntryPrefix

public char[] indexEntryPrefix()
Description copied from class: org.eclipse.cdt.internal.core.search.matching.CSearchPattern
Answers the suitable prefix that should be used in order to query indexes for the corresponding item. The more accurate the prefix and the less false hits will have to be eliminated later on.


matchIndexEntry

protected boolean matchIndexEntry()
Description copied from class: org.eclipse.cdt.internal.core.search.matching.CSearchPattern
Checks whether an entry matches the current search pattern


Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.