public static boolean isEmpty(ClassMetaData meta) { return isEmpty(meta.getAccessType()); }
public static boolean isEmpty(ClassMetaData meta) { return isEmpty(meta.getAccessType()); }
public static boolean isEmpty(ClassMetaData meta) { return isEmpty(meta.getAccessType()); }
public static boolean isEmpty(ClassMetaData meta) { return isEmpty(meta.getAccessType()); }
/** * Affirms if the sub class access type is compatible with super class * access style. */ public static boolean isCompatibleSuper(int subCode, int superCode) { if (isEmpty(superCode)) return true; if (isValidClassCode(subCode) && isValidClassCode(superCode)) { if (isExplicit(subCode)) return true; return subCode == superCode; } return false; }
/** * Affirms if the sub class access type is compatible with super class * access style. */ public static boolean isCompatibleSuper(int subCode, int superCode) { if (isEmpty(superCode)) return true; if (isValidClassCode(subCode) && isValidClassCode(superCode)) { if (isExplicit(subCode)) return true; return subCode == superCode; } return false; }
/** * Affirms if the sub class access type is compatible with super class * access style. */ public static boolean isCompatibleSuper(int subCode, int superCode) { if (isEmpty(superCode)) return true; if (isValidClassCode(subCode) && isValidClassCode(superCode)) { if (isExplicit(subCode)) return true; return subCode == superCode; } return false; }
/** * Affirms if the sub class access type is compatible with super class * access style. */ public static boolean isCompatibleSuper(int subCode, int superCode) { if (isEmpty(superCode)) return true; if (isValidClassCode(subCode) && isValidClassCode(superCode)) { if (isExplicit(subCode)) return true; return subCode == superCode; } return false; }
/** * 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()); } }