/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m == null) error(clazz, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * <p>Added back for JBoss Seam. See JASSIST-206.</p> * * @throws RuntimeException if the method is not found. * @deprecated replaced by {@link #findMethod(Class, String, String)} */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self.getClass(), name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Class<?> clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m == null) error(clazz, name, desc); return m; }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * <p>Added back for JBoss Seam. See JASSIST-206.</p> * * @throws RuntimeException if the method is not found. * @deprecated replaced by {@link #findMethod(Class, String, String)} */ @Deprecated public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self.getClass(), name, desc); return m; }
private static Method findSuperMethod2(Class<?> clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class<?> superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m == null) error(clazz, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m == null) error(clazz, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * @throws RuntimeException if the method is not found. */ public static Method findMethod(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m == null) error(clazz, name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * <p>Added back for JBoss Seam. See JASSIST-206.</p> * * @throws RuntimeException if the method is not found. * @deprecated replaced by {@link #findMethod(Class, String, String)} */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self.getClass(), name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * <p>Added back for JBoss Seam. See JASSIST-206.</p> * * @throws RuntimeException if the method is not found. * @deprecated replaced by {@link #findMethod(Class, String, String)} */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self.getClass(), name, desc); return m; }
/** * Finds a method with the given name and descriptor. * It searches only the class of self. * * <p>Added back for JBoss Seam. See JASSIST-206.</p> * * @throws RuntimeException if the method is not found. * @deprecated replaced by {@link #findMethod(Class, String, String)} */ public static Method findMethod(Object self, String name, String desc) { Method m = findMethod2(self.getClass(), name, desc); if (m == null) error(self.getClass(), name, desc); return m; }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }
private static Method findSuperMethod2(Class clazz, String name, String desc) { Method m = findMethod2(clazz, name, desc); if (m != null) return m; Class superClass = clazz.getSuperclass(); if (superClass != null) { m = findSuperMethod2(superClass, name, desc); if (m != null) return m; } return searchInterfaces(clazz, name, desc); }