Home
last modified time | relevance | path

Searched refs:paramTypes (Results 1 – 25 of 40) sorted by relevance

12

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/
DMethodUsage.java42 private List<ResolvedType> paramTypes = new ArrayList<>(); field in MethodUsage
51 paramTypes.add(declaration.getParam(i).getType()); in MethodUsage()
60 List<ResolvedType> paramTypes, ResolvedType returnType) { in MethodUsage() argument
61 this(declaration, paramTypes, returnType, declaration.getSpecifiedExceptions(), in MethodUsage()
65 …public MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedT… in MethodUsage() argument
67 … this(declaration, paramTypes, returnType, exceptionTypes, ResolvedTypeParametersMap.empty()); in MethodUsage()
70 …private MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, Resolved… in MethodUsage() argument
73 this.paramTypes = paramTypes; in MethodUsage()
83 ", paramTypes=" + paramTypes + in toString()
104 return paramTypes; in getParamTypes()
[all …]
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInvocationProfile.java9 public final String[] paramTypes; field in InvocationProfile
16 this.paramTypes = methodSignature.paramTypes; in InvocationProfile()
25 Class[] classes = new Class[paramTypes.length]; in getParamClasses()
26 for (int i = 0; i < paramTypes.length; i++) { in getParamClasses()
27 String paramType = paramTypes[i]; in getParamClasses()
66 if (!Arrays.equals(paramTypes, that.paramTypes)) return false; in equals()
76 result = 31 * result + (paramTypes != null ? Arrays.hashCode(paramTypes) : 0); in hashCode()
DMethodSignature.java9 public final String[] paramTypes; field in MethodSignature
12 …private MethodSignature(String className, String methodName, String[] paramTypes, String returnTyp… in MethodSignature() argument
15 this.paramTypes = paramTypes; in MethodSignature()
26 String[] paramTypes = new String[argumentTypes.length]; in parse() local
28 paramTypes[i] = argumentTypes[i].getClassName(); in parse()
31 return new MethodSignature(className, methodName, paramTypes, returnType); in parse()
36 return className + "." + methodName + "(" + Join.join(", ", (Object[]) paramTypes) + ")"; in toString()
DShadowWrangler.java202 Class<?>[] paramTypes = actualType.parameterArray(); in findShadowMethodHandle()
204 Method shadowMethod = pickShadowMethod(definingClass, name, paramTypes); in findShadowMethodHandle()
225 protected Method pickShadowMethod(Class<?> definingClass, String name, Class<?>[] paramTypes) {
238 Method method = findShadowMethod(definingClass, name, paramTypes, shadowInfo, shadowClass);
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_methods_MethodUsage.txt3 Line 44) paramTypes.add(declaration.getParam(i).getType()) ==> java.util.List.add(E)
10 Line 89) paramTypes.get(i) ==> java.util.List.get(int)
12 Line 109) paramTypes.size() ==> java.util.List.size()
13 Line 116) paramTypes.get(i) ==> java.util.List.get(int)
17 Line 128) paramTypes.size() ==> java.util.List.size()
18 Line 129) paramTypes.get(i) ==> java.util.List.get(int)
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithConstructors.java56 default Optional<ConstructorDeclaration> getConstructorByParameterTypes(String... paramTypes) { in getConstructorByParameterTypes() argument
57 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes()
67 … default Optional<ConstructorDeclaration> getConstructorByParameterTypes(Class<?>... paramTypes) { in getConstructorByParameterTypes() argument
68 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes()
DNodeWithMembers.java270 default List<MethodDeclaration> getMethodsByParameterTypes(String... paramTypes) { in getMethodsByParameterTypes() argument
272 .filter(m -> m.hasParametersOfType(paramTypes)) in getMethodsByParameterTypes()
283 default List<MethodDeclaration> getMethodsBySignature(String name, String... paramTypes) { in getMethodsBySignature() argument
285 .filter(m -> m.hasParametersOfType(paramTypes)) in getMethodsBySignature()
296 default List<MethodDeclaration> getMethodsByParameterTypes(Class<?>... paramTypes) { in getMethodsByParameterTypes() argument
298 .filter(m -> m.hasParametersOfType(paramTypes)) in getMethodsByParameterTypes()
DNodeWithParameters.java142 default boolean hasParametersOfType(String... paramTypes) { in hasParametersOfType() argument
146 .equals(Stream.of(paramTypes).collect(toSet())); in hasParametersOfType()
157 default boolean hasParametersOfType(Class<?>... paramTypes) { in hasParametersOfType() argument
160 .equals(Stream.of(paramTypes).map(Class::getSimpleName).collect(toSet())); in hasParametersOfType()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java342 private final List<String> paramTypes = new ArrayList<>(); field in SdkStore.MethodInfo
348 paramTypes.add(normalize(type)); in MethodInfo()
356 paramTypes.add("java.lang.Object"); in MethodInfo()
368 paramTypes.add(paramTypeWithoutGenerics); in MethodInfo()
384 return new MethodInfo(name, paramTypes.size()); in erase()
397 && Objects.equals(paramTypes, that.paramTypes); in equals()
402 return Objects.hash(name, paramTypes); in hashCode()
408 + ", paramTypes=" + paramTypes in toString()
/external/desugar/java/com/google/devtools/build/android/desugar/
DLambdaDesugaring.java496 private boolean attemptAllocationBeforeArgumentLoads(String internalName, Type[] paramTypes) { in attemptAllocationBeforeArgumentLoads() argument
497 checkArgument(paramTypes.length > 0, "Expected at least one param for %s", internalName); in attemptAllocationBeforeArgumentLoads()
501 for (int i = paramTypes.length - 1; 0 <= i; --i) { in attemptAllocationBeforeArgumentLoads()
508 ? getfield.desc.equals(paramTypes[i].getDescriptor()) in attemptAllocationBeforeArgumentLoads()
509 : paramTypes[i].getDescriptor().length() > 1, in attemptAllocationBeforeArgumentLoads()
511 paramTypes[i], in attemptAllocationBeforeArgumentLoads() local
523 paramTypes[i], in attemptAllocationBeforeArgumentLoads()
537 } else if (!isPushForType(insn, paramTypes[i])) { in attemptAllocationBeforeArgumentLoads()
545 paramTypes.length == 1, in attemptAllocationBeforeArgumentLoads()
547 paramTypes[i], in attemptAllocationBeforeArgumentLoads()
/external/testng/src/main/java/org/testng/reporters/
DTextReporter.java141 Object[] params, Class[] paramTypes) { in logResult() argument
149 if (params.length != paramTypes.length) { in logResult()
152 "expected " + paramTypes.length in logResult()
160 msg.append(Utils.toString(params[i], paramTypes[i])); in logResult()
DVerboseReporter.java201 Class[] paramTypes = tm.getMethod().getParameterTypes(); in logTestResult() local
205 if (params.length != paramTypes.length) { in logTestResult()
209 sb.append(paramTypes.length); in logTestResult()
216 sb.append(Utils.toString(params[i], paramTypes[i])); in logTestResult()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DConfigurator.java313 Class[] paramTypes = m.getParameterTypes(); in configure() local
315 if (paramTypes.length >= 1) { in configure()
320 if (paramStrs.length == paramTypes.length) { in configure()
322 Object[] oa = inflateParams(ctx, paramTypes, paramStrs); in configure()
327 … + m.getName() + "\". Expected: " + paramTypes.length + " Got: " + paramStrs.length); in configure()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_nodeTypes_NodeWithMembers.txt64 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).collect(toSet()…
65 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).collect(toSet()…
66 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).collect(toSet()…
69 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).collect(toSet()…
77 …Line 240) Stream.of(paramTypes).collect(toSet()) ==> java.util.stream.Stream.collect(java.util.str…
78 Line 240) Stream.of(paramTypes) ==> java.util.stream.Stream.of(T...)
81 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).map(Class::getS…
82 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).map(Class::getS…
83 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).map(Class::getS…
86 …m().map(p -> p.getType().toString()).collect(toSet()).equals(Stream.of(paramTypes).map(Class::getS…
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/bytecode/
DMethodSignatureTest.java17 assertThat(signature.paramTypes).asList().contains("java.lang.Integer"); in parse_shouldHandlePrimitiveReturnTypes()
26 assertThat(signature.paramTypes).asList().contains("java.lang.Integer"); in parse_shouldHandleObjectReturnTypes()
DInvocationProfileTest.java18 assertThat(profile.paramTypes).isEmpty(); in shouldConvertFromMethodSignature()
27 assertThat(profile.paramTypes).asList().containsExactly("int", "boolean[]", "java.lang.String"); in shouldHandleParamTypes()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithMembers.java236 default List<MethodDeclaration> getMethodsByParameterTypes(String... paramTypes) { in getMethodsByParameterTypes() argument
240 .collect(toSet()).equals(Stream.of(paramTypes).collect(toSet()))) in getMethodsByParameterTypes()
251 default List<MethodDeclaration> getMethodsByParameterTypes(Class<?>... paramTypes) { in getMethodsByParameterTypes() argument
256 … .equals(Stream.of(paramTypes).map(Class::getSimpleName).collect(toSet()))) in getMethodsByParameterTypes()
/external/mockito/src/main/java/org/mockito/internal/creation/instance/
DConstructorInstantiator.java163 Class<?>[] paramTypes = constructor.getParameterTypes(); in evaluateConstructor() local
164 for (int i = 0; i < paramTypes.length; ++i) { in evaluateConstructor()
165 Class<?> paramType = paramTypes[i]; in evaluateConstructor()
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DMethodImpl.java301 List<Type> paramTypes = this.argumentTypes(); in handleVarArgs() local
302 ArrayType lastParamType = (ArrayType)paramTypes.get(paramTypes.size() - 1); in handleVarArgs()
305 int paramCount = paramTypes.size(); in handleVarArgs()
/external/junit/src/main/java/org/junit/experimental/theories/
DTheories.java146 Class<?>[] paramTypes = constructors[0].getParameterTypes(); in validateParameterSupplier() local
147 if (!(paramTypes.length == 0) && !paramTypes[0].equals(TestClass.class)) { in validateParameterSupplier()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DSubcomponentWriter.java165 List<? extends TypeMirror> paramTypes = resolvedMethod.getParameterTypes(); in writeSubcomponentWithoutBuilder() local
168 TypeElement moduleTypeElement = MoreTypes.asTypeElement(paramTypes.get(i)); in writeSubcomponentWithoutBuilder()
169 TypeName moduleType = TypeNames.forTypeMirror(paramTypes.get(i)); in writeSubcomponentWithoutBuilder()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java137 final ImmutableList<Key<?>> paramTypes; field in FactoryProvider2.AssistData
156 ImmutableList<Key<?>> paramTypes, in AssistData() argument
164 this.paramTypes = paramTypes; in AssistData()
177 .add("param type", paramTypes) in toString()
767 for (Key<?> paramKey : data.paramTypes) { in getBindingFromNewInjector()
772 for (Key<?> paramKey : data.paramTypes) { in getBindingFromNewInjector()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetICU.java207 Class<?>[] paramTypes = new Class<?>[]{ String.class, String.class, String[].class}; in getCharset() local
208 final Constructor<? extends CharsetICU> c = cs.getConstructor(paramTypes); in getCharset()
/external/smali/smalidea/src/main/java/org/jf/smalidea/dexlib/instruction/
DSmalideaInstruction.java190 List<String> paramTypes = in getReference() local
202 paramTypes, in getReference()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DTypeInference.java485 List<ResolvedType> paramTypes = new LinkedList<>(); in instantiationSetToMethodUsage() local
487 paramTypes.add(instantiationSet.apply(methodDeclaration.getParam(i).getType())); in instantiationSetToMethodUsage()
490 return new MethodUsage(methodDeclaration, paramTypes, returnType); in instantiationSetToMethodUsage()

12