OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:typeVariable
(Results
1 - 13
of
13
) sorted by null
/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
23
import java.lang.reflect.
TypeVariable
;
67
TypeVariable
<Class>
typeVariable
= getTypeParameter(clazz);
73
assertEquals(
typeVariable
, parameterType);
78
TypeVariable
<Class>
typeVariable
= getTypeParameter(clazz);
84
assertNotEquals(
typeVariable
, parameterType);
85
assertInstanceOf(
TypeVariable
.class, parameterType);
86
assertEquals(method, ((
TypeVariable
)parameterType).getGenericDeclaration());
91
TypeVariable
<Class> typeVariable = getTypeParameter(clazz)
[
all
...]
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
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
...]
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
...]
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
ReflectionUtils.java
23
import java.lang.reflect.
TypeVariable
;
101
//
TypeVariable
102
TypeVariable
<?>
typeVariable
= (
TypeVariable
<?>) type;
103
return
typeVariable
.getName();
/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
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.apache.jasper_5.5.17.v201004212143.jar
org.eclipse.jdt.core_3.6.2.v_A76_R36x.jar
/prebuilts/tools/common/lombok-ast/
lombok-ast-0.2.jar
Completed in 844 milliseconds