9ae827d0cc6f10e1ee3354f002795e5fa919cbd8
[org.ibex.tool.git] / 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.AccessRestriction;
14 import org.eclipse.jdt.internal.compiler.env.IBinaryType;
15 import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
16 import org.eclipse.jdt.internal.compiler.env.ISourceType;
17 import org.eclipse.jdt.internal.compiler.lookup.PackageBinding;
18
19 public interface ITypeRequestor {
20         
21         /**
22          * Accept the resolved binary form for the requested type.
23          */
24         void accept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction);
25
26         /**
27          * Accept the requested type's compilation unit.
28          */
29         void accept(ICompilationUnit unit, AccessRestriction accessRestriction);
30
31         /**
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
35          * requested type.
36          */
37         void accept(ISourceType[] sourceType, PackageBinding packageBinding, AccessRestriction accessRestriction);
38 }