コード例 #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;
     }
 }
コード例 #2
0
        public void SetEventToken(TEvents node)
        {
            if (_event_token_ != null)
            {
                _event_token_.Parent(null);
            }

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

                node.Parent(this);
            }

            _event_token_ = node;
        }
コード例 #3
0
 public virtual void CaseTEvents(TEvents node)
 {
     DefaultCase(node);
 }
コード例 #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_);
 }
コード例 #5
0
 public override void CaseTEvents(TEvents node)
 {
     index = 17;
 }