Helper method to return enclosed element with a given simple name

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 6, 7
    • Component/s: 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.

            Assignee:
            Jan Lahoda
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: