Lines Matching defs:pkg
1475 * and checks to see if <code>pkg</code> starts with or equals
1478 * <code>RuntimePermission("accessClassInPackage."+pkg)</code>
1485 * @param pkg the package name.
1495 public void checkPackageAccess(String pkg) {
1496 if (pkg == null) {
1528 if (pkg.startsWith(pkgs[i]) || pkgs[i].equals(pkg + ".")) {
1530 new RuntimePermission("accessClassInPackage."+pkg));
1547 * and checks to see if <code>pkg</code> starts with or equals
1550 * <code>RuntimePermission("defineClassInPackage."+pkg)</code>
1557 * @param pkg the package name.
1564 public void checkPackageDefinition(String pkg) {
1565 if (pkg == null) {
1596 if (pkg.startsWith(pkgs[i]) || pkgs[i].equals(pkg + ".")) {
1598 new RuntimePermission("defineClassInPackage."+pkg));