1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core.search;
16 * This interface defines the constants used by the search engine.
19 * This interface declares constants only; it is not intended to be implemented.
21 * @see org.eclipse.jdt.core.search.SearchEngine
23 public interface IJavaSearchConstants {
26 * The nature of searched element or the nature
27 * of match in unknown.
31 /* Nature of searched element */
34 * The searched element is a type.
39 * The searched element is a method.
44 * The searched element is a package.
49 * The searched element is a constructor.
54 * The searched element is a field.
59 * The searched element is a class.
60 * More selective than using TYPE
65 * The searched element is an interface.
66 * More selective than using TYPE
73 * The search result is a declaration.
74 * Can be used in conjunction with any of the nature of searched elements
75 * so as to better narrow down the search.
80 * The search result is a type that implements an interface.
81 * Used in conjunction with either TYPE or CLASS or INTERFACE, it will
82 * respectively search for any type implementing/extending an interface, or
83 * rather exclusively search for classes implementing an interface, or interfaces
84 * extending an interface.
89 * The search result is a reference.
90 * Can be used in conjunction with any of the nature of searched elements
91 * so as to better narrow down the search.
92 * References can contain implementers since they are more generic kind
98 * The search result is a declaration, a reference, or an implementer
100 * Can be used in conjunction with any of the nature of searched elements
101 * so as to better narrow down the search.
103 int ALL_OCCURRENCES= 3;
106 * When searching for field matches, it will exclusively find read accesses, as
107 * opposed to write accesses. Note that some expressions are considered both
108 * as field read/write accesses: for example, x++; x+= 1;
112 int READ_ACCESSES = 4;
115 * When searching for field matches, it will exclusively find write accesses, as
116 * opposed to read accesses. Note that some expressions are considered both
117 * as field read/write accesses: for example, x++; x+= 1;
121 int WRITE_ACCESSES = 5;
123 /* Syntactic match modes */
126 * The search pattern matches exactly the search result,
127 * that is, the source of the search result equals the search pattern.
131 * The search pattern is a prefix of the search result.
133 int PREFIX_MATCH = 1;
135 * The search pattern contains one or more wild cards ('*') where a
136 * wild-card can replace 0 or more characters in the search result.
138 int PATTERN_MATCH = 2;
141 /* Case sensitivity */
144 * The search pattern matches the search result only
145 * if cases are the same.
147 boolean CASE_SENSITIVE = true;
149 * The search pattern ignores cases in the search result.
151 boolean CASE_INSENSITIVE = false;
154 /* Waiting policies */
157 // * The search operation starts immediately, even if the underlying indexer
158 // * has not finished indexing the workspace. Results will more likely
159 // * not contain all the matches.
161 // int FORCE_IMMEDIATE_SEARCH = IJob.ForceImmediate;
163 // * The search operation throws an <code>org.eclipse.core.runtime.OperationCanceledException</code>
164 // * if the underlying indexer has not finished indexing the workspace.
166 // int CANCEL_IF_NOT_READY_TO_SEARCH = IJob.CancelIfNotReady;
168 // * The search operation waits for the underlying indexer to finish indexing
169 // * the workspace before starting the search.
171 // int WAIT_UNTIL_READY_TO_SEARCH = IJob.WaitUntilReady;