Exemple #1
0
        // ------------------------------
        // - End internal methods region -
        // ------------------------------
        #endregion



        #region - Public methods -
        // -------------------------------
        // - Begin public methods region -
        // -------------------------------

        /// <summary>
        /// Create an Attribute structure from the Module/Macro/Sequence Item structure.
        /// </summary>
        /// <param name="attributes">The list to add the Attributes to.</param>
        public virtual void CreateAttributeStructure(SortedAttributeList attributes)
        {
            foreach (IAttributeOrMacro attributeOrMacro in this)
            {
                attributeOrMacro.CreateAttributeStructure(attributes);
            }
        }
Exemple #2
0
        /// <summary>
        /// Create an Attribute structure from the Module/Macro/Sequence Item structure.
        /// </summary>
        /// <param name="attributes">The list to add the Attributes to.</param>
        public override void CreateAttributeStructure(SortedAttributeList attributes)
        {
            this.encounteredDuringCreateAttributeReferencesRecursively++;

            if (this.encounteredDuringCreateAttributeReferencesRecursively <= 2)
            {
                base.CreateAttributeStructure(attributes);
            }

            this.encounteredDuringCreateAttributeReferencesRecursively--;
        }
Exemple #3
0
 /// <summary>
 /// Create an Attribute structure from the Module/Macro/Sequence Item structure.
 /// </summary>
 /// <param name="attributes">The list to add this Attribute to.</param>
 public override void CreateAttributeStructure(SortedAttributeList attributes)
 {
     attributes.Add(this);
 }
Exemple #4
0
 /// <summary>
 /// Create an Attribute structure from the Module/Macro/Sequence Item structure.
 /// </summary>
 /// <param name="attributes">The list to add this Attribute to.</param>
 public abstract void CreateAttributeStructure(SortedAttributeList attributes);
Exemple #5
0
        /// <summary>
        /// Create an Attribute structure from the Module/Macro/Sequence Item structure.
        /// </summary>
        /// <param name="attributes">The list to add this Attribute to.</param>
        public override void CreateAttributeStructure(SortedAttributeList attributes)
        {
            attributes.Add(this);

            this.sequenceItem.CreateAttributeStructure(this.sortedAttributeList);
        }