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

javax.lang.model should provide utility predicates for ModuleElements

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • None
    • 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)

            darcy Joe Darcy
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: