MCPcopy Create free account
hub / github.com/akeranen/the-one / getClass

Method getClass

core/Settings.java:828–840  ·  view source on GitHub ↗

Returns a Class object for the name of class of throws SettingsError if such class wasn't found. @param name Full name of the class (including package name) @return A Class object of that class @throws SettingsError if such class wasn't found or couldn't be loaded

(String name)

Source from the content-addressed store, hash-verified

826 * @throws SettingsError if such class wasn't found or couldn't be loaded
827 */
828 private Class<?> getClass(String name) {
829 String className = name;
830 Class<?> c;
831
832 try {
833 c = Class.forName(className);
834 } catch (ClassNotFoundException e) {
835 throw new SettingsError("Couldn't find class '" + className + "'"+
836 "\n" + e.getMessage(),e);
837 }
838
839 return c;
840 }
841
842 /**
843 * Fills a String formatted in a special way with values from Settings.

Callers 10

loadObjectMethod · 0.95
toStringMethod · 0.80
toStringMethod · 0.80
createImageIconMethod · 0.80
processAssertionErrorMethod · 0.80
toStringMethod · 0.80
toStringMethod · 0.80
ReportMethod · 0.80
getSettingsMethod · 0.80
toStringMethod · 0.80

Calls 1

getMessageMethod · 0.45

Tested by

no test coverage detected