Home
last modified time | relevance | path

Searched refs:getTypeParameters (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/
DJavaParserTypeParameterResolutionTest.java69 for (ResolvedTypeParameterDeclaration tp : methodDeclaration.getTypeParameters()) { in declaredOnMethodPositiveCase()
87 assertEquals(2, typeDeclaration.getTypeParameters().size()); in declaredOnMethodNegativeCase()
88 assertTrue(typeDeclaration.getTypeParameters().get(0) instanceof JavaParserTypeParameter); in declaredOnMethodNegativeCase()
89 assertEquals("A", typeDeclaration.getTypeParameters().get(0).getName()); in declaredOnMethodNegativeCase()
90 assertEquals(false, typeDeclaration.getTypeParameters().get(0).declaredOnMethod()); in declaredOnMethodNegativeCase()
91 assertEquals(true, typeDeclaration.getTypeParameters().get(0).declaredOnType()); in declaredOnMethodNegativeCase()
92 assertTrue(typeDeclaration.getTypeParameters().get(1) instanceof JavaParserTypeParameter); in declaredOnMethodNegativeCase()
93 assertEquals("B", typeDeclaration.getTypeParameters().get(1).getName()); in declaredOnMethodNegativeCase()
94 assertEquals(false, typeDeclaration.getTypeParameters().get(1).declaredOnMethod()); in declaredOnMethodNegativeCase()
95 assertEquals(true, typeDeclaration.getTypeParameters().get(1).declaredOnType()); in declaredOnMethodNegativeCase()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/type/
DTypeBindings.java100 TypeVariable<?>[] vars = erasedType.getTypeParameters(); in create()
153 TypeVariable<?>[] vars = erasedType.getTypeParameters(); in createIfNeeded()
173 TypeVariable<?>[] vars = erasedType.getTypeParameters(); in createIfNeeded()
275 public List<JavaType> getTypeParameters() in getTypeParameters() method in TypeBindings
384 …private final static TypeVariable<?>[] VARS_ABSTRACT_LIST = AbstractList.class.getTypeParameters();
385 … private final static TypeVariable<?>[] VARS_COLLECTION = Collection.class.getTypeParameters();
386 private final static TypeVariable<?>[] VARS_ITERABLE = Iterable.class.getTypeParameters();
387 private final static TypeVariable<?>[] VARS_LIST = List.class.getTypeParameters();
388 … private final static TypeVariable<?>[] VARS_ARRAY_LIST = ArrayList.class.getTypeParameters();
390 private final static TypeVariable<?>[] VARS_MAP = Map.class.getTypeParameters();
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithTypeParameters.java39 NodeList<TypeParameter> getTypeParameters(); in getTypeParameters() method
42 return getTypeParameters().get(i); in getTypeParameter()
47 getTypeParameters().set(i, typeParameter); in setTypeParameter()
53 getTypeParameters().add(typeParameter); in addTypeParameter()
67 return getTypeParameters().size() > 0; in isGeneric()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionMethodResolutionLogic.txt25 Line 76) scopeType.getTypeParameters().size() ==> java.util.List.size()
26 …Line 76) scopeType.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
27 Line 78) scopeType.getTypeParameters().isEmpty() ==> java.util.List.isEmpty()
28 …Line 78) scopeType.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
29 Line 81) scopeType.getTypeParameters().size() ==> java.util.List.size()
30 …Line 81) scopeType.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
58 for (TypeParameterDeclaration tp : scopeType.getTypeParameters()) {
66 for (TypeParameterDeclaration tp : scopeType.getTypeParameters()) {
73 …ine 117) scopeType.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
79 Line 131) typeParametrizable.getTypeParameters().size() ==> java.util.List.size()
[all …]
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionConstructorDeclaration.txt13 …Line 75) Arrays.stream(constructor.getTypeParameters()).map((refTp) -> new ReflectionTypeParameter…
14 …Line 75) Arrays.stream(constructor.getTypeParameters()).map((refTp) -> new ReflectionTypeParameter…
15 Line 75) Arrays.stream(constructor.getTypeParameters()) ==> java.util.Arrays.stream(T[])
16 Line 75) constructor.getTypeParameters() ==> java.lang.reflect.Constructor.getTypeParameters()
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserConstructorDeclaration.txt11 …Line 80) this.wrappedNode.getTypeParameters().stream().map((astTp) -> new JavaParserTypeParameter(…
12 …Line 80) this.wrappedNode.getTypeParameters().stream().map((astTp) -> new JavaParserTypeParameter(…
13 Line 80) this.wrappedNode.getTypeParameters().stream() ==> java.util.Collection.stream()
14 …Line 80) this.wrappedNode.getTypeParameters() ==> com.github.javaparser.ast.body.CallableDeclarati…
Dcom_github_javaparser_symbolsolver_reflectionmodel_MyObjectProvider.txt2 Line 30) typeDeclaration.getTypeParameters().isEmpty() ==> java.util.List.isEmpty()
3 …0) typeDeclaration.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
Dcom_github_javaparser_symbolsolver_javassistmodel_JavassistConstructorDeclaration.txt16 …Line 112) Arrays.stream(methodSignature.getTypeParameters()).map((jasTp) -> new JavassistTypeParam…
17 …Line 112) Arrays.stream(methodSignature.getTypeParameters()).map((jasTp) -> new JavassistTypeParam…
18 Line 112) Arrays.stream(methodSignature.getTypeParameters()) ==> java.util.Arrays.stream(T[])
19 …Line 112) methodSignature.getTypeParameters() ==> javassist.bytecode.SignatureAttribute.MethodSign…
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionMethodDeclaration.txt18 …Line 108) Arrays.stream(method.getTypeParameters()).map((refTp) -> new ReflectionTypeParameter(ref…
19 …Line 108) Arrays.stream(method.getTypeParameters()).map((refTp) -> new ReflectionTypeParameter(ref…
20 Line 108) Arrays.stream(method.getTypeParameters()) ==> java.util.Arrays.stream(T[])
21 Line 108) method.getTypeParameters() ==> java.lang.reflect.Method.getTypeParameters()
Dcom_github_javaparser_symbolsolver_javassistmodel_JavassistMethodDeclaration.txt29 …Line 155) Arrays.stream(methodSignature.getTypeParameters()).map((jasTp) -> new JavassistTypeParam…
30 …Line 155) Arrays.stream(methodSignature.getTypeParameters()).map((jasTp) -> new JavassistTypeParam…
31 Line 155) Arrays.stream(methodSignature.getTypeParameters()) ==> java.util.Arrays.stream(T[])
32 …Line 155) methodSignature.getTypeParameters() ==> javassist.bytecode.SignatureAttribute.MethodSign…
Dcom_github_javaparser_symbolsolver_declarations_common_MethodDeclarationCommonLogic.txt27 …Line 88) methodDeclaration.getTypeParameters().stream().filter(tp -> tp.getName().equals(name)).ma…
28 …Line 88) methodDeclaration.getTypeParameters().stream().filter(tp -> tp.getName().equals(name)).ma…
29 …Line 88) methodDeclaration.getTypeParameters().stream().filter(tp -> tp.getName().equals(name)) ==…
30 Line 88) methodDeclaration.getTypeParameters().stream() ==> java.util.Collection.stream()
31 … methodDeclaration.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_JavaParserMethodDeclaration.txt22 …Line 123) this.wrappedNode.getTypeParameters().stream().map((astTp) -> new JavaParserTypeParameter…
23 …Line 123) this.wrappedNode.getTypeParameters().stream().map((astTp) -> new JavaParserTypeParameter…
24 Line 123) this.wrappedNode.getTypeParameters().stream() ==> java.util.Collection.stream()
25 …Line 123) this.wrappedNode.getTypeParameters() ==> com.github.javaparser.ast.body.CallableDeclarat…
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_AbstractMethodLikeDeclarationContext.txt7 …Line 48) wrappedNode.getTypeParameters() ==> com.github.javaparser.ast.nodeTypes.NodeWithTypeParam…
19 …Line 73) wrappedNode.getTypeParameters() ==> com.github.javaparser.ast.nodeTypes.NodeWithTypeParam…
20 …Line 74) wrappedNode.getTypeParameters() ==> com.github.javaparser.ast.nodeTypes.NodeWithTypeParam…
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_typesystem_ReferenceType.txt5 Line 63) typeDeclaration.getTypeParameters().size() ==> java.util.List.size()
6 …3) typeDeclaration.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
7 …many as defined in the declaration (%d). Found %d", typeDeclaration.getTypeParameters().size(), ty…
8 Line 65) typeDeclaration.getTypeParameters().size() ==> java.util.List.size()
9 …5) typeDeclaration.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
12 …Line 69) typeParametersMapBuilder.setValue(typeDeclaration.getTypeParameters().get(i), typeParamet…
13 Line 69) typeDeclaration.getTypeParameters().get(i) ==> java.util.List.get(int)
14 …9) typeDeclaration.getTypeParameters() ==> com.github.javaparser.symbolsolver.model.declarations.T…
31 …Line 139) sb.append(String.join(", ", typeDeclaration.getTypeParameters().stream().map(tp -> typeP…
32 …Line 139) String.join(", ", typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersM…
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceType.java63 …if (typeParameters.size() > 0 && typeParameters.size() != typeDeclaration.getTypeParameters().size… in ReferenceType()
65 typeDeclaration.getTypeParameters().size(), typeParameters.size())); in ReferenceType()
69 …typeParametersMapBuilder.setValue(typeDeclaration.getTypeParameters().get(i), typeParameters.get(i… in ReferenceType()
139 sb.append(String.join(", ", typeDeclaration.getTypeParameters().stream() in describe()
268 for (TypeParameterDeclaration tp : typeDeclaration.getTypeParameters()) { in getGenericParameterByName()
281 …ParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().m… in typeParametersValues()
291 for (int i = 0; i < typeDeclaration.getTypeParameters().size(); i++) { in getTypeParametersMap()
292 …typeParametersMap.add(new Tuple2<>(typeDeclaration.getTypeParameters().get(0), typeParametersValue… in getTypeParametersMap()
354 if (!typeDeclaration.getTypeParameters().isEmpty()) { in isRawType()
394 return create(typeDeclaration, typeDeclaration.getTypeParameters().stream() in create()
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedReferenceType.java71 …if (typeArguments.size() > 0 && typeArguments.size() != typeDeclaration.getTypeParameters().size()… in ResolvedReferenceType()
74 typeDeclaration.getTypeParameters().size(), typeArguments.size())); in ResolvedReferenceType()
78 …typeParametersMapBuilder.setValue(typeDeclaration.getTypeParameters().get(i), typeArguments.get(i)… in ResolvedReferenceType()
147 sb.append(String.join(", ", typeDeclaration.getTypeParameters().stream() in describe()
256 for (ResolvedTypeParameterDeclaration tp : typeDeclaration.getTypeParameters()) { in getGenericParameterByName()
269 …ParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().m… in typeParametersValues()
279 for (int i = 0; i < typeDeclaration.getTypeParameters().size(); i++) { in getTypeParametersMap()
280 …typeParametersMap.add(new Pair<>(typeDeclaration.getTypeParameters().get(i), typeParametersValues(… in getTypeParametersMap()
347 if (!typeDeclaration.getTypeParameters().isEmpty()) { in isRawType()
420 return create(typeDeclaration, typeDeclaration.getTypeParameters().stream() in create()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java76 if (typeParameterValues.size() != scopeType.getTypeParameters().size()) { in solveMethodAsUsage()
78 if (!scopeType.getTypeParameters().isEmpty()) { in solveMethodAsUsage()
81 for (int i = 0; i < scopeType.getTypeParameters().size(); i++) { in solveMethodAsUsage()
117 for (TypeParameterDeclaration tp : scopeType.getTypeParameters()) { in solveMethodAsUsage()
131 if (typeParameterValues.size() == typeParametrizable.getTypeParameters().size()){ in replaceParams()
132 for (TypeParameterDeclaration tp : typeParametrizable.getTypeParameters()) { in replaceParams()
138 for (TypeParameterDeclaration methodTypeParameter : methodDeclaration.getTypeParameters()) { in replaceParams()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java76 if (typeParameterValues.size() != scopeType.getTypeParameters().size()) { in solveMethodAsUsage()
78 if (!scopeType.getTypeParameters().isEmpty()) { in solveMethodAsUsage()
81 for (int i = 0; i < scopeType.getTypeParameters().size(); i++) { in solveMethodAsUsage()
117 for (ResolvedTypeParameterDeclaration tp : scopeType.getTypeParameters()) { in solveMethodAsUsage()
131 if (typeParameterValues.size() == typeParametrizable.getTypeParameters().size()){ in replaceParams()
132 for (ResolvedTypeParameterDeclaration tp : typeParametrizable.getTypeParameters()) { in replaceParams()
138 …or (ResolvedTypeParameterDeclaration methodTypeParameter : methodDeclaration.getTypeParameters()) { in replaceParams()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenResolutionTest.java145 Type fType = Supplier.class.getTypeParameters()[0];
150 Type predicateParameterType = Predicate.class.getTypeParameters()[0];
242 .resolveType(Iterable.class.getTypeParameters()[0])
247 .resolveType(Iterable.class.getTypeParameters()[0])
264 Type keyType = Map.class.getTypeParameters()[0];
265 Type valueType = Map.class.getTypeParameters()[1];
283 assertEquals(GenericArray.class.getTypeParameters()[0], genericArray.t);
485 .resolveType(List.class.getTypeParameters()[0])
511 TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
518 TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
[all …]
/external/guava/android/guava-tests/test/com/google/common/reflect/
DTypeTokenResolutionTest.java145 Type fType = Supplier.class.getTypeParameters()[0];
150 Type predicateParameterType = Predicate.class.getTypeParameters()[0];
242 .resolveType(Iterable.class.getTypeParameters()[0])
247 .resolveType(Iterable.class.getTypeParameters()[0])
264 Type keyType = Map.class.getTypeParameters()[0];
265 Type valueType = Map.class.getTypeParameters()[1];
283 assertEquals(GenericArray.class.getTypeParameters()[0], genericArray.t);
485 .resolveType(List.class.getTypeParameters()[0])
511 TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
518 TypeToken.of(returnType).resolveType(WithFalseRecursiveType.class.getTypeParameters()[0]);
[all …]
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DProviderChecker.java38 if (interfaceType.getTypeParameters().length == 1) { in checkInterface()
39 String returnTypeName = interfaceType.getTypeParameters()[0].getName(); in checkInterface()
55 interfaceType.getTypeParameters().length == 0, in checkInterface()
58 Arrays.asList(interfaceType.getTypeParameters())); in checkInterface()
/external/guice/core/test/com/google/inject/
DTypeLiteralTest.java157 HasTypeParameters.class.getTypeParameters(); in testTypeVariableWithNoBound()
167 assertEqualsBothWays(aTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[0])); in testTypeVariableWithNoBound()
172 HasTypeParameters.class.getTypeParameters(); in testTypeVariablesWithSingleBound()
182 assertEqualsBothWays(cTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[2])); in testTypeVariablesWithSingleBound()
187 HasTypeParameters.class.getTypeParameters(); in testTypeVariableWithMultipleBounds()
199 assertEqualsBothWays(bTl, TypeLiteral.get(HasTypeParameters.class.getTypeParameters()[1])); in testTypeVariableWithMultipleBounds()
/external/guava/android/guava/src/com/google/common/reflect/
DInvokable.java224 public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters() method in Invokable.MethodInvokable
225 return method.getTypeParameters(); in getTypeParameters()
268 TypeVariable<?>[] typeParams = declaringClass.getTypeParameters(); in getGenericReturnType()
310 public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters() method in Invokable.ConstructorInvokable
311 TypeVariable<?>[] declaredByClass = getDeclaringClass().getTypeParameters(); in getTypeParameters()
312 TypeVariable<?>[] declaredByConstructor = constructor.getTypeParameters(); in getTypeParameters()
/external/guava/guava/src/com/google/common/reflect/
DInvokable.java242 public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters() method in Invokable.MethodInvokable
243 return method.getTypeParameters(); in getTypeParameters()
286 TypeVariable<?>[] typeParams = declaringClass.getTypeParameters(); in getGenericReturnType()
338 public final TypeVariable<?>[] getTypeParameters() { in getTypeParameters() method in Invokable.ConstructorInvokable
339 TypeVariable<?>[] declaredByClass = getDeclaringClass().getTypeParameters(); in getTypeParameters()
340 TypeVariable<?>[] declaredByConstructor = constructor.getTypeParameters(); in getTypeParameters()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/declarations/
DResolvedTypeParametrizable.java37 List<ResolvedTypeParameterDeclaration> getTypeParameters(); in getTypeParameters() method
46 return !getTypeParameters().isEmpty(); in isGeneric()

12345678910>>...12