/** * Returns a new ClassTool instance that is inspecting the * Class with the specified name. If the specified Class cannot * be found, then this will return {@code null}. All other * configuration settings will be copied to the new instance. * @param name class name * @return new class tool */ public ClassTool inspect(String name) { if (name == null) { return null; } return inspect(toClass(name)); }
/** * Configure this tool * @param values configuration values */ protected void configure(ValueParser values) { this.showDeprecated = values.getBoolean(SHOW_DEPRECATED_KEY, showDeprecated); String classname = values.getString(INSPECT_KEY); if (classname != null) { setType(toClass(classname)); } }