public class JCPP extends Object implements GenericCPP
Modifier and Type | Field and Description |
---|---|
Preprocessor |
cpp |
Constructor and Description |
---|
JCPP(List<String> includePaths,
boolean debug,
boolean copyOutput2Stderr) |
Modifier and Type | Method and Description |
---|---|
void |
addDefine(String name,
String value) |
String |
findFile(String filename) |
List<ConstantDefinition> |
getConstantDefinitions()
Returns a list of
ConstantDefinition , i.e. |
OutputStream |
out() |
void |
run(Reader reader,
String filename) |
void |
setOut(OutputStream out) |
public final Preprocessor cpp
public void addDefine(String name, String value) throws LexerException
addDefine
in interface GenericCPP
LexerException
public List<ConstantDefinition> getConstantDefinitions() throws GlueGenException
GenericCPP
ConstantDefinition
, i.e.
non-function-like and non-empty macros w/ constant-value,
as derived during parsing.
May return an empty list, in case this preprocessor does not
store ConstantDefinition
s.
getConstantDefinitions
in interface GenericCPP
GlueGenException
public String findFile(String filename)
findFile
in interface GenericCPP
public OutputStream out()
out
in interface GenericCPP
public void setOut(OutputStream out)
setOut
in interface GenericCPP
public void run(Reader reader, String filename) throws GlueGenException
run
in interface GenericCPP
GlueGenException