public class PCPP extends Object implements GenericCPP
| Constructor and Description |
|---|
PCPP(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. |
static void |
main(String[] args) |
OutputStream |
out() |
void |
run(Reader reader,
String filename) |
void |
setOut(OutputStream out) |
public void run(Reader reader, String filename) throws GlueGenException
run in interface GenericCPPGlueGenExceptionpublic 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 addDefine(String name, String value)
addDefine in interface GenericCPPpublic static void main(String[] args) throws IOException
IOException