Home
last modified time | relevance | path

Searched refs:parameterTypes (Results 1 – 25 of 93) sorted by relevance

1234

/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DParameterMatcher.java32 private final List<String> parameterTypes; field in ParameterMatcher
34 public ParameterMatcher(List<String> parameterTypes) { in ParameterMatcher() argument
35 this.parameterTypes = parameterTypes; in ParameterMatcher()
40 if (actualParameterTypes.size() != parameterTypes.size()) { in matches()
43 for (int i = 0; i < parameterTypes.size(); i++) { in matches()
45 String expectedTypeName = parameterTypes.get(i); in matches()
75 return Joiner.on(",").join(parameterTypes); in toStringForm()
87 return Objects.equals(parameterTypes, that.parameterTypes); in equals()
92 return Objects.hash(parameterTypes); in hashCode()
98 "parameterTypes=" + parameterTypes + in toString()
/external/easymock/src/org/easymock/internal/
DMethodSerializationWrapper.java51 Class<?>[] parameterTypes = m.getParameterTypes(); in MethodSerializationWrapper() local
53 parameterTypeNames = new String[parameterTypes.length]; in MethodSerializationWrapper()
55 for (int i = 0; i < parameterTypes.length; i++) { in MethodSerializationWrapper()
56 parameterTypeNames[i] = parameterTypes[i].getName(); in MethodSerializationWrapper()
65 Class<?>[] parameterTypes = new Class[parameterTypeNames.length]; in getMethod() local
70 parameterTypes[i] = primitiveType; in getMethod()
72 parameterTypes[i] = Class.forName(parameterTypeNames[i], true, in getMethod()
77 Method m = clazz.getMethod(methodName, parameterTypes); in getMethod()
/external/guava/guava/src/com/google/common/eventbus/
DAnnotatedSubscriberFinder.java73 Class<?>[] parameterTypes = method.getParameterTypes(); in findAllSubscribers() local
74 Class<?> eventType = parameterTypes[0]; in findAllSubscribers()
91 private final List<Class<?>> parameterTypes; field in AnnotatedSubscriberFinder.MethodIdentifier
95 this.parameterTypes = Arrays.asList(method.getParameterTypes()); in MethodIdentifier()
100 return Objects.hashCode(name, parameterTypes); in hashCode()
107 return name.equals(ident.name) && parameterTypes.equals(ident.parameterTypes); in equals()
120 Class<?>[] parameterTypes = superClazzMethod.getParameterTypes(); in getAnnotatedMethodsInternal() local
121 if (parameterTypes.length != 1) { in getAnnotatedMethodsInternal()
123 + " has @Subscribe annotation, but requires " + parameterTypes.length in getAnnotatedMethodsInternal()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DBenchmarkMethods.java43 Class<?>[] parameterTypes = benchmarkMethod.getParameterTypes(); in of() local
44 if (Arrays.equals(parameterTypes, MACROBENCHMARK_PARAMS)) { in of()
46 } else if (Arrays.equals(parameterTypes, MICROBENCHMARK_PARAMS)) { in of()
48 } else if (Arrays.equals(parameterTypes, PICOBENCHMARK_PARAMS)) { in of()
72 Class<?>[] parameterTypes = timeMethod.getParameterTypes(); in checkTimeMethod() local
73 if (!Arrays.equals(parameterTypes, new Class<?>[] {int.class}) in checkTimeMethod()
74 && !Arrays.equals(parameterTypes, new Class<?>[] {long.class})) { in checkTimeMethod()
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DReturnsArgumentAt.java103 Class<?>[] parameterTypes = method.getParameterTypes(); in wantedArgIndexIsVarargAndSameTypeAsReturnType() local
105 argumentPosition == /* vararg index */ parameterTypes.length - 1 && in wantedArgIndexIsVarargAndSameTypeAsReturnType()
106 method.getReturnType().isAssignableFrom(parameterTypes[argumentPosition]); in wantedArgIndexIsVarargAndSameTypeAsReturnType()
121 Class<?>[] parameterTypes = invocation.getMethod().getParameterTypes(); in inferArgumentType() local
125 Class<?> argumentType = parameterTypes[argumentIndex]; in inferArgumentType()
136 int varargIndex = parameterTypes.length - 1; // vararg always last in inferArgumentType()
140 return parameterTypes[argumentIndex]; in inferArgumentType()
146 return parameterTypes[argumentIndex]; // move to MethodInfo ? in inferArgumentType()
149 return parameterTypes[varargIndex].getComponentType(); in inferArgumentType()
/external/mockito/src/main/java/org/mockito/internal/creation/
DSuspendMethod.java16 public static Class<?>[] trimSuspendParameterTypes(Class<?>[] parameterTypes) { in trimSuspendParameterTypes() argument
17 int n = parameterTypes.length; in trimSuspendParameterTypes()
18 if (n > 0 && parameterTypes[n - 1].getName().equals(KOTLIN_CONTINUATION)) in trimSuspendParameterTypes()
19 return Arrays.copyOf(parameterTypes, n - 1); in trimSuspendParameterTypes()
20 return parameterTypes; in trimSuspendParameterTypes()
DDelegatingMethod.java15 private final Class<?>[] parameterTypes; field in DelegatingMethod
20 this.parameterTypes = SuspendMethod.trimSuspendParameterTypes(method.getParameterTypes()); in DelegatingMethod()
36 return parameterTypes; in getParameterTypes()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/
DParameterIterator.java46 private final Iterator<? extends CharSequence> parameterTypes; field in ParameterIterator
50 public ParameterIterator(@Nonnull List<? extends CharSequence> parameterTypes, in ParameterIterator() argument
53 this.parameterTypes = parameterTypes.iterator(); in ParameterIterator()
59 return parameterTypes.hasNext(); in hasNext()
63 @Nonnull final String type = parameterTypes.next().toString(); in next()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/
DContextHelper.java38 …(Context context, ResolvedMethodDeclaration methodDeclaration, List<ResolvedType> parameterTypes) { in resolveTypeVariables() argument
40 …rn ((JavaParserMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes); in resolveTypeVariables()
42 …urn ((JavassistMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes); in resolveTypeVariables()
44 …rserEnumDeclaration.ValuesMethod) methodDeclaration).resolveTypeVariables(context, parameterTypes); in resolveTypeVariables()
46 …rn ((ReflectionMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes); in resolveTypeVariables()
/external/mockito/src/main/java/org/mockito/internal/invocation/
DSerializableMethod.java21 private final Class<?>[] parameterTypes; field in SerializableMethod
33 parameterTypes = SuspendMethod.trimSuspendParameterTypes(method.getParameterTypes()); in SerializableMethod()
49 return parameterTypes; in getParameterTypes()
69 method = declaringClass.getDeclaredMethod(methodName, parameterTypes); in getJavaMethod()
108 if (!Arrays.equals(parameterTypes, other.parameterTypes)) in equals()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderMethodProtoReference.java48 @Nonnull final BuilderTypeList parameterTypes; field in BuilderMethodProtoReference
52 …thodProtoReference(@Nonnull BuilderStringReference shorty, @Nonnull BuilderTypeList parameterTypes, in BuilderMethodProtoReference() argument
55 this.parameterTypes = parameterTypes; in BuilderMethodProtoReference()
60 return parameterTypes; in getParameterTypes()
DBuilderMethodPool.java125 @Nonnull private final List<? extends CharSequence> parameterTypes;
129 … @Nonnull List<? extends CharSequence> parameterTypes, @Nonnull String returnType) {
132 this.parameterTypes = parameterTypes;
145 return parameterTypes;
/external/guava/guava-tests/test/com/google/common/collect/
DForwardingTestCase.java90 Class<?>[] parameterTypes = method.getParameterTypes(); in asString() local
92 if (parameterTypes.length == 0) { in asString()
97 Arrays.asList(parameterTypes), in asString()
148 Class<?>[] parameterTypes = method.getParameterTypes(); in callAllPublicMethods() local
149 Object[] parameters = new Object[parameterTypes.length]; in callAllPublicMethods()
150 for (int i = 0; i < parameterTypes.length; i++) { in callAllPublicMethods()
151 parameters[i] = getDefaultValue(parameterTypes[i]); in callAllPublicMethods()
DFauxveridesTest.java174 final List<Class<?>> parameterTypes; field in FauxveridesTest.MethodSignature
179 parameterTypes = Arrays.asList(method.getParameterTypes()); in MethodSignature()
187 && parameterTypes.equals(other.parameterTypes) in equals()
195 return Objects.hashCode(name, parameterTypes, typeSignature); in hashCode()
200 typeSignature, name, getTypesString(parameterTypes)); in toString()
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DAssistedConstructor.java45 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in create() argument
46 return new AssistedConstructor<T>(constructor, parameterTypes); in create()
49 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in AssistedConstructor() argument
58 for (int i = 0; i < parameterTypes.size(); i++) { in AssistedConstructor()
59 Parameter parameter = new Parameter(parameterTypes.get(i).getType(), annotations[i]); in AssistedConstructor()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_core_resolution_ContextHelper.txt1 …rMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes) ==> com.githu…
2 …tMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes) ==> com.githu…
3 …ation.ValuesMethod) methodDeclaration).resolveTypeVariables(context, parameterTypes) ==> com.githu…
4 …nMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTypes) ==> com.githu…
/external/sl4a/Common/src/com/googlecode/android_scripting/rpc/
DMethodDescriptor.java84 final Type[] parameterTypes = getGenericParameterTypes(); in invoke() local
85 final Object[] args = new Object[parameterTypes.length]; in invoke()
93 final Type parameterType = parameterTypes[i]; in invoke()
116 final Class<?>[] parameterTypes = getMethod().getParameterTypes(); in invoke() local
117 final Object[] args = new Object[parameterTypes.length]; in invoke()
119 for (int i = 0; i < parameterTypes.length; i++) { in invoke()
120 Class<?> parameterType = parameterTypes[i]; in invoke()
122 if (i < parameterTypes.length) { in invoke()
309 final Class<?>[] parameterTypes = mMethod.getParameterTypes(); in getHelp() local
312 for (int i = 0; i < parameterTypes.length; i++) { in getHelp()
[all …]
/external/guice/core/src/com/google/inject/internal/
DBytecodeGen.java282 Class<?>[] parameterTypes; in isPubliclyCallable() local
284 parameterTypes = ((Constructor) member).getParameterTypes(); in isPubliclyCallable()
290 parameterTypes = method.getParameterTypes(); in isPubliclyCallable()
293 for (Class<?> type : parameterTypes) { in isPubliclyCallable()
352 Class[] parameterTypes; in forMember() local
354 parameterTypes = ((Constructor) member).getParameterTypes(); in forMember()
360 parameterTypes = method.getParameterTypes(); in forMember()
363 for (Class<?> type : parameterTypes) { in forMember()
/external/junit-params/src/test/java/junitparams/naming/
DMacroSubstitutionNamingStrategyTest.java85 …seNamingStrategy createNamingStrategyForMethod(String name, Class... parameterTypes) throws NoSuch… in createNamingStrategyForMethod() argument
86 TestMethod method = getCurrentClassMethod(name, parameterTypes); in createNamingStrategyForMethod()
91 …private TestMethod getCurrentClassMethod(String name, Class... parameterTypes) throws NoSuchMethod… in getCurrentClassMethod() argument
92 … final Method method = MacroSubstitutionNamingStrategyTest.class.getMethod(name, parameterTypes); in getCurrentClassMethod()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DCallableDeclaration.java259 private final List<Type> parameterTypes; field in CallableDeclaration.Signature
261 private Signature(String name, List<Type> parameterTypes) { in Signature() argument
263 this.parameterTypes = parameterTypes; in Signature()
271 return parameterTypes; in getParameterTypes()
283 if (!parameterTypes.equals(signature.parameterTypes)) in equals()
291 result = 31 * result + parameterTypes.hashCode(); in hashCode()
296 … return parameterTypes.stream().map(Type::asString).collect(joining(", ", name + "(", ")")); in asString()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DPSKKeyManagerProxy.java71 Class<?>[] parameterTypes = method.getParameterTypes(); in invoke() local
72 boolean sslEngineVariant = (parameterTypes.length > 0) in invoke()
73 && SSLEngine.class.equals(parameterTypes[parameterTypes.length - 1]); in invoke()
/external/jarjar/src/main/com/tonicsystems/jarjar/
DMainUtil.java58 Class[] parameterTypes = method.getParameterTypes(); in bindParameters() local
59 for (int i = 0, len = parameterTypes.length; i < len; i++) { in bindParameters()
60 Class type = parameterTypes[i]; in bindParameters()
67 parameters.add(convertParameter(args[i], parameterTypes[i])); in bindParameters()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DPSKKeyManagerProxy.java72 Class<?>[] parameterTypes = method.getParameterTypes(); in invoke() local
73 boolean sslEngineVariant = (parameterTypes.length > 0) in invoke()
74 && SSLEngine.class.equals(parameterTypes[parameterTypes.length - 1]); in invoke()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionEnumDeclaration.java157 …solvedMethodDeclaration> solveMethod(String name, List<ResolvedType> parameterTypes, boolean stati… in solveMethod() argument
158 return ReflectionMethodResolutionLogic.solveMethod(name, parameterTypes, staticOnly, in solveMethod()
162 …public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Ty… in solveMethodAsUsage() argument
164 …sage> res = ReflectionMethodResolutionLogic.solveMethodAsUsage(name, parameterTypes, typeSolver, i… in solveMethodAsUsage()
172 for (ResolvedType actualType : parameterTypes) { in solveMethodAsUsage()
/external/emma/core/java12/com/vladium/jcd/lib/
DTypes.java144 public static String signatureToDescriptor (Class [] parameterTypes, Class returnType) in signatureToDescriptor() argument
146 return new signatureCompiler ().signatureDescriptor (parameterTypes, returnType); in signatureToDescriptor()
340 final String [] parameterTypes = descriptorToParameterTypes (methoddescriptor); in methodDescriptorToUserName() local
344 for (int p = 0; p < parameterTypes.length; p++) in methodDescriptorToUserName()
350 final String typeUserName = typeDescriptorToUserName (parameterTypes [p]); in methodDescriptorToUserName()
407 emit ('('); parameterTypes (_parameterTypes); emit (')'); returnType (_returnType); in signatureDescriptor()
420 private void parameterTypes (Class [] _parameterTypes) in parameterTypes() method in Types.signatureCompiler

1234