KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > impl > ITypeRequestor


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.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 }
39
Popular Tags