KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > core > IJavaElementRequestor


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.core;
12
13 import org.eclipse.jdt.core.IField;
14 import org.eclipse.jdt.core.IInitializer;
15 import org.eclipse.jdt.core.IMethod;
16 import org.eclipse.jdt.core.IPackageFragment;
17 import org.eclipse.jdt.core.IType;
18
19 /**
20  * This interface is used by IRequestorNameLookup. As results
21  * are found by IRequestorNameLookup, they are reported to this
22  * interface. An IJavaElementRequestor is able to cancel
23  * at any time (that is, stop receiving results), by responding
24  * <code>true</code> to <code>#isCancelled</code>.
25  */

26 public interface IJavaElementRequestor {
27 public void acceptField(IField field);
28 public void acceptInitializer(IInitializer initializer);
29 public void acceptMemberType(IType type);
30 public void acceptMethod(IMethod method);
31 public void acceptPackageFragment(IPackageFragment packageFragment);
32 public void acceptType(IType type);
33 /**
34  * Returns <code>true</code> if this IJavaElementRequestor does
35  * not want to receive any more results.
36  */

37 boolean isCanceled();
38 }
39
Popular Tags