Lines Matching refs:method

243      * @param name The name of the method to find.
244 * @param args The types that the method should accept.
247 * @param allowProtected true if the method can be protected as well as public.
256 for (ModelMethod method : methods) {
257 if ((method.isPublic() || (allowProtected && method.isProtected())) &&
258 (!staticOnly || method.isStatic()) &&
259 name.equals(method.getName()) && method.acceptsArguments(args)) {
260 matching.add(method);
269 * @param name The name of the method to find.
270 * @param numParameters The number of parameters that the method should take
276 for (ModelMethod method : methods) {
277 if (method.isPublic() && !method.isStatic() &&
278 name.equals(method.getName()) &&
279 method.getParameterTypes().length == numParameters) {
280 matching.add(method);
287 * Returns the public method with the name <code>name</code> with the parameters that
288 * best match args. <code>staticOnly</code> governs whether a static or instance method
289 * will be returned. If no matching method was found, null is returned.
291 * @param name The method name to find
292 * @param args The arguments that the method should accept
293 * @param staticOnly true if the returned method must be static or false if it does not
295 * @param allowProtected true if the method can be protected as well as public.
300 L.d("looking methods for %s. static only ? %s . method count: %d", name, staticOnly,
302 for (ModelMethod method : methods) {
303 L.d("method: %s, %s", method.getName(), method.isStatic());
358 * @return The SDK_INT where this method was added. If it is not a framework method, should
366 * Returns the JNI description of the method which can be used to lookup it in SDK.
378 for (ModelMethod method : methods) {
379 if (method.isAbstract()) {
380 abstractMethods.add(method);
387 * Returns the getter method or field that the name refers to.
388 * @param name The name of the field or the body of the method name -- can be name(),
392 * @return the getter method or field that the name refers to or null if none can be found.
408 for (ModelMethod method : methods) {
409 if (method.isPublic() && (!staticOnly || method.isStatic()) &&
410 !method.getReturnType(Arrays.asList(method.getParameterTypes())).isVoid()) {
412 if (method.isStatic()) {
415 if (method.isBindable()) {
418 // if method is not bindable, look for a backing field
419 final ModelField backingField = getField(name, true, method.isStatic());
420 L.d("backing field for method %s is %s", method.getName(),
426 final ModelMethod setterMethod = findSetter(method, name);
429 setterName, method.getReturnType(null), method.getParameterTypes().length,
430 flags, method);
436 // could not find a method. Look for a public field
477 for (ModelMethod method : methods) {
478 if (method.isPublic() && !method.isStatic() &&
479 !method.getReturnType(Arrays.asList(method.getParameterTypes())).isVoid()) {
480 return method;
513 for (ModelMethod method : methods) {
514 ModelClass[] parameterTypes = method.getParameterTypes();
517 method.isStatic() == getter.isStatic()) {
518 return method;
533 for (ModelMethod method : methods) {
534 if (method.getName().equals(name) && (!staticOnly || method.isStatic()) &&
535 method.isPublic()) {
536 matching.add(method);