1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems 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
* QNX Software Systems - Initial API and implementation
10
* Markus Schorn (Wind River Systems)
11
*******************************************************************************/
12
package org.eclipse.linuxtools.cdt.libhover.tests;
14
import java.util.Collections;
17
import org.eclipse.cdt.core.parser.ExtendedScannerInfo;
19
public class TestScannerInfo extends ExtendedScannerInfo {
20
private static final String[] EMPTY = {};
21
private String[] fIncludes;
22
private String[] fIncludeFiles;
23
private String[] fMacroFiles;
24
private Map<String, String> fDefinedSymbols;
26
public TestScannerInfo(String[] includes, String[] macroFiles, String[] includeFiles,
27
Map<String, String> definedSymbols) {
29
fIncludeFiles= includeFiles;
30
fMacroFiles= macroFiles;
31
fDefinedSymbols= definedSymbols;
35
@SuppressWarnings({ "unchecked", "rawtypes" })
36
public Map getDefinedSymbols() {
37
return fDefinedSymbols == null ? Collections.emptyMap() : fDefinedSymbols;
41
public String[] getIncludePaths() {
42
return fIncludes == null ? EMPTY : fIncludes;
46
public String[] getIncludeFiles() {
47
return fIncludeFiles == null ? EMPTY: fIncludeFiles;
51
public String[] getLocalIncludePath() {
56
public String[] getMacroFiles() {
57
return fMacroFiles == null ? EMPTY: fMacroFiles;