//──────────────────────────────────────── /// <summary> /// 追加。 /// </summary> /// <param name="nItems"></param> /// <param name="request"></param> /// <param name="log_Reports"></param> public void Add( Expression_Node_String ec_Child, Log_Reports log_Reports ) { Log_Method log_Method = new Log_MethodImpl(0); log_Method.BeginMethod(Info_Syntax.Name_Library, this, "Add", log_Reports); if (ec_Child is Expression_Node_StringImpl) { ((Expression_Node_StringImpl)ec_Child).Parent_Expression = this.owner_Expression; } else if (ec_Child is Expression_Leaf_StringImpl) { ((Expression_Leaf_StringImpl)ec_Child).Parent_Expression = this.owner_Expression; } else if (ec_Child is Expression_TexttemplateP1pImpl) { ((Expression_TexttemplateP1pImpl)ec_Child).Parent_Expression = this.owner_Expression; } else { log_Method.WriteWarning_ToConsole(" 想定外のクラス=[" + ec_Child.GetType().Name + "]"); } this.listExpression_Item.Add(ec_Child); log_Method.EndMethod(log_Reports); }
//──────────────────────────────────────── /// <summary> /// 追加。 /// </summary> /// <param name="nItems"></param> /// <param name="request"></param> /// <param name="log_Reports"></param> public void Add( Expression_Node_String ec_Child, Log_Reports log_Reports ) { Log_Method log_Method = new Log_MethodImpl(0); log_Method.BeginMethod(Info_Syntax.Name_Library, this, "Add",log_Reports); if (ec_Child is Expression_Node_StringImpl) { ((Expression_Node_StringImpl)ec_Child).Parent_Expression = this.owner_Expression; } else if (ec_Child is Expression_Leaf_StringImpl) { ((Expression_Leaf_StringImpl)ec_Child).Parent_Expression = this.owner_Expression; } else if (ec_Child is Expression_TexttemplateP1pImpl) { ((Expression_TexttemplateP1pImpl)ec_Child).Parent_Expression = this.owner_Expression; } else { log_Method.WriteWarning_ToConsole(" 想定外のクラス=[" + ec_Child.GetType().Name + "]"); } this.listExpression_Item.Add(ec_Child); log_Method.EndMethod(log_Reports); }