src/share/classes/com/sun/mirror/type/TypeVariable.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.type;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 
  31 
  32 /**
  33  * Represents a type variable.
  34  * A type variable is declared by a
  35  * {@linkplain TypeParameterDeclaration type parameter} of a
  36  * type, method, or constructor.
  37  *





  38  * @author Joe Darcy
  39  * @author Scott Seligman
  40  * @since 1.5
  41  */
  42 

  43 public interface TypeVariable extends ReferenceType {
  44 
  45     /**
  46      * Returns the type parameter that declared this type variable.
  47      *
  48      * @return the type parameter that declared this type variable
  49      */
  50     TypeParameterDeclaration getDeclaration();
  51 }


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.type;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 
  31 
  32 /**
  33  * Represents a type variable.
  34  * A type variable is declared by a
  35  * {@linkplain TypeParameterDeclaration type parameter} of a
  36  * type, method, or constructor.
  37  *
  38  * @deprecated All components of this API have been superseded by the
  39  * standardized annotation processing API.  The replacement for the
  40  * functionality of this interface is {@link
  41  * javax.lang.model.type.TypeVariable}.
  42  *
  43  * @author Joe Darcy
  44  * @author Scott Seligman
  45  * @since 1.5
  46  */
  47 @Deprecated
  48 @SuppressWarnings("deprecation")
  49 public interface TypeVariable extends ReferenceType {
  50 
  51     /**
  52      * Returns the type parameter that declared this type variable.
  53      *
  54      * @return the type parameter that declared this type variable
  55      */
  56     TypeParameterDeclaration getDeclaration();
  57 }