1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.impl;
13 import net.sourceforge.phpdt.internal.compiler.env.IBinaryType;
14 import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
15 import net.sourceforge.phpdt.internal.compiler.env.ISourceType;
16 import net.sourceforge.phpdt.internal.compiler.lookup.PackageBinding;
19 public interface ITypeRequestor {
22 * Accept the resolved binary form for the requested type.
24 void accept(IBinaryType binaryType, PackageBinding packageBinding);
27 * Accept the requested type's compilation unit.
29 void accept(ICompilationUnit unit);
32 * Accept the unresolved source forms for the requested type.
33 * Note that the multiple source forms can be answered, in case the target compilation unit
34 * contains multiple types. The first one is then guaranteed to be the one corresponding to the
37 void accept(ISourceType[] sourceType, PackageBinding packageBinding);