public void TraverseAllAspects(IMarshallingInfo context, ITraverseAspectCommand command
                                       )
        {
            ClassMetadata classMetadata = ClassMetadata();

            AssertClassMetadata(context.ClassMetadata());
            classMetadata.TraverseAllAspects(command);
        }
		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 #3
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)
		{
			int currentSlot = 0;
			for (IEnumerator diffIter = _classDiffs.GetEnumerator(); diffIter.MoveNext(); )
			{
				HierarchyAnalyzer.Diff diff = ((HierarchyAnalyzer.Diff)diffIter.Current);
				ClassMetadata classMetadata = diff.ClassMetadata();
				if (diff.IsRemoved())
				{
					currentSlot = SkipAspectsOf(classMetadata, command, currentSlot);
					continue;
				}
				currentSlot = TraverseAspectsOf(classMetadata, command, currentSlot);
				if (command.Cancelled())
				{
					return;
				}
			}
		}
        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;
            }
        }
Beispiel #7
0
        public virtual void TraverseAllAspects(ITraverseAspectCommand command)
        {
            int currentSlot = 0;

            for (IEnumerator diffIter = _classDiffs.GetEnumerator(); diffIter.MoveNext();)
            {
                HierarchyAnalyzer.Diff diff          = ((HierarchyAnalyzer.Diff)diffIter.Current);
                ClassMetadata          classMetadata = diff.ClassMetadata();
                if (diff.IsRemoved())
                {
                    currentSlot = SkipAspectsOf(classMetadata, command, currentSlot);
                    continue;
                }
                currentSlot = TraverseAspectsOf(classMetadata, command, currentSlot);
                if (command.Cancelled())
                {
                    return;
                }
            }
        }
 public void TraverseAllAspects(IMarshallingInfo context, ITraverseAspectCommand command
     )
 {
     var classMetadata = ClassMetadata();
     AssertClassMetadata(context.ClassMetadata());
     classMetadata.TraverseAllAspects(command);
 }
			public void Process(ITraverseAspectCommand command, ClassAspect currentAspect, int
				 currentSlot)
			{
				command.ProcessAspectOnMissingClass(currentAspect, currentSlot);
			}
		private int SkipAspectsOf(ClassMetadata classMetadata, ITraverseAspectCommand command
			, int currentSlot)
		{
			return ProcessAspectsOf(classMetadata, command, currentSlot, new _ITraverseAspectCommandProcessor_70
				());
		}
 public void TraverseAllAspects(ITraverseAspectCommand command)
 {
 }
Beispiel #12
0
 public virtual void TraverseAllAspects(ITraverseAspectCommand command)
 {
     AspectTraversalStrategy().TraverseAllAspects(command);
 }
Beispiel #13
0
 public void TraverseAllAspects(ITraverseAspectCommand command)
 {
 }
Beispiel #14
0
 public void Process(ITraverseAspectCommand command, ClassAspect currentAspect, int
                     currentSlot)
 {
     command.ProcessAspectOnMissingClass(currentAspect, currentSlot);
 }
Beispiel #15
0
 private int SkipAspectsOf(ClassMetadata classMetadata, ITraverseAspectCommand command
                           , int currentSlot)
 {
     return(ProcessAspectsOf(classMetadata, command, currentSlot, new _ITraverseAspectCommandProcessor_70
                                 ()));
 }