< prev index next >

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

Print this page

        

*** 62,82 **** */ public interface Element extends javax.lang.model.AnnotatedConstruct { /** * Returns 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 * * @return the type defined by this element */ TypeMirror asType(); --- 62,78 ---- */ public interface Element extends javax.lang.model.AnnotatedConstruct { /** * Returns the type defined by this 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();
< prev index next >