2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
9 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
15 * http://www.apache.org/licenses/LICENSE-2.0
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
25 using System.Collections.Generic;
26 using System.Reflection;
29 namespace Tizen.NUI.EXaml
31 internal class GatherMethodsBlock : Action
33 public GatherMethodsBlock(GlobalDataList globalDataList, Action parent)
36 this.globalDataList = globalDataList;
39 private Action parent;
40 private GlobalDataList globalDataList;
42 public Action DealChar(char c)
52 childOp = new GetValueListAction(')', this);
63 private GetValueListAction childOp;
70 public void OnActive()
72 int typeIndex = int.Parse(childOp.ValueList[0] as string);
73 string name = childOp.ValueList[1] as string;
74 var paramList = childOp.ValueList[2] as List<object>;
75 globalDataList.PreLoadOperations.Add(new GatherMethod(globalDataList, typeIndex, name, paramList));