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.internal.core;
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;
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>.
24 public interface IJavaElementRequestor {
25 public void acceptField(IField field);
27 // public void acceptInitializer(IInitializer initializer);
28 public void acceptMemberType(IType type);
30 public void acceptMethod(IMethod method);
32 public void acceptPackageFragment(IPackageFragment packageFragment);
34 public void acceptType(IType type);
37 * Returns <code>true</code> if this IJavaElementRequestor does not want
38 * to receive any more results.