OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:typeVariable
(Results
1 - 25
of
160
) sorted by null
1
2
3
4
5
6
7
/external/guava/guava/src/com/google/common/reflect/
TypeParameter.java
24
import java.lang.reflect.
TypeVariable
;
44
final
TypeVariable
<?>
typeVariable
;
48
checkArgument(type instanceof
TypeVariable
, "%s should be a type variable.", type);
49
this.
typeVariable
= (
TypeVariable
<?>) type;
53
return
typeVariable
.hashCode();
59
return
typeVariable
.equals(that.
typeVariable
);
65
return
typeVariable
.toString()
[
all
...]
Types.java
43
import java.lang.reflect.
TypeVariable
;
151
* Returns a new {@link
TypeVariable
} that belongs to {@code declaration} with
154
static <D extends GenericDeclaration>
TypeVariable
<D> newArtificialTypeVariable(
193
@Override void visitTypeVariable(
TypeVariable
<?> t) {
324
private static <D extends GenericDeclaration>
TypeVariable
<D> newTypeVariableImpl(
329
TypeVariable
<D>
typeVariable
= Reflection.newProxy(
330
TypeVariable
.class, new TypeVariableInvocationHandler(typeVariableImpl));
331
return
typeVariable
;
337
* <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link
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
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
...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/
AnnotationTypeUtil.java
28
import javax.lang.model.type.
TypeVariable
;
81
final
TypeVariable
typeVariable
= (
TypeVariable
) typeMirror;
82
final String name =
typeVariable
.toString();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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
assertEquals("T",
typeVariable
.toString());
39
assertEquals("T",
typeVariable
.getTypeName());
40
Type[] bounds =
typeVariable
.getBounds();
51
TypeVariable
<Method>[] typeParameters = method.getTypeParameters()
[
all
...]
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
GenericMetadataSupport.java
63
protected Map<
TypeVariable
<?>, Type> contextualActualTypeParameters = new HashMap<
TypeVariable
<?>, Type>();
98
if (type instanceof
TypeVariable
) {
100
* If type is a
TypeVariable
, then it is needed to gather data elsewhere. Usually TypeVariables are declared
113
TypeVariable
<?>[] typeParameters = ((Class<?>) parameterizedType.getRawType()).getTypeParameters();
116
TypeVariable
<?> typeParameter = typeParameters[i];
128
protected void registerTypeParametersOn(
TypeVariable
<?>[] typeParameters) {
129
for (
TypeVariable
<?> type : typeParameters) {
134
private void registerTypeVariableIfNotPresent(
TypeVariable
<?>
typeVariable
) {
[
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();
/prebuilts/tools/common/m2/repository/com/jakewharton/butterknife/7.0.1/
butterknife-7.0.1.jar
/prebuilts/tools/common/m2/repository/com/jakewharton/butterknife-compiler/8.4.0/
butterknife-compiler-8.4.0.jar
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.2.0/
javapoet-1.2.0.jar
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.7.0/
javapoet-1.7.0.jar
/prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.8.0/
javapoet-1.8.0.jar
/external/mockito/lib/
byte-buddy-1.6.9.jar
/prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.6.5/
byte-buddy-1.6.5.jar
/prebuilts/tools/common/m2/repository/net/bytebuddy/byte-buddy/1.4.33/
byte-buddy-1.4.33.jar
/prebuilts/tools/common/m2/repository/nl/jqno/equalsverifier/equalsverifier/2.1.5/
equalsverifier-2.1.5.jar
/prebuilts/tools/common/m2/repository/com/squareup/retrofit2/retrofit/2.1.0/
retrofit-2.1.0.jar
/prebuilts/tools/common/m2/repository/com/squareup/dagger/dagger-compiler/1.2.2/
dagger-compiler-1.2.2.jar
/prebuilts/devtools/tools/lib/
ecj-4.6.1.jar
ecj-4.4.jar
/prebuilts/tools/common/m2/repository/org/eclipse/jdt/core/compiler/ecj/4.4.2/
ecj-4.4.2.jar
/prebuilts/tools/common/m2/repository/org/eclipse/jdt/core/compiler/ecj/4.6.1/
ecj-4.6.1.jar
Completed in 403 milliseconds
1
2
3
4
5
6
7