Class IdlPreprocessorReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Readable

    public final class IdlPreprocessorReader
    extends Reader
    A Reader that implements the #include functionality of the preprocessor. Starting from one URL, it generates one stream of characters by tracking #defines, #ifdefs, etc. and following #includes accordingly.

    This reader augments the stream with location information when the source URL is switched. This improves error reporting (with correct file and linenumber information) in the subsequent compilation steps like IDL parsing and also allows the implentation of code generation options like the -emitAll flag available in the JDK idlj tool.