01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.compiler.impl;
11:
12: import org.eclipse.jdt.internal.compiler.env.AccessRestriction;
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: AccessRestriction accessRestriction);
25:
26: /**
27: * Accept the requested type's compilation unit.
28: */
29: void accept(ICompilationUnit unit,
30: AccessRestriction accessRestriction);
31:
32: /**
33: * Accept the unresolved source forms for the requested type.
34: * Note that the multiple source forms can be answered, in case the target compilation unit
35: * contains multiple types. The first one is then guaranteed to be the one corresponding to the
36: * requested type.
37: */
38: void accept(ISourceType[] sourceType,
39: PackageBinding packageBinding,
40: AccessRestriction accessRestriction);
41: }
|