-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCypherListener.java
More file actions
459 lines (458 loc) · 15.3 KB
/
CypherListener.java
File metadata and controls
459 lines (458 loc) · 15.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
// Generated from src/Cypher.g4 by ANTLR 4.6
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link CypherParser}.
*/
public interface CypherListener extends ParseTreeListener {
/**
* Enter a parse tree produced by {@link CypherParser#cypher}.
* @param ctx the parse tree
*/
void enterCypher(CypherParser.CypherContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#cypher}.
* @param ctx the parse tree
*/
void exitCypher(CypherParser.CypherContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#singleQuery}.
* @param ctx the parse tree
*/
void enterSingleQuery(CypherParser.SingleQueryContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#singleQuery}.
* @param ctx the parse tree
*/
void exitSingleQuery(CypherParser.SingleQueryContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#clause}.
* @param ctx the parse tree
*/
void enterClause(CypherParser.ClauseContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#clause}.
* @param ctx the parse tree
*/
void exitClause(CypherParser.ClauseContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#match}.
* @param ctx the parse tree
*/
void enterMatch(CypherParser.MatchContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#match}.
* @param ctx the parse tree
*/
void exitMatch(CypherParser.MatchContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#return1}.
* @param ctx the parse tree
*/
void enterReturn1(CypherParser.Return1Context ctx);
/**
* Exit a parse tree produced by {@link CypherParser#return1}.
* @param ctx the parse tree
*/
void exitReturn1(CypherParser.Return1Context ctx);
/**
* Enter a parse tree produced by {@link CypherParser#pattern}.
* @param ctx the parse tree
*/
void enterPattern(CypherParser.PatternContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#pattern}.
* @param ctx the parse tree
*/
void exitPattern(CypherParser.PatternContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#patternPart}.
* @param ctx the parse tree
*/
void enterPatternPart(CypherParser.PatternPartContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#patternPart}.
* @param ctx the parse tree
*/
void exitPatternPart(CypherParser.PatternPartContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#patternElement}.
* @param ctx the parse tree
*/
void enterPatternElement(CypherParser.PatternElementContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#patternElement}.
* @param ctx the parse tree
*/
void exitPatternElement(CypherParser.PatternElementContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#patternElementChain}.
* @param ctx the parse tree
*/
void enterPatternElementChain(CypherParser.PatternElementChainContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#patternElementChain}.
* @param ctx the parse tree
*/
void exitPatternElementChain(CypherParser.PatternElementChainContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#nodePattern}.
* @param ctx the parse tree
*/
void enterNodePattern(CypherParser.NodePatternContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#nodePattern}.
* @param ctx the parse tree
*/
void exitNodePattern(CypherParser.NodePatternContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#relationshipPattern}.
* @param ctx the parse tree
*/
void enterRelationshipPattern(CypherParser.RelationshipPatternContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#relationshipPattern}.
* @param ctx the parse tree
*/
void exitRelationshipPattern(CypherParser.RelationshipPatternContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#relationshipDetail}.
* @param ctx the parse tree
*/
void enterRelationshipDetail(CypherParser.RelationshipDetailContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#relationshipDetail}.
* @param ctx the parse tree
*/
void exitRelationshipDetail(CypherParser.RelationshipDetailContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#properties}.
* @param ctx the parse tree
*/
void enterProperties(CypherParser.PropertiesContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#properties}.
* @param ctx the parse tree
*/
void exitProperties(CypherParser.PropertiesContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#relationshipTypes}.
* @param ctx the parse tree
*/
void enterRelationshipTypes(CypherParser.RelationshipTypesContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#relationshipTypes}.
* @param ctx the parse tree
*/
void exitRelationshipTypes(CypherParser.RelationshipTypesContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#nodeLabels}.
* @param ctx the parse tree
*/
void enterNodeLabels(CypherParser.NodeLabelsContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#nodeLabels}.
* @param ctx the parse tree
*/
void exitNodeLabels(CypherParser.NodeLabelsContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#rangeLiteral}.
* @param ctx the parse tree
*/
void enterRangeLiteral(CypherParser.RangeLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#rangeLiteral}.
* @param ctx the parse tree
*/
void exitRangeLiteral(CypherParser.RangeLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#labelName}.
* @param ctx the parse tree
*/
void enterLabelName(CypherParser.LabelNameContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#labelName}.
* @param ctx the parse tree
*/
void exitLabelName(CypherParser.LabelNameContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#relTypeName}.
* @param ctx the parse tree
*/
void enterRelTypeName(CypherParser.RelTypeNameContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#relTypeName}.
* @param ctx the parse tree
*/
void exitRelTypeName(CypherParser.RelTypeNameContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#expression}.
* @param ctx the parse tree
*/
void enterExpression(CypherParser.ExpressionContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#expression}.
* @param ctx the parse tree
*/
void exitExpression(CypherParser.ExpressionContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_not}.
* @param ctx the parse tree
*/
void enterExp_not(CypherParser.Exp_notContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_not}.
* @param ctx the parse tree
*/
void exitExp_not(CypherParser.Exp_notContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_arithmatic}.
* @param ctx the parse tree
*/
void enterExp_arithmatic(CypherParser.Exp_arithmaticContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_arithmatic}.
* @param ctx the parse tree
*/
void exitExp_arithmatic(CypherParser.Exp_arithmaticContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_binary}.
* @param ctx the parse tree
*/
void enterExp_binary(CypherParser.Exp_binaryContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_binary}.
* @param ctx the parse tree
*/
void exitExp_binary(CypherParser.Exp_binaryContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_muldiv}.
* @param ctx the parse tree
*/
void enterExp_muldiv(CypherParser.Exp_muldivContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_muldiv}.
* @param ctx the parse tree
*/
void exitExp_muldiv(CypherParser.Exp_muldivContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_xor}.
* @param ctx the parse tree
*/
void enterExp_xor(CypherParser.Exp_xorContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_xor}.
* @param ctx the parse tree
*/
void exitExp_xor(CypherParser.Exp_xorContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_unary}.
* @param ctx the parse tree
*/
void enterExp_unary(CypherParser.Exp_unaryContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_unary}.
* @param ctx the parse tree
*/
void exitExp_unary(CypherParser.Exp_unaryContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#exp_basic}.
* @param ctx the parse tree
*/
void enterExp_basic(CypherParser.Exp_basicContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#exp_basic}.
* @param ctx the parse tree
*/
void exitExp_basic(CypherParser.Exp_basicContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#expression2}.
* @param ctx the parse tree
*/
void enterExpression2(CypherParser.Expression2Context ctx);
/**
* Exit a parse tree produced by {@link CypherParser#expression2}.
* @param ctx the parse tree
*/
void exitExpression2(CypherParser.Expression2Context ctx);
/**
* Enter a parse tree produced by {@link CypherParser#atom}.
* @param ctx the parse tree
*/
void enterAtom(CypherParser.AtomContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#atom}.
* @param ctx the parse tree
*/
void exitAtom(CypherParser.AtomContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#literal}.
* @param ctx the parse tree
*/
void enterLiteral(CypherParser.LiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#literal}.
* @param ctx the parse tree
*/
void exitLiteral(CypherParser.LiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#numberLiteral}.
* @param ctx the parse tree
*/
void enterNumberLiteral(CypherParser.NumberLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#numberLiteral}.
* @param ctx the parse tree
*/
void exitNumberLiteral(CypherParser.NumberLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#booleanLiteral}.
* @param ctx the parse tree
*/
void enterBooleanLiteral(CypherParser.BooleanLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#booleanLiteral}.
* @param ctx the parse tree
*/
void exitBooleanLiteral(CypherParser.BooleanLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#listLiteral}.
* @param ctx the parse tree
*/
void enterListLiteral(CypherParser.ListLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#listLiteral}.
* @param ctx the parse tree
*/
void exitListLiteral(CypherParser.ListLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#mapLiteral}.
* @param ctx the parse tree
*/
void enterMapLiteral(CypherParser.MapLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#mapLiteral}.
* @param ctx the parse tree
*/
void exitMapLiteral(CypherParser.MapLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#partialComparisonExpression}.
* @param ctx the parse tree
*/
void enterPartialComparisonExpression(CypherParser.PartialComparisonExpressionContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#partialComparisonExpression}.
* @param ctx the parse tree
*/
void exitPartialComparisonExpression(CypherParser.PartialComparisonExpressionContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#parenthesizedExpression}.
* @param ctx the parse tree
*/
void enterParenthesizedExpression(CypherParser.ParenthesizedExpressionContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#parenthesizedExpression}.
* @param ctx the parse tree
*/
void exitParenthesizedExpression(CypherParser.ParenthesizedExpressionContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#relationshipsPattern}.
* @param ctx the parse tree
*/
void enterRelationshipsPattern(CypherParser.RelationshipsPatternContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#relationshipsPattern}.
* @param ctx the parse tree
*/
void exitRelationshipsPattern(CypherParser.RelationshipsPatternContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#propertyLookup}.
* @param ctx the parse tree
*/
void enterPropertyLookup(CypherParser.PropertyLookupContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#propertyLookup}.
* @param ctx the parse tree
*/
void exitPropertyLookup(CypherParser.PropertyLookupContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#propertyKeyName}.
* @param ctx the parse tree
*/
void enterPropertyKeyName(CypherParser.PropertyKeyNameContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#propertyKeyName}.
* @param ctx the parse tree
*/
void exitPropertyKeyName(CypherParser.PropertyKeyNameContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#variable}.
* @param ctx the parse tree
*/
void enterVariable(CypherParser.VariableContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#variable}.
* @param ctx the parse tree
*/
void exitVariable(CypherParser.VariableContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#integerLiteral}.
* @param ctx the parse tree
*/
void enterIntegerLiteral(CypherParser.IntegerLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#integerLiteral}.
* @param ctx the parse tree
*/
void exitIntegerLiteral(CypherParser.IntegerLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#doubleLiteral}.
* @param ctx the parse tree
*/
void enterDoubleLiteral(CypherParser.DoubleLiteralContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#doubleLiteral}.
* @param ctx the parse tree
*/
void exitDoubleLiteral(CypherParser.DoubleLiteralContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#symbolicName}.
* @param ctx the parse tree
*/
void enterSymbolicName(CypherParser.SymbolicNameContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#symbolicName}.
* @param ctx the parse tree
*/
void exitSymbolicName(CypherParser.SymbolicNameContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#leftArrowHead}.
* @param ctx the parse tree
*/
void enterLeftArrowHead(CypherParser.LeftArrowHeadContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#leftArrowHead}.
* @param ctx the parse tree
*/
void exitLeftArrowHead(CypherParser.LeftArrowHeadContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#rightArrowHead}.
* @param ctx the parse tree
*/
void enterRightArrowHead(CypherParser.RightArrowHeadContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#rightArrowHead}.
* @param ctx the parse tree
*/
void exitRightArrowHead(CypherParser.RightArrowHeadContext ctx);
/**
* Enter a parse tree produced by {@link CypherParser#dash}.
* @param ctx the parse tree
*/
void enterDash(CypherParser.DashContext ctx);
/**
* Exit a parse tree produced by {@link CypherParser#dash}.
* @param ctx the parse tree
*/
void exitDash(CypherParser.DashContext ctx);
}