/** * Convenience method to return deprecation information for the class. * Acts internally through the {@link Attributes} interface. */ public boolean isDeprecated() { return getAttribute(Constants.ATTR_DEPRECATED) != null; }
/** * Convenience method to return deprecation information for the class. * Acts internally through the {@link Attributes} interface. */ public boolean isDeprecated() { return getAttribute(Constants.ATTR_DEPRECATED) != null; }
/** * Return source file information for the class. * Acts internally through the {@link Attributes} interface. * * @param add if true, a new source file attribute will be added * if not already present * @return the source file information, or null if none and the * <code>add</code> param is set to false */ public SourceFile getSourceFile(boolean add) { SourceFile source = (SourceFile) getAttribute(Constants.ATTR_SOURCE); if (!add || (source != null)) return source; return (SourceFile) addAttribute(Constants.ATTR_SOURCE); }
/** * Return source file information for the class. * Acts internally through the {@link Attributes} interface. * * @param add if true, a new source file attribute will be added * if not already present * @return the source file information, or null if none and the * <code>add</code> param is set to false */ public SourceFile getSourceFile(boolean add) { SourceFile source = (SourceFile) getAttribute(Constants.ATTR_SOURCE); if (!add || (source != null)) return source; return (SourceFile) addAttribute(Constants.ATTR_SOURCE); }
/** * Return inner classes information for the class. * Acts internally through the {@link Attributes} interface. * * @param add if true, a new inner classes attribute will be added * if not already present * @return the inner classes information, or null if none and the * <code>add</code> param is set to false */ public InnerClasses getInnerClasses(boolean add) { InnerClasses inner = (InnerClasses) getAttribute (Constants.ATTR_INNERCLASS); if (!add || (inner != null)) return inner; return (InnerClasses) addAttribute(Constants.ATTR_INNERCLASS); }
/** * Return inner classes information for the class. * Acts internally through the {@link Attributes} interface. * * @param add if true, a new inner classes attribute will be added * if not already present * @return the inner classes information, or null if none and the * <code>add</code> param is set to false */ public InnerClasses getInnerClasses(boolean add) { InnerClasses inner = (InnerClasses) getAttribute (Constants.ATTR_INNERCLASS); if (!add || (inner != null)) return inner; return (InnerClasses) addAttribute(Constants.ATTR_INNERCLASS); }
private void configureBCs() { if (!_bcsConfigured) { if (getRedefine()) { if (_managedType.getAttribute(REDEFINED_ATTRIBUTE) == null) _managedType.addAttribute(REDEFINED_ATTRIBUTE); else _isAlreadyRedefined = true; } if (getCreateSubclass()) { PCSubclassValidator val = new PCSubclassValidator( _meta, _managedType, _log, _fail); val.assertCanSubclass(); _pc = _managedType.getProject().loadClass( toPCSubclassName(_managedType.getType())); if (_pc.getSuperclassBC() != _managedType) { _pc.setSuperclass(_managedType); _pc.setAbstract(_managedType.isAbstract()); _pc.declareInterface(DynamicPersistenceCapable.class); } else { _isAlreadySubclassed = true; } } _bcsConfigured = true; } }
private void configureBCs() { if (!_bcsConfigured) { if (getRedefine()) { if (_managedType.getAttribute(REDEFINED_ATTRIBUTE) == null) _managedType.addAttribute(REDEFINED_ATTRIBUTE); else _isAlreadyRedefined = true; } if (getCreateSubclass()) { PCSubclassValidator val = new PCSubclassValidator( _meta, _managedType, _log, _fail); val.assertCanSubclass(); _pc = _managedType.getProject().loadClass( toPCSubclassName(_managedType.getType())); if (_pc.getSuperclassBC() != _managedType) { _pc.setSuperclass(_managedType); _pc.setAbstract(_managedType.isAbstract()); _pc.declareInterface(DynamicPersistenceCapable.class); } else { _isAlreadySubclassed = true; } } _bcsConfigured = true; } }
private void configureBCs() { if (!_bcsConfigured) { if (getRedefine()) { if (_managedType.getAttribute(REDEFINED_ATTRIBUTE) == null) _managedType.addAttribute(REDEFINED_ATTRIBUTE); else _isAlreadyRedefined = true; } if (getCreateSubclass()) { PCSubclassValidator val = new PCSubclassValidator( _meta, _managedType, _log, _fail); val.assertCanSubclass(); _pc = _managedType.getProject().loadClass( toPCSubclassName(_managedType.getType())); if (_pc.getSuperclassBC() != _managedType) { _pc.setSuperclass(_managedType); _pc.setAbstract(_managedType.isAbstract()); _pc.declareInterface(DynamicPersistenceCapable.class); } else { _isAlreadySubclassed = true; } } _bcsConfigured = true; } }
private void configureBCs() { if (!_bcsConfigured) { if (getRedefine()) { if (_managedType.getAttribute(REDEFINED_ATTRIBUTE) == null) _managedType.addAttribute(REDEFINED_ATTRIBUTE); else _isAlreadyRedefined = true; } if (getCreateSubclass()) { PCSubclassValidator val = new PCSubclassValidator( _meta, _managedType, _log, _fail); val.assertCanSubclass(); _pc = _managedType.getProject().loadClass( toPCSubclassName(_managedType.getType())); if (_pc.getSuperclassBC() != _managedType) { _pc.setSuperclass(_managedType); _pc.setAbstract(_managedType.isAbstract()); _pc.declareInterface(DynamicPersistenceCapable.class); } else { _isAlreadySubclassed = true; } } _bcsConfigured = true; } }
private void configureBCs() { if (!_bcsConfigured) { if (getRedefine()) { if (_managedType.getAttribute(REDEFINED_ATTRIBUTE) == null) _managedType.addAttribute(REDEFINED_ATTRIBUTE); else _isAlreadyRedefined = true; } if (getCreateSubclass()) { PCSubclassValidator val = new PCSubclassValidator( _meta, _managedType, _log, _fail); val.assertCanSubclass(); _pc = _managedType.getProject().loadClass( toPCSubclassName(_managedType.getType())); if (_pc.getSuperclassBC() != _managedType) { _pc.setSuperclass(_managedType); _pc.setAbstract(_managedType.isAbstract()); _pc.declareInterface(DynamicPersistenceCapable.class); } else { _isAlreadySubclassed = true; } } _bcsConfigured = true; } }