Home | History | Annotate | Download | only in oo

Lines Matching defs:method

206  * of the given method. This returns 0 if they are equal and non-zero if not.
208 static inline int compareMethodHelper(Method* method, const char* methodName,
214 if (strcmp(methodName, method->name) != 0) {
218 proto = &method->prototype;
246 /* ...and through all the method's arguments; success! */
255 * Get the count of arguments in the given method descriptor string,
365 static Method* findMethodInListByDescriptor(const ClassObject* clazz,
372 ALOGW("Bogus method descriptor: %s", descriptor);
387 Method* methods;
400 Method* method = &methods[i];
401 if (compareMethodHelper(method, name, returnType, argCount,
403 return method;
425 static Method* findMethodInListByProto(const ClassObject* clazz,
432 * Check the virtual and/or direct method lists.
436 Method* method = &clazz->virtualMethods[i];
437 if (dvmCompareNameProtoAndMethod(name, proto, method) == 0) {
438 return method;
444 Method* method = &clazz->directMethods[i];
445 if (dvmCompareNameProtoAndMethod(name, proto, method) == 0) {
446 return method;
462 * Find a "virtual" method in a class.
466 * Returns NULL if the method can't be found. (Does not throw an exception.)
468 Method* dvmFindVirtualMethodByDescriptor(const ClassObject* clazz,
481 * Find a "virtual" method in a class, knowing only the name. This is
487 * Returns NULL if the method can't be found. (Does not throw an exception.)
489 Method* dvmFindVirtualMethodByName(const ClassObject* clazz,
492 Method* methods = clazz->virtualMethods;
505 * Find a "virtual" method in a class.
509 * Returns NULL if the method can't be found. (Does not throw an exception.)
511 Method* dvmFindVirtualMethod(const ClassObject* clazz, const char* methodName,
519 * Find a "virtual" method in a class. If we don't find it, try the
522 * Returns NULL if the method can't be found. (Does not throw an exception.)
524 Method* dvmFindVirtualMethodHierByDescriptor(const ClassObject* clazz,
532 * Find a "virtual" method in a class. If we don't find it, try the
535 * Returns NULL if the method can't be found. (Does not throw an exception.)
537 Method* dvmFindVirtualMethodHier(const ClassObject* clazz,
545 * Find a method in an interface. Searches superinterfaces.
547 * Returns NULL if the method can't be found. (Does not throw an exception.)
549 Method* dvmFindInterfaceMethodHierByDescriptor(const ClassObject* iface,
552 Method* resMethod = dvmFindVirtualMethodByDescriptor(iface,
568 * Find a method in an interface. Searches superinterfaces.
570 method can't be found. (Does not throw an exception.)
572 Method* dvmFindInterfaceMethodHier(const ClassObject* iface,
575 Method* resMethod = dvmFindVirtualMethod(iface, methodName, proto);
590 * Find a "direct" method (static, private, or "<*init>").
592 * Returns NULL if the method can't be found. (Does not throw an exception.)
594 Method* dvmFindDirectMethodByDescriptor(const ClassObject* clazz,
602 * Find a "direct" method. If we don't find it, try the superclass. This
606 * Returns NULL if the method can't be found. (Does not throw an exception.)
608 Method* dvmFindDirectMethodHierByDescriptor(const ClassObject* clazz,
616 * Find a "direct" method (static or "<*init>").
618 * Returns NULL if the method can't be found. (Does not throw an exception.)
620 Method* dvmFindDirectMethod(const ClassObject* clazz, const char* methodName,
628 * Find a "direct" method in a class. If we don't find it, try the
631 * Returns NULL if the method can't be found. (Does not throw an exception.)
633 Method* dvmFindDirectMethodHier(const ClassObject* clazz,
641 * Find a virtual or static method in a class. If we don't find it, try the
642 * superclass. This is compatible with the VM spec (v2 5.4.3.3) method
651 * Returns NULL if the method can't be found. (Does not throw an exception.)
653 Method* dvmFindMethodHier(const ClassObject* clazz, const char* methodName,
662 * We have a method pointer for a method in "clazz", but it might be
663 * pointing to a method in a derived class. We want to find the actual entry
668 * original Method.
670 * (This is used for reflection and JNI "call method" calls.)
672 const Method* dvmGetVirtualizedMethod(const ClassObject* clazz,
673 const Method* meth)
675 Method* actualMeth;
685 * If the method was declared in an interface, we need to scan through
700 "invoking method from interface not implemented by class");
725 * Get the source file for a method.
727 const char* dvmGetMethodSourceFile(const Method* meth)
730 * TODO: A method's debug info can override the default source