OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:typeVariable
(Results
1 - 9
of
9
) sorted by null
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
TypeVariableTest.java
23
import java.lang.reflect.
TypeVariable
;
33
TypeVariable
[] typeParameters = clazz.getTypeParameters();
35
TypeVariable
<Class>
typeVariable
= typeParameters[0];
36
assertEquals(clazz,
typeVariable
.getGenericDeclaration());
37
assertEquals("T",
typeVariable
.getName());
38
Type[] bounds =
typeVariable
.getBounds();
49
TypeVariable
<Method>[] typeParameters = method.getTypeParameters();
51
TypeVariable
<Method>
typeVariable
= typeParameters[0]
[
all
...]
GenericReflectionTestsBase.java
20
import java.lang.reflect.
TypeVariable
;
33
public
TypeVariable
<Method> getTypeParameter(Method method) {
34
TypeVariable
<Method>[] typeParameters = method.getTypeParameters();
36
TypeVariable
<Method> typeParameter = typeParameters[0];
48
public
TypeVariable
<Class> getTypeParameter(Class<?> clazz) {
49
TypeVariable
[] typeParameters = clazz.getTypeParameters();
51
TypeVariable
<Class>
typeVariable
= typeParameters[0];
52
assertEquals(clazz,
typeVariable
.getGenericDeclaration());
53
assertEquals("T",
typeVariable
.getName())
[
all
...]
BoundedGenericMethodsTests.java
21
import java.lang.reflect.
TypeVariable
;
51
TypeVariable
<Method> typeParameter = getTypeParameter(method);
69
TypeVariable
<Method> typeParameter = getTypeParameter(method);
73
assertTrue(genericParameterType instanceof
TypeVariable
);
74
TypeVariable
<?>
typeVariable
= (
TypeVariable
<?>) genericParameterType;
75
assertEquals(method,
typeVariable
.getGenericDeclaration());
77
Type[] paramBounds =
typeVariable
.getBounds();
87
assertTrue(genericReturnType instanceof
TypeVariable
);
[
all
...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
GenericExceptionsTest.java
23
import java.lang.reflect.
TypeVariable
;
56
TypeVariable
typeVariable
= getOnlyValue(constructor.getGenericExceptionTypes(),
57
TypeVariable
.class);
58
assertEquals("T",
typeVariable
.getName());
59
assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(
typeVariable
.getBounds()));
64
TypeVariable
typeVariable
= getOnlyValue(method.getGenericExceptionTypes(),
65
TypeVariable
.class);
66
assertEquals("T",
typeVariable
.getName())
[
all
...]
OldGenericTypesTest.java
24
import java.lang.reflect.
TypeVariable
;
68
TypeVariable
<Class>
typeVariable
= getTypeParameter(clazz);
74
assertEquals(
typeVariable
, parameterType);
79
TypeVariable
<Class>
typeVariable
= getTypeParameter(clazz);
85
assertNotEquals(
typeVariable
, parameterType);
86
assertInstanceOf(
TypeVariable
.class, parameterType);
87
assertEquals(method, ((
TypeVariable
)parameterType).getGenericDeclaration());
92
TypeVariable
<Class> typeVariable = getTypeParameter(clazz)
[
all
...]
/cts/tools/signature-tools/src/signature/converter/dex/
GenericSignatureParser.java
304
SigTypeVariableDefinition
typeVariable
= factory.getTypeVariable(name,
320
typeVariable
.setUpperBounds(bounds);
321
return
typeVariable
;
344
for (ITypeVariableDefinition
typeVariable
: declaration
346
if (variableName.equals(
typeVariable
.getName())) {
/cts/tools/signature-tools/src/signature/converter/doclet/
DocletToSigConverter.java
81
import com.sun.javadoc.
TypeVariable
;
205
for (
TypeVariable
typeVariable
: classDoc.typeParameters()) {
208
typeVariable
)).getTypeVariableDefinition());
367
TypeVariable
tv = type.asTypeVariable();
389
SigTypeVariableDefinition
typeVariable
= pool.getTypeVariable(name,
398
currentTypeVariableDefinition =
typeVariable
;
406
typeVariable
.setUpperBounds(upperBounds);
408
return new SigTypeVariableReference(
typeVariable
);
462
for (
TypeVariable
typeParameter : member.typeParameters()) {
[
all
...]
/cts/tools/signature-tools/test/signature/converter/
ConvertClassTest.java
573
ITypeVariableDefinition
typeVariable
= typeParameters.get(0);
574
List<ITypeReference> upperBounds =
typeVariable
.getUpperBounds();
587
assertSame(
typeVariable
, variable.getTypeVariableDefinition());
[
all
...]
/prebuilt/common/ecj/
ecj.jar
Completed in 139 milliseconds