Exemplo n.º 1
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_event_token_ == child)
     {
         _event_token_ = null;
         return;
     }
     if (_events_ == child)
     {
         _events_ = null;
         return;
     }
     if (_conditions_token_ == child)
     {
         _conditions_token_ = null;
         return;
     }
     if (_conditions_ == child)
     {
         _conditions_ = null;
         return;
     }
     if (_actions_token_ == child)
     {
         _actions_token_ = null;
         return;
     }
     if (_actions_ == child)
     {
         _actions_ = null;
         return;
     }
 }
Exemplo n.º 2
0
        public void SetConditionsToken(TConditions node)
        {
            if (_conditions_token_ != null)
            {
                _conditions_token_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _conditions_token_ = node;
        }
Exemplo n.º 3
0
 public virtual void CaseTConditions(TConditions node)
 {
     DefaultCase(node);
 }
Exemplo n.º 4
0
 public ATriggerDecl(
         PVisibilityModifier _visibility_modifier_,
         TIdentifier _name_,
         TEvents _event_token_,
         PBlock _events_,
         TConditions _conditions_token_,
         PBlock _conditions_,
         TActions _actions_token_,
         PBlock _actions_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetName(_name_);
     SetEventToken(_event_token_);
     SetEvents(_events_);
     SetConditionsToken(_conditions_token_);
     SetConditions(_conditions_);
     SetActionsToken(_actions_token_);
     SetActions(_actions_);
 }
Exemplo n.º 5
0
 public override void CaseTConditions(TConditions node)
 {
     index = 18;
 }