Makefile fixup
[org.ibex.tool.git] / repo / org.ibex.tool / src / org / eclipse / jdt / internal / compiler / impl / ITypeRequestor.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 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
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.impl;
12
13 import org.eclipse.jdt.internal.compiler.env.IBinaryType;
14 import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
15 import org.eclipse.jdt.internal.compiler.env.ISourceType;
16 import org.eclipse.jdt.internal.compiler.lookup.PackageBinding;
17
18 public interface ITypeRequestor {
19         
20         /**
21          * Accept the resolved binary form for the requested type.
22          */
23         void accept(IBinaryType binaryType, PackageBinding packageBinding);
24
25         /**
26          * Accept the requested type's compilation unit.
27          */
28         void accept(ICompilationUnit unit);
29
30         /**
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
34          * requested type.
35          */
36         void accept(ISourceType[] sourceType, PackageBinding packageBinding);
37 }