KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > reflect > GenericArrayType


1 /*
2  * @(#)GenericArrayType.java 1.3 04/01/12
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang.reflect;
9
10 /**
11  * <tt>GenericArrayType</tt> represents an array type whose component
12  * type is either a parameterized type or a type variable.
13  * @since 1.5
14  */

15 public interface GenericArrayType extends Type JavaDoc {
16     /**
17      * Returns a <tt>Type</tt> object representing the component type
18      * of this array. This method creates the component type of the
19      * array. See the declaration of {@link
20      * java.lang.reflect.ParameterizedType ParameterizedType} for the
21      * semantics of the creation process for parameterized types and
22      * see {@link java.lang.reflect.TypeVariable TypeVariable} for the
23      * creation process for type variables.
24      *
25      * @return a <tt>Type</tt> object representing the component type
26      * of this array
27      * @throws TypeNotPresentException if the underlying array type's
28      * component type refers to a non-existent type declaration
29      * @throws MalformedParameterizedTypeException if the
30      * underlying array type's component type refers to a
31      * parameterized type that cannot be instantiated for any reason
32      */

33     Type JavaDoc getGenericComponentType();
34 }
35
36
Popular Tags