javax.lang.model should provide utility predicates for ModuleElements

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      It should be possible to determine if a module element is for an unnamed module, or for an automatic module. This information is available within the java implementation, but should be exposed to clients via the public API.

      One possible solution that is in line with similar existing methods would be to provide the following methods:

      boolean Elements.isUnnamedModule(ModuleElement)
      boolean Elements.isAutomaticModule(ModuleElement)

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

              Created:
              Updated:
              Resolved: