Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / IJavaElementRequestor.java
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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
12
13 import net.sourceforge.phpdt.core.IField;
14 import net.sourceforge.phpdt.core.IMethod;
15 import net.sourceforge.phpdt.core.IPackageFragment;
16 import net.sourceforge.phpdt.core.IType;
17
18 /**
19  * This interface is used by IRequestorNameLookup. As results are found by
20  * IRequestorNameLookup, they are reported to this interface. An
21  * IJavaElementRequestor is able to cancel at any time (that is, stop receiving
22  * results), by responding <code>true</code> to <code>#isCancelled</code>.
23  */
24 public interface IJavaElementRequestor {
25         public void acceptField(IField field);
26
27         // public void acceptInitializer(IInitializer initializer);
28         public void acceptMemberType(IType type);
29
30         public void acceptMethod(IMethod method);
31
32         public void acceptPackageFragment(IPackageFragment packageFragment);
33
34         public void acceptType(IType type);
35
36         /**
37          * Returns <code>true</code> if this IJavaElementRequestor does not want
38          * to receive any more results.
39          */
40         boolean isCanceled();
41 }