Merge git+ssh://davetron5000@repo.or.cz/srv/git/vimdoclet
[vimdoclet.git] / sample / java.lang.reflect.TypeVariable.txt
blob30c7a5ded933ba63a132f676b5bb9d8f897b69d9
1 *java.lang.reflect.TypeVariable* *TypeVariable* TypeVariable is the common super
3 public interface interface TypeVariable
5   implements |java.lang.reflect.Type|
7 |java.lang.reflect.TypeVariable_Description|
8 |java.lang.reflect.TypeVariable_Fields|
9 |java.lang.reflect.TypeVariable_Constructors|
10 |java.lang.reflect.TypeVariable_Methods|
12 ================================================================================
14 *java.lang.reflect.TypeVariable_Methods*
15 |java.lang.reflect.TypeVariable.getBounds()|Returns an array of Type objects re
16 |java.lang.reflect.TypeVariable.getGenericDeclaration()|Returns the GenericDecl
17 |java.lang.reflect.TypeVariable.getName()|Returns the name of this type variabl
19 *java.lang.reflect.TypeVariable_Description*
21 TypeVariable is the common superinterface for type variables of kinds. A type 
22 variable is created the first time it is needed by a reflective method, as 
23 specified in this package. If a type variable t is referenced by a type (i.e, 
24 class, interface or annotation type) T, and T is declared by the nth enclosing 
25 class of T (see JLS 8.1.2), then the creation of t requires the resolution (see 
26 JVMS 5) of the ith enclosing class of T, for i = 0 to n, inclusive. Creating a 
27 type variable must not cause the creation of its bounds. Repeated creation of a 
28 type variable has no effect. 
30 Multiple objects may be instantiated at run-time to represent a given type 
31 variable. Even though a type variable is created only once, this does not imply 
32 any requirement to cache instances representing the type variable. However, all 
33 instances representing a type variable must be equal() to each other. As a 
34 consequence, users of type variables must not rely on the identity of instances 
35 of classes implementing this interface. 
37 The type parameter D represents the type of generic declaration that declared 
38 the underlying type variable. 
41 *java.lang.reflect.TypeVariable.getBounds()*
43 public |java.lang.reflect.Type| getBounds()
45 Returns an array of Type objects representing the upper bound(s) of this type 
46 variable. Note that if no upper bound is explicitly declared, the upper bound 
47 is Object. 
49 For each upper bound B: if B is a parameterized type or a type variable, it is 
50 created, (see ParameterizedType(|java.lang.reflect.ParameterizedType|) for the 
51 details of the creation process for parameterized types). Otherwise, B is 
52 resolved. 
55     Returns: an array of Types representing the upper bound(s) of this type variable 
56 *java.lang.reflect.TypeVariable.getGenericDeclaration()*
58 public |java.lang.reflect.GenericDeclaration| getGenericDeclaration()
60 Returns the GenericDeclaration object representing the generic declaration 
61 declared this type variable. 
64     Returns: the generic declaration declared for this type variable. 
65 *java.lang.reflect.TypeVariable.getName()*
67 public |java.lang.String| getName()
69 Returns the name of this type variable, as it occurs in the source code. 
72     Returns: the name of this type variable, as it appears in the source code