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

Helper method to return enclosed element with a given simple name

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6, 7
    • core-libs
    • None

      From jjg, "It is somewhat surprising, to me, that there is no method on Element or TypeElement to find the enclosed elements with a given simple name. Yes, you can iterate through all the enclosed elements but that imposes an unnecessary extra cost, when the members are sorted by name internally, at least within javac."

      Given the frequency of this operation, it is reasonable to have a helper method to take advantage of implementation-specific features, like elements sorted by name.

            jlahoda Jan Lahoda
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: