private void appendTypeDeclaration() { Validate.isTrue(introductionTo.getPackage().equals(aspect.getPackage()), "Aspect and introduction must be in identical packages"); appendIndent(); if (itdTypeDetails.isPrivilegedAspect()) { append("privileged "); } append("aspect " + aspect.getSimpleTypeName() + " {"); this.newLine(false); indent(); this.newLine(); // Set to false, as it was set true during the above operations content = false; }
/** * Constructor based on an existing ITD * * @param existing (required) */ public ItdTypeDetailsBuilder(final ItdTypeDetails existing) { super(existing.getDeclaredByMetadataId(), existing); aspect = existing.getAspect(); governor = existing.getGovernor(); importRegistrationResolver = new ImportRegistrationResolverImpl(aspect.getPackage()); privilegedAspect = existing.isPrivilegedAspect(); declarePrecedence = existing.getDeclarePrecedence(); }
private void appendTypeDeclaration() { Validate.isTrue(introductionTo.getPackage().equals(aspect.getPackage()), "Aspect and introduction must be in identical packages"); appendIndent(); if (itdTypeDetails.isPrivilegedAspect()) { append("privileged "); } append("aspect " + aspect.getSimpleTypeName() + " {"); this.newLine(false); indent(); this.newLine(); // Set to false, as it was set true during the above operations content = false; }
/** * Constructor based on an existing ITD * * @param existing (required) */ public ItdTypeDetailsBuilder(final ItdTypeDetails existing) { super(existing.getDeclaredByMetadataId(), existing); aspect = existing.getAspect(); governor = existing.getGovernor(); importRegistrationResolver = new ImportRegistrationResolverImpl(aspect.getPackage()); privilegedAspect = existing.isPrivilegedAspect(); declarePrecedence = existing.getDeclarePrecedence(); }