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

Tree API: Tree.Kind should have mapping to interface

XMLWordPrintable

    • b83
    • generic
    • generic
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: