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 GenericCPP
GlueGenException
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 addDefine(String name, String value)
addDefine
in interface GenericCPP
public static void main(String[] args) throws IOException
IOException