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

Tree API: Tree.Kind should have mapping to interface

    Details

    • Subcomponent:
    • Resolved In Build:
      b83
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The enum com.sun.source.tree.Tree.Kind should have a method
      like this:

      public Class<? extends Tree> asInterface();

      Conversely, a method like this might also be convenient:

      public static Tree.Kind asKind(Class<? extends Tree> clz);

      This should also be considered for JSR 269.

      See:

      http://forums.java.net/jive/thread.jspa?forumID=23&threadID=1779

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                ahe Peter Ahe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: