• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Shenzhen Kaihong Digital.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package utils;
17 
18 /**
19  * <h3>类名:该类用于xxx</h3>
20  * description ${description}
21  *
22  * @author ${USER}
23  * date 2025-02-28
24  * @since 2025-02-28
25  * @version 1.0
26  */
27 public class Constants {
28     /**
29      * 解析未知代码
30      */
31     public static final int PARSE_UNKNOWN_LANGUAGE = -1;
32 
33     /**
34      * 解析c/cpp代码
35      */
36     public static final int PARSE_C_CPP_LANGUAGE = 1;
37 
38     /**
39      * 解析ts代码
40      */
41     public static final int PARSE_TS_LANGUAGE = 2;
42 
43     /**
44      * 解析ts 抽象类
45      */
46     public static final int PARSE_TS_ABSTRACT = 1;
47 
48     /**
49      * 解析ts 类
50      */
51     public static final int PARSE_TS_CLASS = 2;
52 
53     /**
54      * 解析ts 枚举型
55      */
56     public static final int PARSE_TS_ENUM = 3;
57 
58     /**
59      * 解析ts export
60      */
61     public static final int PARSE_TS_EXPORT = 4;
62 
63     /**
64      * 解析ts 方法
65      */
66     public static final int PARSE_TS_FUNCTION = 5;
67 
68     /**
69      * 解析ts 通用类
70      */
71     public static final int PARSE_TS_GENERIC = 6;
72 
73     /**
74      * 解析ts 通用class
75      */
76     public static final int PARSE_TS_GENERIC_CLASS = 7;
77 
78     /**
79      * 解析ts interface
80      */
81     public static final int PARSE_TS_GENERIC_INTERFACE = 8;
82 
83     /**
84      * 解析ts 导入
85      */
86     public static final int PARSE_TS_IMPORT = 9;
87 
88     /**
89      * 解析ts 接口
90      */
91     public static final int PARSE_TS_INTERFACE = 10;
92 
93     /**
94      * 解析ts js 类
95      */
96     public static final int PARSE_TS_JS_CLASS = 11;
97 
98     /**
99      * 解析ts 循环
100      */
101     public static final int PARSE_TS_LOOP = 12;
102 
103     /**
104      * 解析ts 模块
105      */
106     public static final int PARSE_TS_MODULE = 13;
107 
108     /**
109      * 解析ts not null
110      */
111     public static final int PARSE_TS_NON_NULL = 14;
112 
113     /**
114      * 解析ts 初始化
115      */
116     public static final int PARSE_TS_OBJECT_INITIALIZER = 15;
117 
118     /**
119      * 解析ts 状态
120      */
121     public static final int PARSE_TS_STATEMENT = 16;
122 
123     /**
124      * 解析ts 模板
125      */
126     public static final int PARSE_TS_TEMPLATE_STRING = 17;
127 
128     /**
129      * 解析ts 类型定义
130      */
131     public static final int PARSE_TS_TYPE = 18;
132 
133     /**
134      * 解析ts 变量
135      */
136     public static final int PARSE_TS_VARIABLE = 19;
137 
138     /**
139      * 解析ts 退出解析
140      */
141     public static final int PARSE_TS_EXIT_TRANSLATION = 20;
142 
143     /**
144      * 解析c/cpp145      */
146     public static final int PARSE_C_CPP_CLASS = 51;
147 
148     /**
149      * 解析c/cpp 属性
150      */
151     public static final int PARSE_C_CPP_ATTRIBUTE = 52;
152 
153     /**
154      * 解析c/cpp 成员
155      */
156     public static final int PARSE_C_CPP_MEMBER = 53;
157 
158     /**
159      * 解析c/cpp 方法
160      */
161     public static final int PARSE_C_CPP_FUNCTION = 54;
162 
163     /**
164      * 解析c/cpp 枚举
165      */
166     public static final int PARSE_C_CPP_ENUM = 55;
167 
168     /**
169      * 解析c/cpp 类型定义
170      */
171     public static final int PARSE_C_CPP_TYPE = 56;
172 
173     /**
174      * 解析c/cpp 模板类
175      */
176     public static final int PARSE_C_CPP_TEMPLATE = 57;
177 
178     /**
179      * 解析c/cpp 联合体
180      */
181     public static final int PARSE_C_CPP_UNION = 58;
182 
183     /**
184      * 解析c/cpp 结构体
185      */
186     public static final int PARSE_C_CPP_STRUCT = 59;
187 
188     /**
189      * 解析c/cpp 宏定义
190      */
191     public static final int PARSE_C_CPP_MACRO = 60;
192 
193     /**
194      * 解析c/cpp 指针
195      */
196     public static final int PARSE_C_CPP_POINT = 61;
197 
198     /**
199      * 解析c/cpp 纯虚
200      */
201     public static final int PARSE_C_CPP_PURE = 62;
202 
203     /**
204      * 解析c/cpp 退出遍历
205      */
206     public static final int PARSE_C_CPP_EXIT_TRANSLATION = 63;
207 
208     /**
209      * 十分之
210      */
211     public static final int TEN_PERCENT = 10;
212 
213     /**
214      * 百分之
215      */
216     public static final int HUNDRED_PERCENT = 100;
217 
218     /**
219      * 千分之
220      */
221     public static final int THOUSAND_PERCENT = 1000;
222 
223     /**
224      * 开始状态
225      */
226     public static final String START_STATUS = "start";
227 
228     /**
229      * 暂停状态
230      */
231     public static final String PAUSE_STATUS = "pause";
232 
233     /**
234      * 恢复状态
235      */
236     public static final String RESUME_STATUS = "resume";
237 
238     /**
239      * 停止状态
240      */
241     public static final String STOP_STATUS = "stop";
242 
243     /**
244      * 完成状态
245      */
246     public static final String COMPLETE_STATUS = "complete";
247 
248     /**
249      * 结束状态
250      */
251     public static final String FINISH_STATUS = "finish";
252 
253     /**
254      * c/cpp开始消息
255      */
256     public static final String C_CPP_START_MSG = "c/cpp parse char stream start";
257 
258     /**
259      * ts开始消息
260      */
261     public static final String TS_START_MSG = "ts parse char stream start";
262 
263     /**
264      * c/cpp 暂停消息
265      */
266     public static final String C_CPP_PAUSE_MSG = "c/cpp parse char stream pause";
267 
268     /**
269      * ts 暂停消息
270      */
271     public static final String TS_PAUSE_MSG = "ts parse char stream pause";
272 
273     /**
274      * c/cpp 恢复消息
275      */
276     public static final String C_CPP_RESUME_MSG = "c/cpp parse char stream resume";
277 
278     /**
279      * ts 恢复消息
280      */
281     public static final String TS_RESUME_MSG = "ts parse char stream resume";
282 
283     /**
284      * c/cpp 结束消息
285      */
286     public static final String C_CPP_FINISH_MSG = "c/cpp parse char stream finish";
287 
288     /**
289      * ts 结束消息
290      */
291     public static final String TS_FINISH_MSG = "ts parse char stream finish";
292 
293     /**
294      * c/cpp 完成消息
295      */
296     public static final String C_CPP_COMPLETE_MSG = "c/cpp parse char stream complete";
297 
298     /**
299      * ts 完成消息
300      */
301     public static final String TS_COMPLETE_MSG = "ts parse char stream complete";
302 }
303