All Downloads are FREE. Search and download functionalities are using the official Maven repository.

protoj.lang.StandardProjectDependency.aj Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2009 Ashley Williams
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You may
 * obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package protoj.lang;

/**
 * Many large classes are aggregates of helpers. The dependency rules are
 * specified here.
 * 
 * @author Ashley Williams
 * 
 */
public final aspect StandardProjectDependency {

	/**
	 * ScriptSession is a helper of StandardProject.
	 */
	declare error : call(protoj..ScriptSession.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ScriptSession))
		: "bad dependency: only class StandardProject can create an instance of the helper class ScriptSession";

	/**
	 * ScpFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..ScpFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ScpFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class ScpFeature";

	/**
	 * PublishFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..PublishFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..PublishFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class PublishFeature";

	/**
	 * UploadGoogleCodeFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..UploadGoogleCodeFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..UploadGoogleCodeFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class UploadGoogleCodeFeature";

	/**
	 * VerifyTarFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..VerifyTarFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..VerifyTarFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class VerifyTarFeature";

	/**
	 * StandardCommands is a helper of StandardProject.
	 */
	declare error : call(protoj..StandardCommands.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..StandardCommands))
		: "bad dependency: only class StandardProject can create an instance of the helper class StandardCommands";

	/**
	 * ArchiveFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..ArchiveFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ArchiveFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class ArchiveFeature";

	/**
	 * ClassesArchive is a helper of ArchiveFeature.
	 */
	declare error : call(protoj..ClassesArchive.new(..))
		&& !(within(protoj..ArchiveFeature) || within(protoj..ClassesArchive))
		: "bad dependency: only class ArchiveFeature can create an instance of the helper class ClassesArchive";

	/**
	 * JavadocArchive is a helper of ArchiveFeature.
	 */
	declare error : call(protoj..JavadocArchive.new(..))
		&& !(within(protoj..ArchiveFeature) || within(protoj..JavadocArchive))
		: "bad dependency: only class ArchiveFeature can create an instance of the helper class JavadocArchive";

	/**
	 * SourceArchive is a helper of ArchiveFeature.
	 */
	declare error : call(protoj..SourceArchive.new(..))
		&& !(within(protoj..ArchiveFeature) || within(protoj..SourceArchive))
		: "bad dependency: only class ArchiveFeature can create an instance of the helper class SourceArchive";

	/**
	 * ProjectArchive is a helper of ArchiveFeature.
	 */
	declare error : call(protoj..ProjectArchive.new(..))
		&& !(within(protoj..ArchiveFeature) || within(protoj..ProjectArchive))
		: "bad dependency: only class ArchiveFeature can create an instance of the ProjectArchive";

	/**
	 * CommandStore is a helper of StandardProject.
	 */
	declare error : call(protoj..CommandStore.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..CommandStore))
		: "bad dependency: only class StandardProject can create an instance of the helper class CommandStore";

	/**
	 * ProjectLayout is a helper of StandardProject.
	 */
	declare error : call(protoj..ProjectLayout.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ProjectLayout))
		: "bad dependency: only class StandardProject can create an instance of the helper class ProjectLayout";

	/**
	 * ProtoLogger is a helper of StandardProject.
	 */
	declare error : call(protoj..ProtoLogger.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ProtoLogger))
		: "bad dependency: only class StandardProject can create an instance of the helper class ProtoLogger";

	/**
	 * ProjectReporter is a helper of DispatchFeature.
	 */
	declare error : call(protoj..ProjectReporter.new(..))
		&& !(within(protoj..DispatchFeature) || within(protoj..ProjectReporter))
		: "bad dependency: only class DispatchFeature can create an instance of the helper class ProjectReporter";

	/**
	 * DispatchFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..DispatchFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..DispatchFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class DispatchFeature";

	/**
	 * CompileFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..CompileFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..CompileFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class CompileFeature";

	/**
	 * RetrieveFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..RetrieveFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..RetrieveFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class RetrieveFeature";

	/**
	 * ResourceFeature is a helper of StandardProject.
	 */
	declare error : call(protoj..ResourceFeature.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..ResourceFeature))
		: "bad dependency: only class StandardProject can create an instance of the helper class ResourceFeature";

	/**
	 * InstructionChain is a helper of StandardProject.
	 */
	declare error : call(protoj..InstructionChain.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..InstructionChain))
		: "bad dependency: only class StandardProject can create an instance of the helper class InstructionChain";

	/**
	 * Instruction is a helper of InstructionChain.
	 */
	declare error : call(protoj..Instruction.new(..))
		&& !(within(protoj..InstructionChain) || within(protoj..Instruction))
		: "bad dependency: only class InstructionChain can create an instance of the helper class Instruction";

	/**
	 * InstructionChainArgs is a helper of InstructionChain.
	 */
	declare error : call(protoj..InstructionChainArgs.new(..))
		&& !(within(protoj..InstructionChain) || within(protoj..InstructionChainArgs))
		: "bad dependency: only class InstructionChain can create an instance of the helper class InstructionChainArgs";

	/**
	 * Command is a helper of CommandStore
	 */
	declare error : call(protoj..Command.new(..))
		&& !(within(protoj..CommandStore) || within(protoj..Command))
		: "bad dependency: only class CommandStore can create an instance of the helper class Command";

	/**
	 * PropertyStore is a helper of StandardProject.
	 */
	declare error : call(protoj..PropertyStore.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..PropertyStore))
		: "bad dependency: only class StandardProject can create an instance of the helper class PropertyStore";

	/**
	 * StandardProperties is a helper of StandardProject.
	 */
	declare error : call(protoj..StandardProperties.new(..))
		&& !(within(protoj..StandardProject) || within(protoj..StandardProperties))
		: "bad dependency: only class StandardProject can create an instance of the helper class StandardProperties";

	/**
	 * PropertyInfo is a helper of PropertyStore.
	 */
	declare error : call(protoj..PropertyInfo.new(..))
		&& !(within(protoj..PropertyStore) || within(protoj..PropertyInfo))
		: "bad dependency: only class PropertyStore can create an instance of the helper class PropertyInfo";

	/**
	 * SampleProjectFeature is a helper of ProtoProject.
	 */
	declare error : call(protoj..SampleProjectFeature.new(..))
		&& !(within(protoj..ProtoProject) || within(protoj..SampleProjectFeature))
		: "bad dependency: only class ProtoProject can create an instance of the SampleProjectFeature";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy