Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6736119

refactor Parser and Parser.Factory

XMLWordPrintable

    • b37
    • generic
    • generic
    • Not verified

      Consider following refactoring for the compiler:

      Parser.Factory -> ParserFactory
      Parser -> JavacParser

      add new interface
      interface Parser {
      JCCompilationUnit compilationUnit();
      }
      with extra methods reverse-engineered from JavacParser as necessary,
      so that clients of JavacParser can be clients of new Parser interface.

      This all facilitates adding substitutable parsers (i.e. ANTLR),
      by changing the ParserFactory.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: