6570730: com.sun.source.tree.ModifiersTree.getFlags() should return class type

Reviewed-by: mcimadamore
This commit is contained in:
Jonathan Gibbons 2010-08-27 17:21:17 -07:00
parent 99d83d8d85
commit fba51e328b
4 changed files with 139 additions and 3 deletions

View file

@ -94,7 +94,7 @@ public interface Tree {
CATCH(CatchTree.class),
/**
* Used for instances of {@link ClassTree}.
* Used for instances of {@link ClassTree} representing classes.
*/
CLASS(ClassTree.class),
@ -557,6 +557,21 @@ public interface Tree {
*/
ERRONEOUS(ErroneousTree.class),
/**
* Used for instances of {@link ClassTree} representing interfaces.
*/
INTERFACE(ClassTree.class),
/**
* Used for instances of {@link ClassTree} representing enums.
*/
ENUM(ClassTree.class),
/**
* Used for instances of {@link ClassTree} representing annotation types.
*/
ANNOTATION_TYPE(ClassTree.class),
/**
* An implementation-reserved node. This is the not the node
* you are looking for.