< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/Element.java

Print this page

        

@@ -61,19 +61,24 @@
  * @since 1.6
  */
 public interface Element extends javax.lang.model.AnnotatedConstruct {
     /**
      * Returns the type defined by this element.
-     * @return the type defined by this element
+     *
+     * <p> A generic element defines a family of types, not just one.
+     * If this is a generic element, a <i>prototypical</i> type is
+     * returned.  This is the element's invocation on the
+     * type variables corresponding to its own formal type parameters.
+     * For example,
+     * for the generic class element {@code C<N extends Number>},
+     * the parameterized type {@code C<N>} is returned.
+     * The {@link Types} utility interface has more general methods
+     * for obtaining the full range of types defined by an element.
      *
      * @see Types
-     * @see ExecutableElement#asType
-     * @see ModuleElement#asType
-     * @see PackageElement#asType
-     * @see TypeElement#asType
-     * @see TypeParameterElement#asType
-     * @see VariableElement#asType
+     *
+     * @return the type defined by this element
      */
     TypeMirror asType();
 
     /**
      * Returns the {@code kind} of this element.
< prev index next >