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
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
- relates to
-
JDK-6340519 Tree API: open issues
-
- Closed
-
-
JDK-6406771 Tree API clients need access to the compiler's line number table
-
- Closed
-