1
/*******************************************************************************
2
* Copyright (c) 2004, 2007 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
9
* IBM - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.make.core.scannerconfig;
13
import java.util.List;
17
* Interface for scanner info collector.
18
* Used by scanner info console parsers.
19
* Eclipse independent.
23
public interface IScannerInfoCollector {
25
* Contribute to resource's scanner configuration
27
* @param resource - if used from within Eclipse it is expected that resource is a
28
* member of <code>org.eclipse.core.resources.IResource</code> hierarchy.
29
* If used outside of Eclipse then resource is expected to be a
30
* <code>java.io.File<code> type.
31
* @param scannerInfo - a map of key - list pairs, where key is the type of extra info
32
* i.e. target specific options or imacros commands,...
34
public void contributeToScannerConfig(Object resource, Map scannerInfo);
37
* Returns specific piece of discovered scanner info for a resource
38
* discovered during the last collection cycle
43
public List getCollectedScannerInfo(Object resource, ScannerInfoTypes type);