provide link to JavaFileObject from Element

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None

      There is no easy way to get from an Element (TypeElement, PackageElement, ModuleElement) to the JavaFileObject for the source or class from which it was read.

      It would be good to add

      JavaFileObject Elements.getJavaFileObject(Element e)

      that returns the information if available, null if not, and IllegalArgumentException if not (type, package, module)

            Assignee:
            Joe Darcy
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: