492493494495496497498499500501502
if (pkg == null) { throw new RuntimeException("No such package: " + ns); } JClassType rtn = null; rtn = pkg.findType(tagName); if (rtn == null) { die("No class matching \"%s\" in %s", tagName, ns); } return rtn;
527528529530531532533534535536537
if (pkg == null) { throw new RuntimeException("No such package: " + ns); } JClassType rtn = null; rtn = pkg.findType(tagName); if (rtn == null) { die(elem, "No class matching \"%s\" in %s", tagName, ns); } return rtn;
498499500501502503504505506507508
601602603604605606607608609610611
JPackage pkg = parseNamespacePackage(packageName); if (pkg == null) { throw new RuntimeException("No such package: " + packageName); } JClassType rtn = pkg.findType(className); if (rtn != null) { return rtn; } // Try again: shift one element of the class name onto the package name.