preprocessor.java

来自「plugin for eclipse」· Java 代码 · 共 52 行

JAVA
52
字号
/*
 * Created on Apr 20, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package isis.anp.preprocessor;

import isis.anp.common.ParserConfiguration;
import isis.commons.fs.SearchPath;

import java.io.InputStream;




/**
 * C Preprocessor.
 * @author sallai
 */
public class Preprocessor {

	/**
	 * Wrapper for the C preprocessor executable.
	 */
	CPreprocessorWrapper cpw = null;

	public Preprocessor(ParserConfiguration parserConfig) {
		cpw = new CPreprocessorWrapper(parserConfig);
	}	
	
	public InputStream preprocess(String fileName) throws PreprocessorException {
		return cpw.preprocess(fileName);
	}

	public SearchPath getSearchPathList() {
		return cpw.getSearchPathList();
	}
	
	public void addDefine(String name, String value) {
		cpw.addDefine(name, value);
	}

	public String getTempDir() {
		return cpw.getTempDir();
	}

	public void setTempDir(String tempDir) {
		cpw.setTempDir(tempDir);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?