private int ProcessAspectsOf(ClassMetadata classMetadata, ITraverseAspectCommand 
			command, int currentSlot, ModifiedAspectTraversalStrategy.ITraverseAspectCommandProcessor
			 processor)
		{
			int aspectCount = command.DeclaredAspectCount(classMetadata);
			for (int i = 0; i < aspectCount && !command.Cancelled(); i++)
			{
				processor.Process(command, classMetadata._aspects[i], currentSlot);
				currentSlot++;
			}
			return currentSlot;
		}
Beispiel #2
0
        private int ProcessAspectsOf(ClassMetadata classMetadata, ITraverseAspectCommand
                                     command, int currentSlot, ModifiedAspectTraversalStrategy.ITraverseAspectCommandProcessor
                                     processor)
        {
            int aspectCount = command.DeclaredAspectCount(classMetadata);

            for (int i = 0; i < aspectCount && !command.Cancelled(); i++)
            {
                processor.Process(command, classMetadata._aspects[i], currentSlot);
                currentSlot++;
            }
            return(currentSlot);
        }
		public virtual void TraverseAllAspects(ITraverseAspectCommand command)
		{
			ClassMetadata classMetadata = _classMetadata;
			int currentSlot = 0;
			while (classMetadata != null)
			{
				int aspectCount = command.DeclaredAspectCount(classMetadata);
				for (int i = 0; i < aspectCount && !command.Cancelled(); i++)
				{
					command.ProcessAspect(classMetadata._aspects[i], currentSlot);
					currentSlot++;
				}
				if (command.Cancelled())
				{
					return;
				}
				classMetadata = classMetadata._ancestor;
			}
		}
        public virtual void TraverseAllAspects(ITraverseAspectCommand command)
        {
            ClassMetadata classMetadata = _classMetadata;
            int           currentSlot   = 0;

            while (classMetadata != null)
            {
                int aspectCount = command.DeclaredAspectCount(classMetadata);
                for (int i = 0; i < aspectCount && !command.Cancelled(); i++)
                {
                    command.ProcessAspect(classMetadata._aspects[i], currentSlot);
                    currentSlot++;
                }
                if (command.Cancelled())
                {
                    return;
                }
                classMetadata = classMetadata._ancestor;
            }
        }