diff options
Diffstat (limited to 'javax/lang/model/element/TypeElement.java')
-rw-r--r-- | javax/lang/model/element/TypeElement.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/javax/lang/model/element/TypeElement.java b/javax/lang/model/element/TypeElement.java index 6cc0c6805..c6b76197e 100644 --- a/javax/lang/model/element/TypeElement.java +++ b/javax/lang/model/element/TypeElement.java @@ -37,6 +37,10 @@ exception statement from your version. */ package javax.lang.model.element; +import java.util.List; + +import javax.lang.model.type.TypeMirror; + /** * <p>Represents a class or interface program element. * Note that enumerations are a kind of class and annotations @@ -63,4 +67,36 @@ package javax.lang.model.element; public interface TypeElement extends Element { + + /** + * Returns the interface types directly implemented by this + * class or extended by this interface. If there are none, + * an empty list is returned. + * + * @return the interface types directly implemented by this + * class or extended by this interface. + */ + List<? extends TypeMirror> getInterfaces(); + + /** + * Returns the direct superclass of this element. If this + * is an interface or the class {@link Object}, then a + * instance of {@link javax.lang.model.type.NoType} with + * the kind {@link javax.lang.model.type.TypeKind#NONE} is + * returned. + * + * @return the direct superclass or {@code NoType} if there + * isn't one. + */ + TypeMirror getSuperclass(); + + /** + * Returns the formal type parameters of this element in the + * order they were declared. If there are none, then an empty + * list is returned. + * + * @return the formal type parameters. + */ + List<? extends TypeParameterElement> getTypeParameters(); + } |