/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package net.sourceforge.phpdt.internal.core;
import net.sourceforge.phpdt.core.IField;
import net.sourceforge.phpdt.core.IMethod;
import net.sourceforge.phpdt.core.IPackageFragment;
import net.sourceforge.phpdt.core.IType;
/**
* This interface is used by IRequestorNameLookup. As results are found by
* IRequestorNameLookup, they are reported to this interface. An
* IJavaElementRequestor is able to cancel at any time (that is, stop receiving
* results), by responding true
to #isCancelled
.
*/
public interface IJavaElementRequestor {
public void acceptField(IField field);
// public void acceptInitializer(IInitializer initializer);
public void acceptMemberType(IType type);
public void acceptMethod(IMethod method);
public void acceptPackageFragment(IPackageFragment packageFragment);
public void acceptType(IType type);
/**
* Returns true
if this IJavaElementRequestor does not want
* to receive any more results.
*/
boolean isCanceled();
}