Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f65abffa3106a6558bf11de24d13a2ab71dd2342 (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
/*******************************************************************************
 * Copyright (c) 2007 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.model.ILanguage;

/**
 * This mapper can be used for determining the ILanguage for a particular file.
 * 
 * A mapper is needed for standalone indexing when the ILanguage for a file is unknown.
 * 
 * <p>
 * <strong>EXPERIMENTAL</strong>. This class or interface has been added as
 * part of a work in progress. There is no guarantee that this API will work or
 * that it will remain the same. Please do not use this API without consulting
 * with the CDT team.
 * </p>
 * 
 * @since 4.0
 */
public interface ILanguageMapper {
	
	/**
	 * Returns the language of a file.
	 * @param file - path of the file
	 * @return the ILanguage of the file
	 */
	ILanguage getLanguage(String file);
}

Back to the top