Home
last modified time | relevance | path

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

123

/external/dexmaker/src/dx/java/com/android/dx/rop/type/
DPrototype.java38 private final StdTypeList parameterTypes; field in Prototype
101 StdTypeList parameterTypes = new StdTypeList(paramCount); in intern() local
104 parameterTypes.set(i, params[i]); in intern()
107 result = new Prototype(descriptor, returnType, parameterTypes); in intern()
216 StdTypeList parameterTypes) { in Prototype() argument
225 if (parameterTypes == null) { in Prototype()
231 this.parameterTypes = parameterTypes; in Prototype()
277 int thisSize = parameterTypes.size(); in compareTo()
278 int otherSize = other.parameterTypes.size(); in compareTo()
282 Type thisType = parameterTypes.get(i); in compareTo()
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DParameterMatcher.java31 private final List<String> parameterTypes; field in ParameterMatcher
33 public ParameterMatcher(List<String> parameterTypes) { in ParameterMatcher() argument
34 this.parameterTypes = parameterTypes; in ParameterMatcher()
39 if (actualParameterTypes.size() != parameterTypes.size()) { in matches()
42 for (int i = 0; i < parameterTypes.size(); i++) { in matches()
44 String expectedTypeName = parameterTypes.get(i); in matches()
71 return Joiner.on(",").join(parameterTypes); in toStringForm()
77 "parameterTypes=" + parameterTypes + in toString()
/external/mockito/cglib-and-asm/src/org/mockito/cglib/reflect/
DFastClass.java87 …public Object invoke(String name, Class[] parameterTypes, Object obj, Object[] args) throws Invoca… in invoke() argument
88 return invoke(getIndex(name, parameterTypes), obj, args); in invoke()
95 …public Object newInstance(Class[] parameterTypes, Object[] args) throws InvocationTargetException { in newInstance() argument
96 return newInstance(getIndex(parameterTypes), args); in newInstance()
107 public FastMethod getMethod(String name, Class[] parameterTypes) { in getMethod() argument
109 return getMethod(type.getMethod(name, parameterTypes)); in getMethod()
115 public FastConstructor getConstructor(Class[] parameterTypes) { in getConstructor() argument
117 return getConstructor(type.getConstructor(parameterTypes)); in getConstructor()
156 abstract public int getIndex(String name, Class[] parameterTypes); in getIndex() argument
165 abstract public int getIndex(Class[] parameterTypes); in getIndex() argument
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderProtoReference.java45 @Nonnull final BuilderTypeList parameterTypes; field in BuilderProtoReference
49 …lderProtoReference(@Nonnull BuilderStringReference shorty, @Nonnull BuilderTypeList parameterTypes, in BuilderProtoReference() argument
52 this.parameterTypes = parameterTypes; in BuilderProtoReference()
57 return parameterTypes; in getParameterTypes()
75 CharSequenceUtils.listEquals(parameterTypes, other.parameterTypes); in equals()
84 …turn CollectionUtils.compareAsIterable(Ordering.usingToString(), parameterTypes, o.parameterTypes); in compareTo()
DBuilderMethodPool.java118 @Nonnull private final List<? extends CharSequence> parameterTypes;
122 … @Nonnull List<? extends CharSequence> parameterTypes, @Nonnull String returnType) {
125 this.parameterTypes = parameterTypes;
138 return parameterTypes;
/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/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/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/mockito/cglib-and-asm/src/org/mockito/cglib/core/
DKeyFactory.java172 Type[] parameterTypes = TypeUtils.getTypes(newInstance.getParameterTypes()); in generateClass() local
184 TypeUtils.parseConstructor(parameterTypes), in generateClass()
189 for (int i = 0; i < parameterTypes.length; i++) { in generateClass()
190 seed += parameterTypes[i].hashCode(); in generateClass()
193 parameterTypes[i], in generateClass()
207 for (int i = 0; i < parameterTypes.length; i++) { in generateClass()
210 EmitUtils.hash_code(e, parameterTypes[i], hm, customizer); in generateClass()
221 for (int i = 0; i < parameterTypes.length; i++) { in generateClass()
227 EmitUtils.not_equals(e, parameterTypes[i], fail, customizer); in generateClass()
241 for (int i = 0; i < parameterTypes.length; i++) { in generateClass()
[all …]
/external/mockito/src/org/mockito/internal/invocation/
DSerializableMethod.java19 private Class<?>[] parameterTypes; field in SerializableMethod
27 parameterTypes = method.getParameterTypes(); in SerializableMethod()
42 return parameterTypes; in getParameterTypes()
55 return declaringClass.getDeclaredMethod(methodName, parameterTypes); in getJavaMethod()
93 if (!Arrays.equals(parameterTypes, other.parameterTypes)) in equals()
/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.java47 Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in create() argument
48 return new AssistedConstructor<T>(constructor, parameterTypes); in create()
51 private AssistedConstructor(Constructor<T> constructor, List<TypeLiteral<?>> parameterTypes) { in AssistedConstructor() argument
60 for (int i = 0; i < parameterTypes.size(); i++) { in AssistedConstructor()
61 Parameter parameter = new Parameter(parameterTypes.get(i).getType(), annotations[i]); in AssistedConstructor()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DRobolectricWiringTest.java88 Class<?>[] parameterTypes = shadowMethod.getParameterTypes(); in findConstructor() local
90 return implementedClass.getConstructor(parameterTypes); in findConstructor()
93 return implementedClass.getDeclaredConstructor(parameterTypes); in findConstructor()
101 Class<?>[] parameterTypes = shadowMethod.getParameterTypes(); in findMethod() local
104 return implementedClass.getMethod(methodName, parameterTypes); in findMethod()
107 return implementedClass.getDeclaredMethod(methodName, parameterTypes); in findMethod()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DProtoIdItem.java41 private TypeListItem parameterTypes; field in ProtoIdItem
57 this.parameterTypes = (parameters.size() == 0) ? null in ProtoIdItem()
119 if (parameterTypes != null) { in addContents()
120 parameterTypes = typeLists.intern(parameterTypes); in addContents()
129 int paramsOff = OffsettedItem.getAbsoluteOffsetOr0(parameterTypes); in writeTo()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gwtref/client/
DType.java150 public Method getMethod (String name, Class... parameterTypes) throws NoSuchMethodException { in getMethod() argument
152 if (m.match(name, parameterTypes)) return m; in getMethod()
177 …public Method getDeclaredMethod (String name, Class... parameterTypes) throws NoSuchMethodExceptio… in getDeclaredMethod() argument
179 if (m.match(name, parameterTypes)) return m; in getDeclaredMethod()
194 public Constructor getDeclaredConstructor (Class... parameterTypes) throws NoSuchMethodException { in getDeclaredConstructor() argument
195 return getConstructor(parameterTypes); in getDeclaredConstructor()
198 public Constructor getConstructor (Class... parameterTypes) throws NoSuchMethodException { in getConstructor() argument
200 if (c.isPublic() && c.match(parameterTypes)) return c; in getConstructor()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/
DReflectionUtils.java109 private static void appendParameterTypes(StringBuilder buffer, Type[] parameterTypes) { in appendParameterTypes() argument
112 for (Type parameterType : parameterTypes) { in appendParameterTypes()
178 public static String getMethodSignature(String name, Type... parameterTypes) { in getMethodSignature() argument
180 Assert.isNotNull(parameterTypes); in getMethodSignature()
184 appendParameterTypes(buffer, parameterTypes); in getMethodSignature()
252 Class<?>[] parameterTypes, in invokeMethod2() argument
254 Assert.equals(parameterTypes.length, arguments.length); in invokeMethod2()
255 String signature = getMethodSignature(name, parameterTypes); in invokeMethod2()
/external/mockito/src/org/mockito/internal/stubbing/answers/
DReturnsArgumentAt.java102 Class<?>[] parameterTypes = invocation.getMethod().getParameterTypes(); in returnedTypeOnSignature() local
103 int varargPosition = parameterTypes.length - 1; in returnedTypeOnSignature()
106 return parameterTypes[actualArgumentPosition]; in returnedTypeOnSignature()
108 return parameterTypes[varargPosition].getComponentType(); in returnedTypeOnSignature()
/external/libgdx/gdx/src/com/badlogic/gdx/utils/reflect/
DClassReflection.java88 …static public Constructor getConstructor (Class c, Class... parameterTypes) throws ReflectionExcep… in getConstructor() argument
90 return new Constructor(c.getConstructor(parameterTypes)); in getConstructor()
101 …static public Constructor getDeclaredConstructor (Class c, Class... parameterTypes) throws Reflect… in getDeclaredConstructor() argument
103 return new Constructor(c.getDeclaredConstructor(parameterTypes)); in getDeclaredConstructor()
123 …static public Method getMethod (Class c, String name, Class... parameterTypes) throws ReflectionEx… in getMethod() argument
125 return new Method(c.getMethod(name, parameterTypes)); in getMethod()
144 …static public Method getDeclaredMethod (Class c, String name, Class... parameterTypes) throws Refl… in getDeclaredMethod() argument
146 return new Method(c.getDeclaredMethod(name, parameterTypes)); in getDeclaredMethod()
/external/sl4a/Common/src/com/googlecode/android_scripting/rpc/
DMethodDescriptor.java86 final Type[] parameterTypes = getGenericParameterTypes(); in invoke() local
87 final Object[] args = new Object[parameterTypes.length]; in invoke()
95 final Type parameterType = parameterTypes[i]; in invoke()
118 final Class<?>[] parameterTypes = getMethod().getParameterTypes(); in invoke() local
119 final Object[] args = new Object[parameterTypes.length]; in invoke()
121 for (int i = 0; i < parameterTypes.length; i++) { in invoke()
122 Class<?> parameterType = parameterTypes[i]; in invoke()
124 if (i < parameterTypes.length) { in invoke()
310 final Class<?>[] parameterTypes = mMethod.getParameterTypes(); in getHelp() local
313 for (int i = 0; i < parameterTypes.length; i++) { in getHelp()
[all …]
/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/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/reflect/
DConstructor.java34 Class[] parameterTypes = new Class[parameters.length]; in getParameterTypes() local
36 parameterTypes[i] = parameters[i].getClazz(); in getParameterTypes()
38 return parameterTypes; in getParameterTypes()
DClassReflection.java91 …static public Constructor getConstructor (Class c, Class... parameterTypes) throws ReflectionExcep… in getConstructor() argument
93 return new Constructor(ReflectionCache.getType(c).getConstructor(parameterTypes)); in getConstructor()
103 …static public Constructor getDeclaredConstructor (Class c, Class... parameterTypes) throws Reflect… in getDeclaredConstructor() argument
105 return new Constructor(ReflectionCache.getType(c).getDeclaredConstructor(parameterTypes)); in getDeclaredConstructor()
125 …static public Method getMethod (Class c, String name, Class... parameterTypes) throws ReflectionEx… in getMethod() argument
127 return new Method(ReflectionCache.getType(c).getMethod(name, parameterTypes)); in getMethod()
146 …static public Method getDeclaredMethod (Class c, String name, Class... parameterTypes) throws Refl… in getDeclaredMethod() argument
148 return new Method(ReflectionCache.getType(c).getDeclaredMethod(name, parameterTypes)); in getDeclaredMethod()
/external/javassist/src/main/javassist/convert/
DTransformBefore.java24 protected CtClass[] parameterTypes; field in TransformBefore
38 parameterTypes = origMethod.getParameterTypes(); in TransformBefore()
55 String desc = Descriptor.ofParameters(parameterTypes) + 'V'; in match()
64 makeCode(parameterTypes, cp); in match()

123