1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one or more
3
+ * contributor license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright ownership.
5
+ * The ASF licenses this file to You under the Apache License, Version 2.0
6
+ * (the "License"); you may not use this file except in compliance with
7
+ * the License. You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ // Generated from AlertExpression.g4 by ANTLR 4.13.2
19
+
20
+ package org .apache .hertzbeat .alert .expr ;
21
+
22
+ import org .antlr .v4 .runtime .tree .AbstractParseTreeVisitor ;
23
+
24
+ /**
25
+ * This class provides an empty implementation of {@link AlertExpressionVisitor},
26
+ * which can be extended to create a visitor which only needs to handle a subset
27
+ * of the available methods.
28
+ *
29
+ * @param <T> The return type of the visit operation. Use {@link Void} for
30
+ * operations with no return type.
31
+ */
32
+ @ SuppressWarnings ("CheckReturnValue" )
33
+ public class AlertExpressionBaseVisitor <T > extends AbstractParseTreeVisitor <T > implements AlertExpressionVisitor <T > {
34
+ /**
35
+ * {@inheritDoc}
36
+ *
37
+ * <p>The default implementation returns the result of calling
38
+ * {@link #visitChildren} on {@code ctx}.</p>
39
+ */
40
+ @ Override public T visitExpression (AlertExpressionParser .ExpressionContext ctx ) { return visitChildren (ctx ); }
41
+
42
+ /**
43
+ * {@inheritDoc}
44
+ *
45
+ * <p>The default implementation returns the result of calling
46
+ * {@link #visitChildren} on {@code ctx}.</p>
47
+ */
48
+ @ Override public T visitAndExpr (AlertExpressionParser .AndExprContext ctx ) { return visitChildren (ctx ); }
49
+
50
+ /**
51
+ * {@inheritDoc}
52
+ *
53
+ * <p>The default implementation returns the result of calling
54
+ * {@link #visitChildren} on {@code ctx}.</p>
55
+ */
56
+ @ Override public T visitQueryExpr (AlertExpressionParser .QueryExprContext ctx ) { return visitChildren (ctx ); }
57
+
58
+ /**
59
+ * {@inheritDoc}
60
+ *
61
+ * <p>The default implementation returns the result of calling
62
+ * {@link #visitChildren} on {@code ctx}.</p>
63
+ */
64
+ @ Override public T visitComparisonExpr (AlertExpressionParser .ComparisonExprContext ctx ) { return visitChildren (ctx ); }
65
+
66
+ /**
67
+ * {@inheritDoc}
68
+ *
69
+ * <p>The default implementation returns the result of calling
70
+ * {@link #visitChildren} on {@code ctx}.</p>
71
+ */
72
+ @ Override public T visitUnlessExpr (AlertExpressionParser .UnlessExprContext ctx ) { return visitChildren (ctx ); }
73
+
74
+ /**
75
+ * {@inheritDoc}
76
+ *
77
+ * <p>The default implementation returns the result of calling
78
+ * {@link #visitChildren} on {@code ctx}.</p>
79
+ */
80
+ @ Override public T visitLiteralExpr (AlertExpressionParser .LiteralExprContext ctx ) { return visitChildren (ctx ); }
81
+
82
+ /**
83
+ * {@inheritDoc}
84
+ *
85
+ * <p>The default implementation returns the result of calling
86
+ * {@link #visitChildren} on {@code ctx}.</p>
87
+ */
88
+ @ Override public T visitParenExpr (AlertExpressionParser .ParenExprContext ctx ) { return visitChildren (ctx ); }
89
+
90
+ /**
91
+ * {@inheritDoc}
92
+ *
93
+ * <p>The default implementation returns the result of calling
94
+ * {@link #visitChildren} on {@code ctx}.</p>
95
+ */
96
+ @ Override public T visitOrExpr (AlertExpressionParser .OrExprContext ctx ) { return visitChildren (ctx ); }
97
+
98
+ /**
99
+ * {@inheritDoc}
100
+ *
101
+ * <p>The default implementation returns the result of calling
102
+ * {@link #visitChildren} on {@code ctx}.</p>
103
+ */
104
+ @ Override public T visitIdentifier (AlertExpressionParser .IdentifierContext ctx ) { return visitChildren (ctx ); }
105
+
106
+ /**
107
+ * {@inheritDoc}
108
+ *
109
+ * <p>The default implementation returns the result of calling
110
+ * {@link #visitChildren} on {@code ctx}.</p>
111
+ */
112
+ @ Override public T visitNumber (AlertExpressionParser .NumberContext ctx ) { return visitChildren (ctx ); }
113
+ }
0 commit comments