| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private final Map | defineMap
Map containing the results of #define statements. |
| private final boolean | |
| private final List | |
| private final boolean | |
| private final List | includePaths
List containing the #include paths as Strings |
| private final Logging. | |
| private final Map | |
| private final Set | |
| private OutputStream | |
| private PCPP. | |
| private PrintWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private String | |
| private void | |
| private boolean | |
| private String | |
| public String | |
| private void | |
| public List | getConstantDefinitions()
Implements com. ConstantDefinition, i.e.
non-function-like and non-empty macros w/ constant-value,
as derived during parsing.
|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | handleIfdef(final boolean
if true, we're processing #ifdef; if false, we're
processing #ifndef. isIfdef)
|
| private boolean | Returns: the value of the sub-expression or (if greedy==true) series of sub-expressions.if true, continue evaluating sub-expressions until EOL is
reached. If false, return as soon as the first sub-expression is
processed. greedy)This method is called recursively to process nested sub-expressions such as: #if !defined(OPENSTEP) && !(defined(NeXT) || !defined(NeXT_PDO)) |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private int | |
| public static void | |
| private void | nextRequiredToken(final int requiredToken)
Reads the next token and throws an IOException if it is not the specified token character. |
| private int | |
| private int | |
| private String | |
| private String | |
| public OutputStream | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private String | |
| public void | |
| public void | |
| private boolean | |
| private static void |
| debugPrintIndentLevel | back to summary |
|---|---|
| private static int debugPrintIndentLevel | |
| defineMap | back to summary |
|---|---|
| private final Map<String, String> defineMap Map containing the results of #define statements. We must evaluate certain very simple definitions (to properly handle OpenGL's gl.h) but preserve the text of definitions evaluating to constants. Macros and multi-line defines (which typically contain either macro definitions or expressions) are currently not handled. | |
| enableCopyOutput2Stderr | back to summary |
|---|---|
| private final boolean enableCopyOutput2Stderr | |
| enabledBits | back to summary |
|---|---|
| private final List<Boolean> enabledBits | |
| enableDebugPrint | back to summary |
|---|---|
| private final boolean enableDebugPrint | |
| includePaths | back to summary |
|---|---|
| private final List<String> includePaths List containing the #include paths as Strings | |
| LOG | back to summary |
|---|---|
| private final Logging. | |
| macroMap | back to summary |
|---|---|
| private final Map<String, PCPP. | |
| nonConstantDefines | back to summary |
|---|---|
| private final Set<String> nonConstantDefines | |
| out | back to summary |
|---|---|
| private OutputStream out | |
| state | back to summary |
|---|---|
| private PCPP. | |
| writer | back to summary |
|---|---|
| private PrintWriter writer | |
| PCPP | back to summary |
|---|---|
| public PCPP(final List<String> includePaths, final boolean debug, final boolean copyOutput2Stderr) | |
| addDefine | back to summary |
|---|---|
| public void addDefine(final String name, final String value) Implements com.
| |
| addDefine | back to summary |
|---|---|
| private void addDefine(final String name, final boolean nameIsMacro, List<String> values) | |
| curTokenAsString | back to summary |
|---|---|
| private String curTokenAsString() | |
| debugPrint | back to summary |
|---|---|
| private void debugPrint(final boolean onlyPrintIfEnabled, final String msg) | |
| enabled | back to summary |
|---|---|
| private boolean enabled() | |
| filename | back to summary |
|---|---|
| private String filename() | |
| findFile | back to summary |
|---|---|
| public String findFile(final String filename) Implements com.
| |
| flush | back to summary |
|---|---|
| private void flush() | |
| getConstantDefinitions | back to summary |
|---|---|
| public List Implements com. Doc from com. Returns a list of
May return an empty list, in case this preprocessor does not
store
| |
| handleDefine | back to summary |
|---|---|
| private void handleDefine() throws IOException | |
| handleElse | back to summary |
|---|---|
| private void handleElse() throws IOException Handles #else directives | |
| handleEndif | back to summary |
|---|---|
| private void handleEndif() | |
| handleError | back to summary |
|---|---|
| private void handleError() throws IOException, GlueGenException | |
| handleIf | back to summary |
|---|---|
private void handleIf(final boolean isIf) throws IOException
| |
| handleIfdef | back to summary |
|---|---|
private void handleIfdef(final boolean isIfdef) throws IOException
| |
| handleIfRecursive | back to summary |
|---|---|
| private boolean handleIfRecursive(final boolean greedy) throws IOException This method is called recursively to process nested sub-expressions such as: #if !defined(OPENSTEP) && !(defined(NeXT) || !defined(NeXT_PDO))
| |
| handleInclude | back to summary |
|---|---|
| private void handleInclude() throws IOException | |
| handleUndefine | back to summary |
|---|---|
| private void handleUndefine() throws IOException | |
| handleWarning | back to summary |
|---|---|
| private void handleWarning() throws IOException | |
| initTokenizer | back to summary |
|---|---|
| private void initTokenizer(final StreamTokenizer tok) | |
| lineDirective | back to summary |
|---|---|
| private void lineDirective() | |
| lineNumber | back to summary |
|---|---|
| private int lineNumber() | |
| main | back to summary |
|---|---|
| public static void main(final String[] args) throws IOException | |
| nextRequiredToken | back to summary |
|---|---|
| private void nextRequiredToken(final int requiredToken) throws IOException Reads the next token and throws an IOException if it is not the specified token character. | |
| nextToken | back to summary |
|---|---|
| private int nextToken() throws IOException Equivalent to nextToken(false) | |
| nextToken | back to summary |
|---|---|
| private int nextToken(final boolean returnEOLs) throws IOException | |
| nextWord | back to summary |
|---|---|
| private String nextWord() throws IOException | |
| nextWordOrString | back to summary |
|---|---|
| private String nextWordOrString() throws IOException | |
| out | back to summary |
|---|---|
| public OutputStream out() Implements com.
| |
| parse | back to summary |
|---|---|
| private void parse() throws IOException | |
| popEnableBit | back to summary |
|---|---|
| private void popEnableBit() | |
| preprocessorDirective | back to summary |
|---|---|
| private void preprocessorDirective() throws IOException | |
| back to summary | |
|---|---|
| private void print(final String s) | |
| back to summary | |
|---|---|
| private void print(final char c) | |
| println | back to summary |
|---|---|
| private void println() | |
| printToken | back to summary |
|---|---|
| private void printToken() | |
| pushEnableBit | back to summary |
|---|---|
| private void pushEnableBit(final boolean enabled) | |
| resolveDefine | back to summary |
|---|---|
| private String resolveDefine(final String word, final boolean returnNullIfNotFound) | |
| run | back to summary |
|---|---|
| public void run(final Reader reader, final String filename) throws GlueGenException Implements com.
| |
| setOut | back to summary |
|---|---|
| public void setOut(final OutputStream out) Implements com.
| |
| startOfLine | back to summary |
|---|---|
| private boolean startOfLine() | |
| usage | back to summary |
|---|---|
| private static void usage() | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| params | back to summary |
|---|---|
| private final List<String> params | |
| values | back to summary |
|---|---|
| private final List<String> values | |
| Macro | back to summary |
|---|---|
| pack-priv Macro(final List<String> params, final List<String> values) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private boolean | |
| private boolean | |
| private final StreamTokenizer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv String | |
| pack-priv String | |
| pack-priv int | |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean |
| filename | back to summary |
|---|---|
| private final String filename | |
| startOfFile | back to summary |
|---|---|
| private boolean startOfFile | |
| startOfLine | back to summary |
|---|---|
| private boolean startOfLine | |
| tok | back to summary |
|---|---|
| private final StreamTokenizer tok | |
| ParseState | back to summary |
|---|---|
| pack-priv ParseState(final StreamTokenizer tok, final String filename) | |
| curToken | back to summary |
|---|---|
| pack-priv int curToken() | |
| curWord | back to summary |
|---|---|
| pack-priv String curWord() | |
| filename | back to summary |
|---|---|
| pack-priv String filename() | |
| lineNumber | back to summary |
|---|---|
| pack-priv int lineNumber() | |
| nextToken | back to summary |
|---|---|
| pack-priv int nextToken() throws IOException | |
| pushBackToken | back to summary |
|---|---|
| pack-priv void pushBackToken() throws IOException | |
| setStartOfFile | back to summary |
|---|---|
| pack-priv void setStartOfFile(final boolean val) | |
| setStartOfLine | back to summary |
|---|---|
| pack-priv void setStartOfLine(final boolean val) | |
| startOfFile | back to summary |
|---|---|
| pack-priv boolean startOfFile() | |
| startOfLine | back to summary |
|---|---|
| pack-priv boolean startOfLine() | |