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 GenericCPPLexerExceptionpublic List<ConstantDefinition> getConstantDefinitions() throws GlueGenException
GenericCPPConstantDefinition, 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 ConstantDefinitions.
getConstantDefinitions in interface GenericCPPGlueGenExceptionpublic String findFile(String filename)
findFile in interface GenericCPPpublic OutputStream out()
out in interface GenericCPPpublic void setOut(OutputStream out)
setOut in interface GenericCPPpublic void run(Reader reader, String filename) throws GlueGenException
run in interface GenericCPPGlueGenException