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.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;
18 public interface ITypeRequestor {
21 * Accept the resolved binary form for the requested type.
23 void accept(IBinaryType binaryType, PackageBinding packageBinding);
26 * Accept the requested type's compilation unit.
28 void accept(ICompilationUnit unit);
31 * Accept the unresolved source forms for the requested type.
32 * Note that the multiple source forms can be answered, in case the target compilation unit
33 * contains multiple types. The first one is then guaranteed to be the one corresponding to the
36 void accept(ISourceType[] sourceType, PackageBinding packageBinding);