/** * Assert that this class' access type is allowed. * If no access style is set or an explicit style is set return. * Otherwise, if the superclass has persistent attributes, check that * the superclass access style, if defaulted, is the same as that of this * receiver. */ private void validateAccessType() { if (AccessCode.isEmpty(_accessType) || AccessCode.isExplicit(_accessType)) return; ClassMetaData sup = getPCSuperclassMetaData(); while (sup != null && sup.isExplicitAccess()) sup = sup.getPCSuperclassMetaData(); if (sup != null && sup.getDeclaredFields().length > 0) { int supCode = sup.getAccessType(); if (!AccessCode.isCompatibleSuper(_accessType, supCode)) throw new MetaDataException(_loc.get("access-inconsistent-inherit", new Object[]{this, AccessCode.toClassString(_accessType), sup, AccessCode.toClassString(supCode)}).toString()); } }
/** * Assert that this class' access type is allowed. * If no access style is set or an explicit style is set return. * Otherwise, if the superclass has persistent attributes, check that * the superclass access style, if defaulted, is the same as that of this * receiver. */ private void validateAccessType() { if (AccessCode.isEmpty(_accessType) || AccessCode.isExplicit(_accessType)) return; ClassMetaData sup = getPCSuperclassMetaData(); while (sup != null && sup.isExplicitAccess()) sup = sup.getPCSuperclassMetaData(); if (sup != null && sup.getDeclaredFields().length > 0) { int supCode = sup.getAccessType(); if (!AccessCode.isCompatibleSuper(_accessType, supCode)) throw new MetaDataException(_loc.get("access-inconsistent-inherit", new Object[]{this, AccessCode.toClassString(_accessType), sup, AccessCode.toClassString(supCode)}).toString()); } }
/** * Assert that this class' access type is allowed. * If no access style is set or an explicit style is set return. * Otherwise, if the superclass has persistent attributes, check that * the superclass access style, if defaulted, is the same as that of this * receiver. */ private void validateAccessType() { if (AccessCode.isEmpty(_accessType) || AccessCode.isExplicit(_accessType)) return; ClassMetaData sup = getPCSuperclassMetaData(); while (sup != null && sup.isExplicitAccess()) sup = sup.getPCSuperclassMetaData(); if (sup != null && sup.getDeclaredFields().length > 0) { int supCode = sup.getAccessType(); if (!AccessCode.isCompatibleSuper(_accessType, supCode)) throw new MetaDataException(_loc.get("access-inconsistent-inherit", new Object[]{this, AccessCode.toClassString(_accessType), sup, AccessCode.toClassString(supCode)}).toString()); } }
/** * Assert that this class' access type is allowed. * If no access style is set or an explicit style is set return. * Otherwise, if the superclass has persistent attributes, check that * the superclass access style, if defaulted, is the same as that of this * receiver. */ private void validateAccessType() { if (AccessCode.isEmpty(_accessType) || AccessCode.isExplicit(_accessType)) return; ClassMetaData sup = getPCSuperclassMetaData(); while (sup != null && sup.isExplicitAccess()) sup = sup.getPCSuperclassMetaData(); if (sup != null && sup.getDeclaredFields().length > 0) { int supCode = sup.getAccessType(); if (!AccessCode.isCompatibleSuper(_accessType, supCode)) throw new MetaDataException(_loc.get("access-inconsistent-inherit", new Object[]{this, AccessCode.toClassString(_accessType), sup, AccessCode.toClassString(supCode)}).toString()); } }