/** * Return the {@link Class} objects for the exception types for this * method, or an empty array if none. */ public Class[] getExceptionTypes() { String[] names = getExceptionNames(); Class[] types = new Class[names.length]; for (int i = 0; i < names.length; i++) types[i] = Strings.toClass(names[i], getClassLoader()); return types; }
/** * Return the {@link Class} objects for the exception types for this * method, or an empty array if none. */ public Class[] getExceptionTypes() { String[] names = getExceptionNames(); Class[] types = new Class[names.length]; for (int i = 0; i < names.length; i++) types[i] = Strings.toClass(names[i], getClassLoader()); return types; }
/** * Return bytecode for the exception types of this * method, or an empty array if none. */ public BCClass[] getExceptionBCs() { String[] names = getExceptionNames(); BCClass[] types = new BCClass[names.length]; for (int i = 0; i < names.length; i++) types[i] = getProject().loadClass(names[i], getClassLoader()); return types; }
/** * Return bytecode for the exception types of this * method, or an empty array if none. */ public BCClass[] getExceptionBCs() { String[] names = getExceptionNames(); BCClass[] types = new BCClass[names.length]; for (int i = 0; i < names.length; i++) types[i] = getProject().loadClass(names[i], getClassLoader()); return types; }