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

Provide mixin interfaces for getQualifiedName and getTypeParameters

XMLWordPrintable

    • b50
    • generic
    • generic
    • Not verified

      The JSR 269 language model for elements is very flat, a root Element interface and five direct subinterfaces. However, certain children interfaces have a method in common and it could be useful to be able to group objects based on the presence of those methods. For example, TypeElements and PackageElements have a getQualifiedName method and TypeElements and ExecutableElements have a getTypeParameters method. To allow such grouping, "QualifiedNamable extends Element" and a "Parameterizable extends Element" interfaces could be added and implemented by the modeling interfaces in question.

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: