blob: 9fe94bee2d922a95779ae528c9fc56b9b443af5f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* $Id: ITypeRequestor.java 19873 2009-04-13 16:51:05Z stephan $
*
* Contributors:
* IBM Corporation - initial API and implementation
* Fraunhofer FIRST - extended API and implementation
* Technical University Berlin - extended API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.compiler.impl;
import org.eclipse.jdt.internal.compiler.env.AccessRestriction;
import org.eclipse.jdt.internal.compiler.env.IBinaryType;
import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
import org.eclipse.jdt.internal.compiler.env.ISourceType;
import org.eclipse.jdt.internal.compiler.lookup.PackageBinding;
import org.eclipse.jdt.internal.compiler.parser.Parser;
public interface ITypeRequestor {
/**
* Accept the resolved binary form for the requested type.
*/
void accept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction);
/**
* Accept the requested type's compilation unit.
*/
void accept(ICompilationUnit unit, AccessRestriction accessRestriction);
/**
* Accept the unresolved source forms for the requested type.
* Note that the multiple source forms can be answered, in case the target compilation unit
* contains multiple types. The first one is then guaranteed to be the one corresponding to the
* requested type.
*/
void accept(ISourceType[] sourceType, PackageBinding packageBinding, AccessRestriction accessRestriction);
//{ObjectTeams: interface to decouple Config<->MatchLocator
/**
* If this type requestor would produce side-effects when parsing method bodies,
* this method will return a different parser without side effects.
*/
Parser getPlainParser();
// SH}
}