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

refactor Parser and Parser.Factory

    Details

    • Subcomponent:
    • Resolved In Build:
      b37
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: