Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7ac5697dfb0a9478853ba22bdcc671e5d6f6112b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*******************************************************************************
 * Copyright (c) 2008 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
 *
 * Contributors:
 *    IBM - Initial API and implementation
 *******************************************************************************/

package org.eclipse.cdt.internal.core.indexer;

import org.eclipse.cdt.core.parser.IScannerInfo;
import org.eclipse.cdt.core.parser.IScannerInfoProvider;

/**
 * Similar to IScannerInfoProvider but computes the IScannerInfo
 * based on a String path instead of IResource.
 * 
 * @see IScannerInfoProvider
 */
public interface IStandaloneScannerInfoProvider {

	/**
	 * Returns an IScannerInfo for the given file path,
	 * or an empty IScannerInfo object if the file path is invalid.
	 */
	IScannerInfo getScannerInformation(String path);
	
	/**
	 * Returns an IScannerInfo when you don't necessary have access to a path. 
	 * 
	 * This is used by the "parse up front" feature. Since we are parsing
	 * files outside of the project a "default" IScannerInfo object
	 * is needed to get the minimal amount of available info in order
	 * to parse the file.
	 * @param linkageID 
	 */
	IScannerInfo getDefaultScannerInformation(int linkageID);
}

Back to the top