diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParser.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParser.java
index a36f70c4053..77f31aaad6a 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParser.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParser.java
@@ -97,6 +97,7 @@
* }
*
* @author Christian Tzolov
+ * @author Sun Yuhan
*/
public class FilterExpressionTextParser {
@@ -266,6 +267,14 @@ public Filter.Operand visitNotExpression(NotExpressionContext ctx) {
return new Filter.Expression(Filter.ExpressionType.NOT, this.visit(ctx.booleanExpression()), null);
}
+ @Override
+ public Filter.Operand visitLongConstant(FiltersParser.LongConstantContext ctx) {
+ String text = ctx.getText();
+ // Remove the trailing 'l' or 'L'
+ long value = Long.parseLong(text.substring(0, text.length() - 1));
+ return new Filter.Value(value);
+ }
+
public Filter.Expression castToExpression(Filter.Operand expression) {
if (expression instanceof Filter.Group group) {
// Remove the top-level grouping.
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/Filters.interp b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/Filters.interp
index 51775a8a55c..9c91ed2519a 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/Filters.interp
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/Filters.interp
@@ -1,6 +1,7 @@
token literal names:
null
null
+null
'.'
','
'['
@@ -29,6 +30,7 @@ null
token symbolic names:
null
+LONG_SUFFIX
WHERE
DOT
COMMA
@@ -66,4 +68,4 @@ constant
atn:
-[4, 1, 26, 89, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 30, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 40, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 48, 8, 1, 10, 1, 12, 1, 51, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 57, 8, 2, 10, 2, 12, 2, 60, 9, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 71, 8, 4, 1, 5, 3, 5, 74, 8, 5, 1, 5, 1, 5, 3, 5, 78, 8, 5, 1, 5, 1, 5, 4, 5, 82, 8, 5, 11, 5, 12, 5, 83, 1, 5, 3, 5, 87, 8, 5, 1, 5, 0, 1, 2, 6, 0, 2, 4, 6, 8, 10, 0, 2, 2, 0, 8, 8, 11, 15, 1, 0, 9, 10, 98, 0, 12, 1, 0, 0, 0, 2, 39, 1, 0, 0, 0, 4, 52, 1, 0, 0, 0, 6, 63, 1, 0, 0, 0, 8, 70, 1, 0, 0, 0, 10, 86, 1, 0, 0, 0, 12, 13, 5, 1, 0, 0, 13, 14, 3, 2, 1, 0, 14, 15, 5, 0, 0, 1, 15, 1, 1, 0, 0, 0, 16, 17, 6, 1, -1, 0, 17, 18, 3, 8, 4, 0, 18, 19, 3, 6, 3, 0, 19, 20, 3, 10, 5, 0, 20, 40, 1, 0, 0, 0, 21, 22, 3, 8, 4, 0, 22, 23, 5, 18, 0, 0, 23, 24, 3, 4, 2, 0, 24, 40, 1, 0, 0, 0, 25, 29, 3, 8, 4, 0, 26, 27, 5, 20, 0, 0, 27, 30, 5, 18, 0, 0, 28, 30, 5, 19, 0, 0, 29, 26, 1, 0, 0, 0, 29, 28, 1, 0, 0, 0, 30, 31, 1, 0, 0, 0, 31, 32, 3, 4, 2, 0, 32, 40, 1, 0, 0, 0, 33, 34, 5, 6, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 7, 0, 0, 36, 40, 1, 0, 0, 0, 37, 38, 5, 20, 0, 0, 38, 40, 3, 2, 1, 1, 39, 16, 1, 0, 0, 0, 39, 21, 1, 0, 0, 0, 39, 25, 1, 0, 0, 0, 39, 33, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 40, 49, 1, 0, 0, 0, 41, 42, 10, 4, 0, 0, 42, 43, 5, 16, 0, 0, 43, 48, 3, 2, 1, 5, 44, 45, 10, 3, 0, 0, 45, 46, 5, 17, 0, 0, 46, 48, 3, 2, 1, 4, 47, 41, 1, 0, 0, 0, 47, 44, 1, 0, 0, 0, 48, 51, 1, 0, 0, 0, 49, 47, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 3, 1, 0, 0, 0, 51, 49, 1, 0, 0, 0, 52, 53, 5, 4, 0, 0, 53, 58, 3, 10, 5, 0, 54, 55, 5, 3, 0, 0, 55, 57, 3, 10, 5, 0, 56, 54, 1, 0, 0, 0, 57, 60, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 58, 59, 1, 0, 0, 0, 59, 61, 1, 0, 0, 0, 60, 58, 1, 0, 0, 0, 61, 62, 5, 5, 0, 0, 62, 5, 1, 0, 0, 0, 63, 64, 7, 0, 0, 0, 64, 7, 1, 0, 0, 0, 65, 66, 5, 25, 0, 0, 66, 67, 5, 2, 0, 0, 67, 71, 5, 25, 0, 0, 68, 71, 5, 25, 0, 0, 69, 71, 5, 22, 0, 0, 70, 65, 1, 0, 0, 0, 70, 68, 1, 0, 0, 0, 70, 69, 1, 0, 0, 0, 71, 9, 1, 0, 0, 0, 72, 74, 7, 1, 0, 0, 73, 72, 1, 0, 0, 0, 73, 74, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 87, 5, 23, 0, 0, 76, 78, 7, 1, 0, 0, 77, 76, 1, 0, 0, 0, 77, 78, 1, 0, 0, 0, 78, 79, 1, 0, 0, 0, 79, 87, 5, 24, 0, 0, 80, 82, 5, 22, 0, 0, 81, 80, 1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 81, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 84, 87, 1, 0, 0, 0, 85, 87, 5, 21, 0, 0, 86, 73, 1, 0, 0, 0, 86, 77, 1, 0, 0, 0, 86, 81, 1, 0, 0, 0, 86, 85, 1, 0, 0, 0, 87, 11, 1, 0, 0, 0, 10, 29, 39, 47, 49, 58, 70, 73, 77, 83, 86]
\ No newline at end of file
+[4, 1, 27, 94, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 30, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 40, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 48, 8, 1, 10, 1, 12, 1, 51, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 5, 2, 57, 8, 2, 10, 2, 12, 2, 60, 9, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 71, 8, 4, 1, 5, 3, 5, 74, 8, 5, 1, 5, 1, 5, 1, 5, 3, 5, 79, 8, 5, 1, 5, 1, 5, 3, 5, 83, 8, 5, 1, 5, 1, 5, 4, 5, 87, 8, 5, 11, 5, 12, 5, 88, 1, 5, 3, 5, 92, 8, 5, 1, 5, 0, 1, 2, 6, 0, 2, 4, 6, 8, 10, 0, 2, 2, 0, 9, 9, 12, 16, 1, 0, 10, 11, 105, 0, 12, 1, 0, 0, 0, 2, 39, 1, 0, 0, 0, 4, 52, 1, 0, 0, 0, 6, 63, 1, 0, 0, 0, 8, 70, 1, 0, 0, 0, 10, 91, 1, 0, 0, 0, 12, 13, 5, 2, 0, 0, 13, 14, 3, 2, 1, 0, 14, 15, 5, 0, 0, 1, 15, 1, 1, 0, 0, 0, 16, 17, 6, 1, -1, 0, 17, 18, 3, 8, 4, 0, 18, 19, 3, 6, 3, 0, 19, 20, 3, 10, 5, 0, 20, 40, 1, 0, 0, 0, 21, 22, 3, 8, 4, 0, 22, 23, 5, 19, 0, 0, 23, 24, 3, 4, 2, 0, 24, 40, 1, 0, 0, 0, 25, 29, 3, 8, 4, 0, 26, 27, 5, 21, 0, 0, 27, 30, 5, 19, 0, 0, 28, 30, 5, 20, 0, 0, 29, 26, 1, 0, 0, 0, 29, 28, 1, 0, 0, 0, 30, 31, 1, 0, 0, 0, 31, 32, 3, 4, 2, 0, 32, 40, 1, 0, 0, 0, 33, 34, 5, 7, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 8, 0, 0, 36, 40, 1, 0, 0, 0, 37, 38, 5, 21, 0, 0, 38, 40, 3, 2, 1, 1, 39, 16, 1, 0, 0, 0, 39, 21, 1, 0, 0, 0, 39, 25, 1, 0, 0, 0, 39, 33, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 40, 49, 1, 0, 0, 0, 41, 42, 10, 4, 0, 0, 42, 43, 5, 17, 0, 0, 43, 48, 3, 2, 1, 5, 44, 45, 10, 3, 0, 0, 45, 46, 5, 18, 0, 0, 46, 48, 3, 2, 1, 4, 47, 41, 1, 0, 0, 0, 47, 44, 1, 0, 0, 0, 48, 51, 1, 0, 0, 0, 49, 47, 1, 0, 0, 0, 49, 50, 1, 0, 0, 0, 50, 3, 1, 0, 0, 0, 51, 49, 1, 0, 0, 0, 52, 53, 5, 5, 0, 0, 53, 58, 3, 10, 5, 0, 54, 55, 5, 4, 0, 0, 55, 57, 3, 10, 5, 0, 56, 54, 1, 0, 0, 0, 57, 60, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 58, 59, 1, 0, 0, 0, 59, 61, 1, 0, 0, 0, 60, 58, 1, 0, 0, 0, 61, 62, 5, 6, 0, 0, 62, 5, 1, 0, 0, 0, 63, 64, 7, 0, 0, 0, 64, 7, 1, 0, 0, 0, 65, 66, 5, 26, 0, 0, 66, 67, 5, 3, 0, 0, 67, 71, 5, 26, 0, 0, 68, 71, 5, 26, 0, 0, 69, 71, 5, 23, 0, 0, 70, 65, 1, 0, 0, 0, 70, 68, 1, 0, 0, 0, 70, 69, 1, 0, 0, 0, 71, 9, 1, 0, 0, 0, 72, 74, 7, 1, 0, 0, 73, 72, 1, 0, 0, 0, 73, 74, 1, 0, 0, 0, 74, 75, 1, 0, 0, 0, 75, 76, 5, 24, 0, 0, 76, 92, 5, 1, 0, 0, 77, 79, 7, 1, 0, 0, 78, 77, 1, 0, 0, 0, 78, 79, 1, 0, 0, 0, 79, 80, 1, 0, 0, 0, 80, 92, 5, 24, 0, 0, 81, 83, 7, 1, 0, 0, 82, 81, 1, 0, 0, 0, 82, 83, 1, 0, 0, 0, 83, 84, 1, 0, 0, 0, 84, 92, 5, 25, 0, 0, 85, 87, 5, 23, 0, 0, 86, 85, 1, 0, 0, 0, 87, 88, 1, 0, 0, 0, 88, 86, 1, 0, 0, 0, 88, 89, 1, 0, 0, 0, 89, 92, 1, 0, 0, 0, 90, 92, 5, 22, 0, 0, 91, 73, 1, 0, 0, 0, 91, 78, 1, 0, 0, 0, 91, 82, 1, 0, 0, 0, 91, 86, 1, 0, 0, 0, 91, 90, 1, 0, 0, 0, 92, 11, 1, 0, 0, 0, 11, 29, 39, 47, 49, 58, 70, 73, 78, 82, 88, 91]
\ No newline at end of file
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseListener.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseListener.java
index 136aedbab1b..3a8aa414d38 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseListener.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseListener.java
@@ -276,6 +276,28 @@ public void enterIdentifier(FiltersParser.IdentifierContext ctx) {
public void exitIdentifier(FiltersParser.IdentifierContext ctx) {
}
+ /**
+ * {@inheritDoc}
+ *
+ *
+ * The default implementation does nothing.
+ *
+ */
+ @Override
+ public void enterLongConstant(FiltersParser.LongConstantContext ctx) {
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ *
+ * The default implementation does nothing.
+ *
+ */
+ @Override
+ public void exitLongConstant(FiltersParser.LongConstantContext ctx) {
+ }
+
/**
* {@inheritDoc}
*
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseVisitor.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseVisitor.java
index f8a5a204199..7249111b2fb 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseVisitor.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersBaseVisitor.java
@@ -178,6 +178,19 @@ public T visitIdentifier(FiltersParser.IdentifierContext ctx) {
return visitChildren(ctx);
}
+ /**
+ * {@inheritDoc}
+ *
+ *
+ * The default implementation returns the result of calling {@link #visitChildren} on
+ * {@code ctx}.
+ *
+ */
+ @Override
+ public T visitLongConstant(FiltersParser.LongConstantContext ctx) {
+ return visitChildren(ctx);
+ }
+
/**
* {@inheritDoc}
*
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.interp b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.interp
index 919669898cb..3ec5ceb7b21 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.interp
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.interp
@@ -1,6 +1,7 @@
token literal names:
null
null
+null
'.'
','
'['
@@ -29,6 +30,7 @@ null
token symbolic names:
null
+LONG_SUFFIX
WHERE
DOT
COMMA
@@ -57,6 +59,7 @@ IDENTIFIER
WS
rule names:
+LONG_SUFFIX
WHERE
DOT
COMMA
@@ -95,4 +98,4 @@ mode names:
DEFAULT_MODE
atn:
-[4, 0, 26, 230, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 70, 8, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 112, 8, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 120, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 3, 17, 126, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 134, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 142, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 162, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 5, 21, 168, 8, 21, 10, 21, 12, 21, 171, 9, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 5, 21, 178, 8, 21, 10, 21, 12, 21, 181, 9, 21, 1, 21, 3, 21, 184, 8, 21, 1, 22, 4, 22, 187, 8, 22, 11, 22, 12, 22, 188, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 4, 24, 196, 8, 24, 11, 24, 12, 24, 197, 1, 25, 4, 25, 201, 8, 25, 11, 25, 12, 25, 202, 1, 25, 1, 25, 5, 25, 207, 8, 25, 10, 25, 12, 25, 210, 9, 25, 1, 25, 1, 25, 4, 25, 214, 8, 25, 11, 25, 12, 25, 215, 3, 25, 218, 8, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 4, 28, 225, 8, 28, 11, 28, 12, 28, 226, 1, 28, 1, 28, 0, 0, 29, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 0, 53, 0, 55, 0, 57, 26, 1, 0, 5, 2, 0, 39, 39, 92, 92, 2, 0, 34, 34, 92, 92, 1, 0, 48, 57, 2, 0, 65, 90, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 251, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 1, 69, 1, 0, 0, 0, 3, 71, 1, 0, 0, 0, 5, 73, 1, 0, 0, 0, 7, 75, 1, 0, 0, 0, 9, 77, 1, 0, 0, 0, 11, 79, 1, 0, 0, 0, 13, 81, 1, 0, 0, 0, 15, 83, 1, 0, 0, 0, 17, 86, 1, 0, 0, 0, 19, 88, 1, 0, 0, 0, 21, 90, 1, 0, 0, 0, 23, 92, 1, 0, 0, 0, 25, 95, 1, 0, 0, 0, 27, 97, 1, 0, 0, 0, 29, 100, 1, 0, 0, 0, 31, 111, 1, 0, 0, 0, 33, 119, 1, 0, 0, 0, 35, 125, 1, 0, 0, 0, 37, 133, 1, 0, 0, 0, 39, 141, 1, 0, 0, 0, 41, 161, 1, 0, 0, 0, 43, 183, 1, 0, 0, 0, 45, 186, 1, 0, 0, 0, 47, 190, 1, 0, 0, 0, 49, 195, 1, 0, 0, 0, 51, 217, 1, 0, 0, 0, 53, 219, 1, 0, 0, 0, 55, 221, 1, 0, 0, 0, 57, 224, 1, 0, 0, 0, 59, 60, 5, 87, 0, 0, 60, 61, 5, 72, 0, 0, 61, 62, 5, 69, 0, 0, 62, 63, 5, 82, 0, 0, 63, 70, 5, 69, 0, 0, 64, 65, 5, 119, 0, 0, 65, 66, 5, 104, 0, 0, 66, 67, 5, 101, 0, 0, 67, 68, 5, 114, 0, 0, 68, 70, 5, 101, 0, 0, 69, 59, 1, 0, 0, 0, 69, 64, 1, 0, 0, 0, 70, 2, 1, 0, 0, 0, 71, 72, 5, 46, 0, 0, 72, 4, 1, 0, 0, 0, 73, 74, 5, 44, 0, 0, 74, 6, 1, 0, 0, 0, 75, 76, 5, 91, 0, 0, 76, 8, 1, 0, 0, 0, 77, 78, 5, 93, 0, 0, 78, 10, 1, 0, 0, 0, 79, 80, 5, 40, 0, 0, 80, 12, 1, 0, 0, 0, 81, 82, 5, 41, 0, 0, 82, 14, 1, 0, 0, 0, 83, 84, 5, 61, 0, 0, 84, 85, 5, 61, 0, 0, 85, 16, 1, 0, 0, 0, 86, 87, 5, 45, 0, 0, 87, 18, 1, 0, 0, 0, 88, 89, 5, 43, 0, 0, 89, 20, 1, 0, 0, 0, 90, 91, 5, 62, 0, 0, 91, 22, 1, 0, 0, 0, 92, 93, 5, 62, 0, 0, 93, 94, 5, 61, 0, 0, 94, 24, 1, 0, 0, 0, 95, 96, 5, 60, 0, 0, 96, 26, 1, 0, 0, 0, 97, 98, 5, 60, 0, 0, 98, 99, 5, 61, 0, 0, 99, 28, 1, 0, 0, 0, 100, 101, 5, 33, 0, 0, 101, 102, 5, 61, 0, 0, 102, 30, 1, 0, 0, 0, 103, 104, 5, 65, 0, 0, 104, 105, 5, 78, 0, 0, 105, 112, 5, 68, 0, 0, 106, 107, 5, 97, 0, 0, 107, 108, 5, 110, 0, 0, 108, 112, 5, 100, 0, 0, 109, 110, 5, 38, 0, 0, 110, 112, 5, 38, 0, 0, 111, 103, 1, 0, 0, 0, 111, 106, 1, 0, 0, 0, 111, 109, 1, 0, 0, 0, 112, 32, 1, 0, 0, 0, 113, 114, 5, 79, 0, 0, 114, 120, 5, 82, 0, 0, 115, 116, 5, 111, 0, 0, 116, 120, 5, 114, 0, 0, 117, 118, 5, 124, 0, 0, 118, 120, 5, 124, 0, 0, 119, 113, 1, 0, 0, 0, 119, 115, 1, 0, 0, 0, 119, 117, 1, 0, 0, 0, 120, 34, 1, 0, 0, 0, 121, 122, 5, 73, 0, 0, 122, 126, 5, 78, 0, 0, 123, 124, 5, 105, 0, 0, 124, 126, 5, 110, 0, 0, 125, 121, 1, 0, 0, 0, 125, 123, 1, 0, 0, 0, 126, 36, 1, 0, 0, 0, 127, 128, 5, 78, 0, 0, 128, 129, 5, 73, 0, 0, 129, 134, 5, 78, 0, 0, 130, 131, 5, 110, 0, 0, 131, 132, 5, 105, 0, 0, 132, 134, 5, 110, 0, 0, 133, 127, 1, 0, 0, 0, 133, 130, 1, 0, 0, 0, 134, 38, 1, 0, 0, 0, 135, 136, 5, 78, 0, 0, 136, 137, 5, 79, 0, 0, 137, 142, 5, 84, 0, 0, 138, 139, 5, 110, 0, 0, 139, 140, 5, 111, 0, 0, 140, 142, 5, 116, 0, 0, 141, 135, 1, 0, 0, 0, 141, 138, 1, 0, 0, 0, 142, 40, 1, 0, 0, 0, 143, 144, 5, 84, 0, 0, 144, 145, 5, 82, 0, 0, 145, 146, 5, 85, 0, 0, 146, 162, 5, 69, 0, 0, 147, 148, 5, 116, 0, 0, 148, 149, 5, 114, 0, 0, 149, 150, 5, 117, 0, 0, 150, 162, 5, 101, 0, 0, 151, 152, 5, 70, 0, 0, 152, 153, 5, 65, 0, 0, 153, 154, 5, 76, 0, 0, 154, 155, 5, 83, 0, 0, 155, 162, 5, 69, 0, 0, 156, 157, 5, 102, 0, 0, 157, 158, 5, 97, 0, 0, 158, 159, 5, 108, 0, 0, 159, 160, 5, 115, 0, 0, 160, 162, 5, 101, 0, 0, 161, 143, 1, 0, 0, 0, 161, 147, 1, 0, 0, 0, 161, 151, 1, 0, 0, 0, 161, 156, 1, 0, 0, 0, 162, 42, 1, 0, 0, 0, 163, 169, 5, 39, 0, 0, 164, 168, 8, 0, 0, 0, 165, 166, 5, 92, 0, 0, 166, 168, 9, 0, 0, 0, 167, 164, 1, 0, 0, 0, 167, 165, 1, 0, 0, 0, 168, 171, 1, 0, 0, 0, 169, 167, 1, 0, 0, 0, 169, 170, 1, 0, 0, 0, 170, 172, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 172, 184, 5, 39, 0, 0, 173, 179, 5, 34, 0, 0, 174, 178, 8, 1, 0, 0, 175, 176, 5, 92, 0, 0, 176, 178, 9, 0, 0, 0, 177, 174, 1, 0, 0, 0, 177, 175, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, 179, 177, 1, 0, 0, 0, 179, 180, 1, 0, 0, 0, 180, 182, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 182, 184, 5, 34, 0, 0, 183, 163, 1, 0, 0, 0, 183, 173, 1, 0, 0, 0, 184, 44, 1, 0, 0, 0, 185, 187, 3, 53, 26, 0, 186, 185, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 186, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 46, 1, 0, 0, 0, 190, 191, 3, 51, 25, 0, 191, 48, 1, 0, 0, 0, 192, 196, 3, 55, 27, 0, 193, 196, 3, 53, 26, 0, 194, 196, 5, 95, 0, 0, 195, 192, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 195, 194, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 195, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 50, 1, 0, 0, 0, 199, 201, 3, 53, 26, 0, 200, 199, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 200, 1, 0, 0, 0, 202, 203, 1, 0, 0, 0, 203, 204, 1, 0, 0, 0, 204, 208, 5, 46, 0, 0, 205, 207, 3, 53, 26, 0, 206, 205, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208, 206, 1, 0, 0, 0, 208, 209, 1, 0, 0, 0, 209, 218, 1, 0, 0, 0, 210, 208, 1, 0, 0, 0, 211, 213, 5, 46, 0, 0, 212, 214, 3, 53, 26, 0, 213, 212, 1, 0, 0, 0, 214, 215, 1, 0, 0, 0, 215, 213, 1, 0, 0, 0, 215, 216, 1, 0, 0, 0, 216, 218, 1, 0, 0, 0, 217, 200, 1, 0, 0, 0, 217, 211, 1, 0, 0, 0, 218, 52, 1, 0, 0, 0, 219, 220, 7, 2, 0, 0, 220, 54, 1, 0, 0, 0, 221, 222, 7, 3, 0, 0, 222, 56, 1, 0, 0, 0, 223, 225, 7, 4, 0, 0, 224, 223, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 224, 1, 0, 0, 0, 226, 227, 1, 0, 0, 0, 227, 228, 1, 0, 0, 0, 228, 229, 6, 28, 0, 0, 229, 58, 1, 0, 0, 0, 21, 0, 69, 111, 119, 125, 133, 141, 161, 167, 169, 177, 179, 183, 188, 195, 197, 202, 208, 215, 217, 226, 1, 0, 1, 0]
\ No newline at end of file
+[4, 0, 27, 239, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 74, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 116, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 3, 17, 124, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 130, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 138, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 146, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 166, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 5, 22, 172, 8, 22, 10, 22, 12, 22, 175, 9, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 5, 22, 182, 8, 22, 10, 22, 12, 22, 185, 9, 22, 1, 22, 3, 22, 188, 8, 22, 1, 23, 4, 23, 191, 8, 23, 11, 23, 12, 23, 192, 1, 24, 1, 24, 1, 25, 1, 25, 3, 25, 199, 8, 25, 1, 25, 1, 25, 1, 25, 5, 25, 204, 8, 25, 10, 25, 12, 25, 207, 9, 25, 1, 26, 4, 26, 210, 8, 26, 11, 26, 12, 26, 211, 1, 26, 1, 26, 5, 26, 216, 8, 26, 10, 26, 12, 26, 219, 9, 26, 1, 26, 1, 26, 4, 26, 223, 8, 26, 11, 26, 12, 26, 224, 3, 26, 227, 8, 26, 1, 27, 1, 27, 1, 28, 1, 28, 1, 29, 4, 29, 234, 8, 29, 11, 29, 12, 29, 235, 1, 29, 1, 29, 0, 0, 30, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 0, 55, 0, 57, 0, 59, 27, 1, 0, 6, 2, 0, 76, 76, 108, 108, 2, 0, 39, 39, 92, 92, 2, 0, 34, 34, 92, 92, 1, 0, 48, 57, 2, 0, 65, 90, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 261, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 1, 61, 1, 0, 0, 0, 3, 73, 1, 0, 0, 0, 5, 75, 1, 0, 0, 0, 7, 77, 1, 0, 0, 0, 9, 79, 1, 0, 0, 0, 11, 81, 1, 0, 0, 0, 13, 83, 1, 0, 0, 0, 15, 85, 1, 0, 0, 0, 17, 87, 1, 0, 0, 0, 19, 90, 1, 0, 0, 0, 21, 92, 1, 0, 0, 0, 23, 94, 1, 0, 0, 0, 25, 96, 1, 0, 0, 0, 27, 99, 1, 0, 0, 0, 29, 101, 1, 0, 0, 0, 31, 104, 1, 0, 0, 0, 33, 115, 1, 0, 0, 0, 35, 123, 1, 0, 0, 0, 37, 129, 1, 0, 0, 0, 39, 137, 1, 0, 0, 0, 41, 145, 1, 0, 0, 0, 43, 165, 1, 0, 0, 0, 45, 187, 1, 0, 0, 0, 47, 190, 1, 0, 0, 0, 49, 194, 1, 0, 0, 0, 51, 198, 1, 0, 0, 0, 53, 226, 1, 0, 0, 0, 55, 228, 1, 0, 0, 0, 57, 230, 1, 0, 0, 0, 59, 233, 1, 0, 0, 0, 61, 62, 7, 0, 0, 0, 62, 2, 1, 0, 0, 0, 63, 64, 5, 87, 0, 0, 64, 65, 5, 72, 0, 0, 65, 66, 5, 69, 0, 0, 66, 67, 5, 82, 0, 0, 67, 74, 5, 69, 0, 0, 68, 69, 5, 119, 0, 0, 69, 70, 5, 104, 0, 0, 70, 71, 5, 101, 0, 0, 71, 72, 5, 114, 0, 0, 72, 74, 5, 101, 0, 0, 73, 63, 1, 0, 0, 0, 73, 68, 1, 0, 0, 0, 74, 4, 1, 0, 0, 0, 75, 76, 5, 46, 0, 0, 76, 6, 1, 0, 0, 0, 77, 78, 5, 44, 0, 0, 78, 8, 1, 0, 0, 0, 79, 80, 5, 91, 0, 0, 80, 10, 1, 0, 0, 0, 81, 82, 5, 93, 0, 0, 82, 12, 1, 0, 0, 0, 83, 84, 5, 40, 0, 0, 84, 14, 1, 0, 0, 0, 85, 86, 5, 41, 0, 0, 86, 16, 1, 0, 0, 0, 87, 88, 5, 61, 0, 0, 88, 89, 5, 61, 0, 0, 89, 18, 1, 0, 0, 0, 90, 91, 5, 45, 0, 0, 91, 20, 1, 0, 0, 0, 92, 93, 5, 43, 0, 0, 93, 22, 1, 0, 0, 0, 94, 95, 5, 62, 0, 0, 95, 24, 1, 0, 0, 0, 96, 97, 5, 62, 0, 0, 97, 98, 5, 61, 0, 0, 98, 26, 1, 0, 0, 0, 99, 100, 5, 60, 0, 0, 100, 28, 1, 0, 0, 0, 101, 102, 5, 60, 0, 0, 102, 103, 5, 61, 0, 0, 103, 30, 1, 0, 0, 0, 104, 105, 5, 33, 0, 0, 105, 106, 5, 61, 0, 0, 106, 32, 1, 0, 0, 0, 107, 108, 5, 65, 0, 0, 108, 109, 5, 78, 0, 0, 109, 116, 5, 68, 0, 0, 110, 111, 5, 97, 0, 0, 111, 112, 5, 110, 0, 0, 112, 116, 5, 100, 0, 0, 113, 114, 5, 38, 0, 0, 114, 116, 5, 38, 0, 0, 115, 107, 1, 0, 0, 0, 115, 110, 1, 0, 0, 0, 115, 113, 1, 0, 0, 0, 116, 34, 1, 0, 0, 0, 117, 118, 5, 79, 0, 0, 118, 124, 5, 82, 0, 0, 119, 120, 5, 111, 0, 0, 120, 124, 5, 114, 0, 0, 121, 122, 5, 124, 0, 0, 122, 124, 5, 124, 0, 0, 123, 117, 1, 0, 0, 0, 123, 119, 1, 0, 0, 0, 123, 121, 1, 0, 0, 0, 124, 36, 1, 0, 0, 0, 125, 126, 5, 73, 0, 0, 126, 130, 5, 78, 0, 0, 127, 128, 5, 105, 0, 0, 128, 130, 5, 110, 0, 0, 129, 125, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 130, 38, 1, 0, 0, 0, 131, 132, 5, 78, 0, 0, 132, 133, 5, 73, 0, 0, 133, 138, 5, 78, 0, 0, 134, 135, 5, 110, 0, 0, 135, 136, 5, 105, 0, 0, 136, 138, 5, 110, 0, 0, 137, 131, 1, 0, 0, 0, 137, 134, 1, 0, 0, 0, 138, 40, 1, 0, 0, 0, 139, 140, 5, 78, 0, 0, 140, 141, 5, 79, 0, 0, 141, 146, 5, 84, 0, 0, 142, 143, 5, 110, 0, 0, 143, 144, 5, 111, 0, 0, 144, 146, 5, 116, 0, 0, 145, 139, 1, 0, 0, 0, 145, 142, 1, 0, 0, 0, 146, 42, 1, 0, 0, 0, 147, 148, 5, 84, 0, 0, 148, 149, 5, 82, 0, 0, 149, 150, 5, 85, 0, 0, 150, 166, 5, 69, 0, 0, 151, 152, 5, 116, 0, 0, 152, 153, 5, 114, 0, 0, 153, 154, 5, 117, 0, 0, 154, 166, 5, 101, 0, 0, 155, 156, 5, 70, 0, 0, 156, 157, 5, 65, 0, 0, 157, 158, 5, 76, 0, 0, 158, 159, 5, 83, 0, 0, 159, 166, 5, 69, 0, 0, 160, 161, 5, 102, 0, 0, 161, 162, 5, 97, 0, 0, 162, 163, 5, 108, 0, 0, 163, 164, 5, 115, 0, 0, 164, 166, 5, 101, 0, 0, 165, 147, 1, 0, 0, 0, 165, 151, 1, 0, 0, 0, 165, 155, 1, 0, 0, 0, 165, 160, 1, 0, 0, 0, 166, 44, 1, 0, 0, 0, 167, 173, 5, 39, 0, 0, 168, 172, 8, 1, 0, 0, 169, 170, 5, 92, 0, 0, 170, 172, 9, 0, 0, 0, 171, 168, 1, 0, 0, 0, 171, 169, 1, 0, 0, 0, 172, 175, 1, 0, 0, 0, 173, 171, 1, 0, 0, 0, 173, 174, 1, 0, 0, 0, 174, 176, 1, 0, 0, 0, 175, 173, 1, 0, 0, 0, 176, 188, 5, 39, 0, 0, 177, 183, 5, 34, 0, 0, 178, 182, 8, 2, 0, 0, 179, 180, 5, 92, 0, 0, 180, 182, 9, 0, 0, 0, 181, 178, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 182, 185, 1, 0, 0, 0, 183, 181, 1, 0, 0, 0, 183, 184, 1, 0, 0, 0, 184, 186, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 186, 188, 5, 34, 0, 0, 187, 167, 1, 0, 0, 0, 187, 177, 1, 0, 0, 0, 188, 46, 1, 0, 0, 0, 189, 191, 3, 55, 27, 0, 190, 189, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 190, 1, 0, 0, 0, 192, 193, 1, 0, 0, 0, 193, 48, 1, 0, 0, 0, 194, 195, 3, 53, 26, 0, 195, 50, 1, 0, 0, 0, 196, 199, 3, 57, 28, 0, 197, 199, 5, 95, 0, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 205, 1, 0, 0, 0, 200, 204, 3, 57, 28, 0, 201, 204, 3, 55, 27, 0, 202, 204, 5, 95, 0, 0, 203, 200, 1, 0, 0, 0, 203, 201, 1, 0, 0, 0, 203, 202, 1, 0, 0, 0, 204, 207, 1, 0, 0, 0, 205, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 52, 1, 0, 0, 0, 207, 205, 1, 0, 0, 0, 208, 210, 3, 55, 27, 0, 209, 208, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 209, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 1, 0, 0, 0, 213, 217, 5, 46, 0, 0, 214, 216, 3, 55, 27, 0, 215, 214, 1, 0, 0, 0, 216, 219, 1, 0, 0, 0, 217, 215, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 227, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 220, 222, 5, 46, 0, 0, 221, 223, 3, 55, 27, 0, 222, 221, 1, 0, 0, 0, 223, 224, 1, 0, 0, 0, 224, 222, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 227, 1, 0, 0, 0, 226, 209, 1, 0, 0, 0, 226, 220, 1, 0, 0, 0, 227, 54, 1, 0, 0, 0, 228, 229, 7, 3, 0, 0, 229, 56, 1, 0, 0, 0, 230, 231, 7, 4, 0, 0, 231, 58, 1, 0, 0, 0, 232, 234, 7, 5, 0, 0, 233, 232, 1, 0, 0, 0, 234, 235, 1, 0, 0, 0, 235, 233, 1, 0, 0, 0, 235, 236, 1, 0, 0, 0, 236, 237, 1, 0, 0, 0, 237, 238, 6, 29, 0, 0, 238, 60, 1, 0, 0, 0, 22, 0, 73, 115, 123, 129, 137, 145, 165, 171, 173, 181, 183, 187, 192, 198, 203, 205, 211, 217, 224, 226, 235, 1, 0, 1, 0]
\ No newline at end of file
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.java
index dc1491d5488..117f2cb3599 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersLexer.java
@@ -22,223 +22,72 @@
// # NOTE: This is ANTLR4 auto-generated code. Do not modify! #
// ############################################################
-import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Lexer;
-import org.antlr.v4.runtime.RuntimeMetaData;
-import org.antlr.v4.runtime.Vocabulary;
-import org.antlr.v4.runtime.VocabularyImpl;
-import org.antlr.v4.runtime.atn.ATN;
-import org.antlr.v4.runtime.atn.ATNDeserializer;
-import org.antlr.v4.runtime.atn.LexerATNSimulator;
-import org.antlr.v4.runtime.atn.PredictionContextCache;
+import org.antlr.v4.runtime.CharStream;
+import org.antlr.v4.runtime.*;
+import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "this-escape" })
public class FiltersLexer extends Lexer {
- public static final int WHERE = 1, DOT = 2, COMMA = 3, LEFT_SQUARE_BRACKETS = 4, RIGHT_SQUARE_BRACKETS = 5,
- LEFT_PARENTHESIS = 6, RIGHT_PARENTHESIS = 7, EQUALS = 8, MINUS = 9, PLUS = 10, GT = 11, GE = 12, LT = 13,
- LE = 14, NE = 15, AND = 16, OR = 17, IN = 18, NIN = 19, NOT = 20, BOOLEAN_VALUE = 21, QUOTED_STRING = 22,
- INTEGER_VALUE = 23, DECIMAL_VALUE = 24, IDENTIFIER = 25, WS = 26;
-
- public static final String[] ruleNames = makeRuleNames();
-
- /**
- * @deprecated Use {@link #VOCABULARY} instead.
- */
- @Deprecated
- public static final String[] tokenNames;
-
- public static final String _serializedATN = "\u0004\u0000\u001a\u00e6\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002"
- + "\u0001\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002"
- + "\u0004\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002"
- + "\u0007\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002"
- + "\u000b\u0007\u000b\u0002\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e"
- + "\u0002\u000f\u0007\u000f\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011"
- + "\u0002\u0012\u0007\u0012\u0002\u0013\u0007\u0013\u0002\u0014\u0007\u0014"
- + "\u0002\u0015\u0007\u0015\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017"
- + "\u0002\u0018\u0007\u0018\u0002\u0019\u0007\u0019\u0002\u001a\u0007\u001a"
- + "\u0002\u001b\u0007\u001b\u0002\u001c\u0007\u001c\u0001\u0000\u0001\u0000"
- + "\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000"
- + "\u0001\u0000\u0001\u0000\u0003\u0000F\b\u0000\u0001\u0001\u0001\u0001"
- + "\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0004\u0001\u0004"
- + "\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0007\u0001\u0007"
- + "\u0001\u0007\u0001\b\u0001\b\u0001\t\u0001\t\u0001\n\u0001\n\u0001\u000b"
- + "\u0001\u000b\u0001\u000b\u0001\f\u0001\f\u0001\r\u0001\r\u0001\r\u0001"
- + "\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u000f\u0001"
- + "\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u000f\u0003\u000fp\b"
- + "\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001"
- + "\u0010\u0003\u0010x\b\u0010\u0001\u0011\u0001\u0011\u0001\u0011\u0001"
- + "\u0011\u0003\u0011~\b\u0011\u0001\u0012\u0001\u0012\u0001\u0012\u0001"
- + "\u0012\u0001\u0012\u0001\u0012\u0003\u0012\u0086\b\u0012\u0001\u0013\u0001"
- + "\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0003\u0013\u008e"
- + "\b\u0013\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001"
- + "\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001"
- + "\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014\u0001"
- + "\u0014\u0003\u0014\u00a2\b\u0014\u0001\u0015\u0001\u0015\u0001\u0015\u0001"
- + "\u0015\u0005\u0015\u00a8\b\u0015\n\u0015\f\u0015\u00ab\t\u0015\u0001\u0015"
- + "\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0005\u0015\u00b2\b\u0015"
- + "\n\u0015\f\u0015\u00b5\t\u0015\u0001\u0015\u0003\u0015\u00b8\b\u0015\u0001"
- + "\u0016\u0004\u0016\u00bb\b\u0016\u000b\u0016\f\u0016\u00bc\u0001\u0017"
- + "\u0001\u0017\u0001\u0018\u0001\u0018\u0001\u0018\u0004\u0018\u00c4\b\u0018"
- + "\u000b\u0018\f\u0018\u00c5\u0001\u0019\u0004\u0019\u00c9\b\u0019\u000b"
- + "\u0019\f\u0019\u00ca\u0001\u0019\u0001\u0019\u0005\u0019\u00cf\b\u0019"
- + "\n\u0019\f\u0019\u00d2\t\u0019\u0001\u0019\u0001\u0019\u0004\u0019\u00d6"
- + "\b\u0019\u000b\u0019\f\u0019\u00d7\u0003\u0019\u00da\b\u0019\u0001\u001a"
- + "\u0001\u001a\u0001\u001b\u0001\u001b\u0001\u001c\u0004\u001c\u00e1\b\u001c"
- + "\u000b\u001c\f\u001c\u00e2\u0001\u001c\u0001\u001c\u0000\u0000\u001d\u0001"
- + "\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005\u000b\u0006\r\u0007"
- + "\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019\r\u001b\u000e\u001d"
- + "\u000f\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015+\u0016-\u0017/"
- + "\u00181\u00193\u00005\u00007\u00009\u001a\u0001\u0000\u0005\u0002\u0000"
- + "\'\'\\\\\u0002\u0000\"\"\\\\\u0001\u000009\u0002\u0000AZaz\u0003\u0000"
- + "\t\n\r\r \u00fb\u0000\u0001\u0001\u0000\u0000\u0000\u0000\u0003\u0001"
- + "\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000\u0000\u0007\u0001"
- + "\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000\u000b\u0001\u0000"
- + "\u0000\u0000\u0000\r\u0001\u0000\u0000\u0000\u0000\u000f\u0001\u0000\u0000"
- + "\u0000\u0000\u0011\u0001\u0000\u0000\u0000\u0000\u0013\u0001\u0000\u0000"
- + "\u0000\u0000\u0015\u0001\u0000\u0000\u0000\u0000\u0017\u0001\u0000\u0000"
- + "\u0000\u0000\u0019\u0001\u0000\u0000\u0000\u0000\u001b\u0001\u0000\u0000"
- + "\u0000\u0000\u001d\u0001\u0000\u0000\u0000\u0000\u001f\u0001\u0000\u0000"
- + "\u0000\u0000!\u0001\u0000\u0000\u0000\u0000#\u0001\u0000\u0000\u0000\u0000"
- + "%\u0001\u0000\u0000\u0000\u0000\'\u0001\u0000\u0000\u0000\u0000)\u0001"
- + "\u0000\u0000\u0000\u0000+\u0001\u0000\u0000\u0000\u0000-\u0001\u0000\u0000"
- + "\u0000\u0000/\u0001\u0000\u0000\u0000\u00001\u0001\u0000\u0000\u0000\u0000"
- + "9\u0001\u0000\u0000\u0000\u0001E\u0001\u0000\u0000\u0000\u0003G\u0001"
- + "\u0000\u0000\u0000\u0005I\u0001\u0000\u0000\u0000\u0007K\u0001\u0000\u0000"
- + "\u0000\tM\u0001\u0000\u0000\u0000\u000bO\u0001\u0000\u0000\u0000\rQ\u0001"
- + "\u0000\u0000\u0000\u000fS\u0001\u0000\u0000\u0000\u0011V\u0001\u0000\u0000"
- + "\u0000\u0013X\u0001\u0000\u0000\u0000\u0015Z\u0001\u0000\u0000\u0000\u0017"
- + "\\\u0001\u0000\u0000\u0000\u0019_\u0001\u0000\u0000\u0000\u001ba\u0001"
- + "\u0000\u0000\u0000\u001dd\u0001\u0000\u0000\u0000\u001fo\u0001\u0000\u0000"
- + "\u0000!w\u0001\u0000\u0000\u0000#}\u0001\u0000\u0000\u0000%\u0085\u0001"
- + "\u0000\u0000\u0000\'\u008d\u0001\u0000\u0000\u0000)\u00a1\u0001\u0000"
- + "\u0000\u0000+\u00b7\u0001\u0000\u0000\u0000-\u00ba\u0001\u0000\u0000\u0000"
- + "/\u00be\u0001\u0000\u0000\u00001\u00c3\u0001\u0000\u0000\u00003\u00d9"
- + "\u0001\u0000\u0000\u00005\u00db\u0001\u0000\u0000\u00007\u00dd\u0001\u0000"
- + "\u0000\u00009\u00e0\u0001\u0000\u0000\u0000;<\u0005W\u0000\u0000<=\u0005"
- + "H\u0000\u0000=>\u0005E\u0000\u0000>?\u0005R\u0000\u0000?F\u0005E\u0000"
- + "\u0000@A\u0005w\u0000\u0000AB\u0005h\u0000\u0000BC\u0005e\u0000\u0000"
- + "CD\u0005r\u0000\u0000DF\u0005e\u0000\u0000E;\u0001\u0000\u0000\u0000E"
- + "@\u0001\u0000\u0000\u0000F\u0002\u0001\u0000\u0000\u0000GH\u0005.\u0000"
- + "\u0000H\u0004\u0001\u0000\u0000\u0000IJ\u0005,\u0000\u0000J\u0006\u0001"
- + "\u0000\u0000\u0000KL\u0005[\u0000\u0000L\b\u0001\u0000\u0000\u0000MN\u0005"
- + "]\u0000\u0000N\n\u0001\u0000\u0000\u0000OP\u0005(\u0000\u0000P\f\u0001"
- + "\u0000\u0000\u0000QR\u0005)\u0000\u0000R\u000e\u0001\u0000\u0000\u0000"
- + "ST\u0005=\u0000\u0000TU\u0005=\u0000\u0000U\u0010\u0001\u0000\u0000\u0000"
- + "VW\u0005-\u0000\u0000W\u0012\u0001\u0000\u0000\u0000XY\u0005+\u0000\u0000"
- + "Y\u0014\u0001\u0000\u0000\u0000Z[\u0005>\u0000\u0000[\u0016\u0001\u0000"
- + "\u0000\u0000\\]\u0005>\u0000\u0000]^\u0005=\u0000\u0000^\u0018\u0001\u0000"
- + "\u0000\u0000_`\u0005<\u0000\u0000`\u001a\u0001\u0000\u0000\u0000ab\u0005"
- + "<\u0000\u0000bc\u0005=\u0000\u0000c\u001c\u0001\u0000\u0000\u0000de\u0005"
- + "!\u0000\u0000ef\u0005=\u0000\u0000f\u001e\u0001\u0000\u0000\u0000gh\u0005"
- + "A\u0000\u0000hi\u0005N\u0000\u0000ip\u0005D\u0000\u0000jk\u0005a\u0000"
- + "\u0000kl\u0005n\u0000\u0000lp\u0005d\u0000\u0000mn\u0005&\u0000\u0000"
- + "np\u0005&\u0000\u0000og\u0001\u0000\u0000\u0000oj\u0001\u0000\u0000\u0000"
- + "om\u0001\u0000\u0000\u0000p \u0001\u0000\u0000\u0000qr\u0005O\u0000\u0000"
- + "rx\u0005R\u0000\u0000st\u0005o\u0000\u0000tx\u0005r\u0000\u0000uv\u0005"
- + "|\u0000\u0000vx\u0005|\u0000\u0000wq\u0001\u0000\u0000\u0000ws\u0001\u0000"
- + "\u0000\u0000wu\u0001\u0000\u0000\u0000x\"\u0001\u0000\u0000\u0000yz\u0005"
- + "I\u0000\u0000z~\u0005N\u0000\u0000{|\u0005i\u0000\u0000|~\u0005n\u0000"
- + "\u0000}y\u0001\u0000\u0000\u0000}{\u0001\u0000\u0000\u0000~$\u0001\u0000"
- + "\u0000\u0000\u007f\u0080\u0005N\u0000\u0000\u0080\u0081\u0005I\u0000\u0000"
- + "\u0081\u0086\u0005N\u0000\u0000\u0082\u0083\u0005n\u0000\u0000\u0083\u0084"
- + "\u0005i\u0000\u0000\u0084\u0086\u0005n\u0000\u0000\u0085\u007f\u0001\u0000"
- + "\u0000\u0000\u0085\u0082\u0001\u0000\u0000\u0000\u0086&\u0001\u0000\u0000"
- + "\u0000\u0087\u0088\u0005N\u0000\u0000\u0088\u0089\u0005O\u0000\u0000\u0089"
- + "\u008e\u0005T\u0000\u0000\u008a\u008b\u0005n\u0000\u0000\u008b\u008c\u0005"
- + "o\u0000\u0000\u008c\u008e\u0005t\u0000\u0000\u008d\u0087\u0001\u0000\u0000"
- + "\u0000\u008d\u008a\u0001\u0000\u0000\u0000\u008e(\u0001\u0000\u0000\u0000"
- + "\u008f\u0090\u0005T\u0000\u0000\u0090\u0091\u0005R\u0000\u0000\u0091\u0092"
- + "\u0005U\u0000\u0000\u0092\u00a2\u0005E\u0000\u0000\u0093\u0094\u0005t"
- + "\u0000\u0000\u0094\u0095\u0005r\u0000\u0000\u0095\u0096\u0005u\u0000\u0000"
- + "\u0096\u00a2\u0005e\u0000\u0000\u0097\u0098\u0005F\u0000\u0000\u0098\u0099"
- + "\u0005A\u0000\u0000\u0099\u009a\u0005L\u0000\u0000\u009a\u009b\u0005S"
- + "\u0000\u0000\u009b\u00a2\u0005E\u0000\u0000\u009c\u009d\u0005f\u0000\u0000"
- + "\u009d\u009e\u0005a\u0000\u0000\u009e\u009f\u0005l\u0000\u0000\u009f\u00a0"
- + "\u0005s\u0000\u0000\u00a0\u00a2\u0005e\u0000\u0000\u00a1\u008f\u0001\u0000"
- + "\u0000\u0000\u00a1\u0093\u0001\u0000\u0000\u0000\u00a1\u0097\u0001\u0000"
- + "\u0000\u0000\u00a1\u009c\u0001\u0000\u0000\u0000\u00a2*\u0001\u0000\u0000"
- + "\u0000\u00a3\u00a9\u0005\'\u0000\u0000\u00a4\u00a8\b\u0000\u0000\u0000"
- + "\u00a5\u00a6\u0005\\\u0000\u0000\u00a6\u00a8\t\u0000\u0000\u0000\u00a7"
- + "\u00a4\u0001\u0000\u0000\u0000\u00a7\u00a5\u0001\u0000\u0000\u0000\u00a8"
- + "\u00ab\u0001\u0000\u0000\u0000\u00a9\u00a7\u0001\u0000\u0000\u0000\u00a9"
- + "\u00aa\u0001\u0000\u0000\u0000\u00aa\u00ac\u0001\u0000\u0000\u0000\u00ab"
- + "\u00a9\u0001\u0000\u0000\u0000\u00ac\u00b8\u0005\'\u0000\u0000\u00ad\u00b3"
- + "\u0005\"\u0000\u0000\u00ae\u00b2\b\u0001\u0000\u0000\u00af\u00b0\u0005"
- + "\\\u0000\u0000\u00b0\u00b2\t\u0000\u0000\u0000\u00b1\u00ae\u0001\u0000"
- + "\u0000\u0000\u00b1\u00af\u0001\u0000\u0000\u0000\u00b2\u00b5\u0001\u0000"
- + "\u0000\u0000\u00b3\u00b1\u0001\u0000\u0000\u0000\u00b3\u00b4\u0001\u0000"
- + "\u0000\u0000\u00b4\u00b6\u0001\u0000\u0000\u0000\u00b5\u00b3\u0001\u0000"
- + "\u0000\u0000\u00b6\u00b8\u0005\"\u0000\u0000\u00b7\u00a3\u0001\u0000\u0000"
- + "\u0000\u00b7\u00ad\u0001\u0000\u0000\u0000\u00b8,\u0001\u0000\u0000\u0000"
- + "\u00b9\u00bb\u00035\u001a\u0000\u00ba\u00b9\u0001\u0000\u0000\u0000\u00bb"
- + "\u00bc\u0001\u0000\u0000\u0000\u00bc\u00ba\u0001\u0000\u0000\u0000\u00bc"
- + "\u00bd\u0001\u0000\u0000\u0000\u00bd.\u0001\u0000\u0000\u0000\u00be\u00bf"
- + "\u00033\u0019\u0000\u00bf0\u0001\u0000\u0000\u0000\u00c0\u00c4\u00037"
- + "\u001b\u0000\u00c1\u00c4\u00035\u001a\u0000\u00c2\u00c4\u0005_\u0000\u0000"
- + "\u00c3\u00c0\u0001\u0000\u0000\u0000\u00c3\u00c1\u0001\u0000\u0000\u0000"
- + "\u00c3\u00c2\u0001\u0000\u0000\u0000\u00c4\u00c5\u0001\u0000\u0000\u0000"
- + "\u00c5\u00c3\u0001\u0000\u0000\u0000\u00c5\u00c6\u0001\u0000\u0000\u0000"
- + "\u00c62\u0001\u0000\u0000\u0000\u00c7\u00c9\u00035\u001a\u0000\u00c8\u00c7"
- + "\u0001\u0000\u0000\u0000\u00c9\u00ca\u0001\u0000\u0000\u0000\u00ca\u00c8"
- + "\u0001\u0000\u0000\u0000\u00ca\u00cb\u0001\u0000\u0000\u0000\u00cb\u00cc"
- + "\u0001\u0000\u0000\u0000\u00cc\u00d0\u0005.\u0000\u0000\u00cd\u00cf\u0003"
- + "5\u001a\u0000\u00ce\u00cd\u0001\u0000\u0000\u0000\u00cf\u00d2\u0001\u0000"
- + "\u0000\u0000\u00d0\u00ce\u0001\u0000\u0000\u0000\u00d0\u00d1\u0001\u0000"
- + "\u0000\u0000\u00d1\u00da\u0001\u0000\u0000\u0000\u00d2\u00d0\u0001\u0000"
- + "\u0000\u0000\u00d3\u00d5\u0005.\u0000\u0000\u00d4\u00d6\u00035\u001a\u0000"
- + "\u00d5\u00d4\u0001\u0000\u0000\u0000\u00d6\u00d7\u0001\u0000\u0000\u0000"
- + "\u00d7\u00d5\u0001\u0000\u0000\u0000\u00d7\u00d8\u0001\u0000\u0000\u0000"
- + "\u00d8\u00da\u0001\u0000\u0000\u0000\u00d9\u00c8\u0001\u0000\u0000\u0000"
- + "\u00d9\u00d3\u0001\u0000\u0000\u0000\u00da4\u0001\u0000\u0000\u0000\u00db"
- + "\u00dc\u0007\u0002\u0000\u0000\u00dc6\u0001\u0000\u0000\u0000\u00dd\u00de"
- + "\u0007\u0003\u0000\u0000\u00de8\u0001\u0000\u0000\u0000\u00df\u00e1\u0007"
- + "\u0004\u0000\u0000\u00e0\u00df\u0001\u0000\u0000\u0000\u00e1\u00e2\u0001"
- + "\u0000\u0000\u0000\u00e2\u00e0\u0001\u0000\u0000\u0000\u00e2\u00e3\u0001"
- + "\u0000\u0000\u0000\u00e3\u00e4\u0001\u0000\u0000\u0000\u00e4\u00e5\u0006"
- + "\u001c\u0000\u0000\u00e5:\u0001\u0000\u0000\u0000\u0015\u0000Eow}\u0085"
- + "\u008d\u00a1\u00a7\u00a9\u00b1\u00b3\u00b7\u00bc\u00c3\u00c5\u00ca\u00d0"
- + "\u00d7\u00d9\u00e2\u0001\u0000\u0001\u0000";
-
- public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray());
-
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache();
- private static final String[] _LITERAL_NAMES = makeLiteralNames();
-
- private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
-
- public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
+ public static final int LONG_SUFFIX = 1, WHERE = 2, DOT = 3, COMMA = 4, LEFT_SQUARE_BRACKETS = 5,
+ RIGHT_SQUARE_BRACKETS = 6, LEFT_PARENTHESIS = 7, RIGHT_PARENTHESIS = 8, EQUALS = 9, MINUS = 10, PLUS = 11,
+ GT = 12, GE = 13, LT = 14, LE = 15, NE = 16, AND = 17, OR = 18, IN = 19, NIN = 20, NOT = 21,
+ BOOLEAN_VALUE = 22, QUOTED_STRING = 23, INTEGER_VALUE = 24, DECIMAL_VALUE = 25, IDENTIFIER = 26, WS = 27;
public static String[] channelNames = { "DEFAULT_TOKEN_CHANNEL", "HIDDEN" };
public static String[] modeNames = { "DEFAULT_MODE" };
- public FiltersLexer(CharStream input) {
- super(input);
- _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
- }
-
private static String[] makeRuleNames() {
- return new String[] { "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS", "RIGHT_SQUARE_BRACKETS",
+ return new String[] { "LONG_SUFFIX", "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS", "RIGHT_SQUARE_BRACKETS",
"LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "EQUALS", "MINUS", "PLUS", "GT", "GE", "LT", "LE", "NE", "AND",
"OR", "IN", "NIN", "NOT", "BOOLEAN_VALUE", "QUOTED_STRING", "INTEGER_VALUE", "DECIMAL_VALUE",
"IDENTIFIER", "DECIMAL_DIGITS", "DIGIT", "LETTER", "WS" };
}
+ public static final String[] ruleNames = makeRuleNames();
+
private static String[] makeLiteralNames() {
- return new String[] { null, null, "'.'", "','", "'['", "']'", "'('", "')'", "'=='", "'-'", "'+'", "'>'", "'>='",
- "'<'", "'<='", "'!='" };
+ return new String[] { null, null, null, "'.'", "','", "'['", "']'", "'('", "')'", "'=='", "'-'", "'+'", "'>'",
+ "'>='", "'<'", "'<='", "'!='" };
}
+ private static final String[] _LITERAL_NAMES = makeLiteralNames();
+
private static String[] makeSymbolicNames() {
- return new String[] { null, "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS", "RIGHT_SQUARE_BRACKETS",
- "LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "EQUALS", "MINUS", "PLUS", "GT", "GE", "LT", "LE", "NE", "AND",
- "OR", "IN", "NIN", "NOT", "BOOLEAN_VALUE", "QUOTED_STRING", "INTEGER_VALUE", "DECIMAL_VALUE",
- "IDENTIFIER", "WS" };
+ return new String[] { null, "LONG_SUFFIX", "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS",
+ "RIGHT_SQUARE_BRACKETS", "LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "EQUALS", "MINUS", "PLUS", "GT", "GE",
+ "LT", "LE", "NE", "AND", "OR", "IN", "NIN", "NOT", "BOOLEAN_VALUE", "QUOTED_STRING", "INTEGER_VALUE",
+ "DECIMAL_VALUE", "IDENTIFIER", "WS" };
+ }
+
+ private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
+
+ public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
+
+ /**
+ * @deprecated Use {@link #VOCABULARY} instead.
+ */
+ @Deprecated
+ public static final String[] tokenNames;
+ static {
+ tokenNames = new String[_SYMBOLIC_NAMES.length];
+ for (int i = 0; i < tokenNames.length; i++) {
+ tokenNames[i] = VOCABULARY.getLiteralName(i);
+ if (tokenNames[i] == null) {
+ tokenNames[i] = VOCABULARY.getSymbolicName(i);
+ }
+
+ if (tokenNames[i] == null) {
+ tokenNames[i] = "";
+ }
+ }
}
@Override
@@ -253,6 +102,11 @@ public Vocabulary getVocabulary() {
return VOCABULARY;
}
+ public FiltersLexer(CharStream input) {
+ super(input);
+ _interp = new LexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
+ }
+
@Override
public String getGrammarFileName() {
return "Filters.g4";
@@ -283,24 +137,166 @@ public ATN getATN() {
return _ATN;
}
- static {
- RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION);
- }
-
- static {
- tokenNames = new String[_SYMBOLIC_NAMES.length];
- for (int i = 0; i < tokenNames.length; i++) {
- tokenNames[i] = VOCABULARY.getLiteralName(i);
- if (tokenNames[i] == null) {
- tokenNames[i] = VOCABULARY.getSymbolicName(i);
- }
-
- if (tokenNames[i] == null) {
- tokenNames[i] = "";
- }
- }
- }
+ public static final String _serializedATN = "\u0004\u0000\u001b\u00ef\u0006\uffff\uffff\u0002\u0000\u0007\u0000\u0002"
+ + "\u0001\u0007\u0001\u0002\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002"
+ + "\u0004\u0007\u0004\u0002\u0005\u0007\u0005\u0002\u0006\u0007\u0006\u0002"
+ + "\u0007\u0007\u0007\u0002\b\u0007\b\u0002\t\u0007\t\u0002\n\u0007\n\u0002"
+ + "\u000b\u0007\u000b\u0002\f\u0007\f\u0002\r\u0007\r\u0002\u000e\u0007\u000e"
+ + "\u0002\u000f\u0007\u000f\u0002\u0010\u0007\u0010\u0002\u0011\u0007\u0011"
+ + "\u0002\u0012\u0007\u0012\u0002\u0013\u0007\u0013\u0002\u0014\u0007\u0014"
+ + "\u0002\u0015\u0007\u0015\u0002\u0016\u0007\u0016\u0002\u0017\u0007\u0017"
+ + "\u0002\u0018\u0007\u0018\u0002\u0019\u0007\u0019\u0002\u001a\u0007\u001a"
+ + "\u0002\u001b\u0007\u001b\u0002\u001c\u0007\u001c\u0002\u001d\u0007\u001d"
+ + "\u0001\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0003\u0001J\b\u0001\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003"
+ + "\u0001\u0004\u0001\u0004\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006"
+ + "\u0001\u0007\u0001\u0007\u0001\b\u0001\b\u0001\b\u0001\t\u0001\t\u0001"
+ + "\n\u0001\n\u0001\u000b\u0001\u000b\u0001\f\u0001\f\u0001\f\u0001\r\u0001"
+ + "\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001\u000f\u0001\u000f"
+ + "\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0010"
+ + "\u0001\u0010\u0001\u0010\u0003\u0010t\b\u0010\u0001\u0011\u0001\u0011"
+ + "\u0001\u0011\u0001\u0011\u0001\u0011\u0001\u0011\u0003\u0011|\b\u0011"
+ + "\u0001\u0012\u0001\u0012\u0001\u0012\u0001\u0012\u0003\u0012\u0082\b\u0012"
+ + "\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013"
+ + "\u0003\u0013\u008a\b\u0013\u0001\u0014\u0001\u0014\u0001\u0014\u0001\u0014"
+ + "\u0001\u0014\u0001\u0014\u0003\u0014\u0092\b\u0014\u0001\u0015\u0001\u0015"
+ + "\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015"
+ + "\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015"
+ + "\u0001\u0015\u0001\u0015\u0001\u0015\u0001\u0015\u0003\u0015\u00a6\b\u0015"
+ + "\u0001\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0005\u0016\u00ac\b\u0016"
+ + "\n\u0016\f\u0016\u00af\t\u0016\u0001\u0016\u0001\u0016\u0001\u0016\u0001"
+ + "\u0016\u0001\u0016\u0005\u0016\u00b6\b\u0016\n\u0016\f\u0016\u00b9\t\u0016"
+ + "\u0001\u0016\u0003\u0016\u00bc\b\u0016\u0001\u0017\u0004\u0017\u00bf\b"
+ + "\u0017\u000b\u0017\f\u0017\u00c0\u0001\u0018\u0001\u0018\u0001\u0019\u0001"
+ + "\u0019\u0003\u0019\u00c7\b\u0019\u0001\u0019\u0001\u0019\u0001\u0019\u0005"
+ + "\u0019\u00cc\b\u0019\n\u0019\f\u0019\u00cf\t\u0019\u0001\u001a\u0004\u001a"
+ + "\u00d2\b\u001a\u000b\u001a\f\u001a\u00d3\u0001\u001a\u0001\u001a\u0005"
+ + "\u001a\u00d8\b\u001a\n\u001a\f\u001a\u00db\t\u001a\u0001\u001a\u0001\u001a"
+ + "\u0004\u001a\u00df\b\u001a\u000b\u001a\f\u001a\u00e0\u0003\u001a\u00e3"
+ + "\b\u001a\u0001\u001b\u0001\u001b\u0001\u001c\u0001\u001c\u0001\u001d\u0004"
+ + "\u001d\u00ea\b\u001d\u000b\u001d\f\u001d\u00eb\u0001\u001d\u0001\u001d"
+ + "\u0000\u0000\u001e\u0001\u0001\u0003\u0002\u0005\u0003\u0007\u0004\t\u0005"
+ + "\u000b\u0006\r\u0007\u000f\b\u0011\t\u0013\n\u0015\u000b\u0017\f\u0019"
+ + "\r\u001b\u000e\u001d\u000f\u001f\u0010!\u0011#\u0012%\u0013\'\u0014)\u0015"
+ + "+\u0016-\u0017/\u00181\u00193\u001a5\u00007\u00009\u0000;\u001b\u0001"
+ + "\u0000\u0006\u0002\u0000LLll\u0002\u0000\'\'\\\\\u0002\u0000\"\"\\\\\u0001"
+ + "\u000009\u0002\u0000AZaz\u0003\u0000\t\n\r\r \u0105\u0000\u0001\u0001"
+ + "\u0000\u0000\u0000\u0000\u0003\u0001\u0000\u0000\u0000\u0000\u0005\u0001"
+ + "\u0000\u0000\u0000\u0000\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000"
+ + "\u0000\u0000\u0000\u000b\u0001\u0000\u0000\u0000\u0000\r\u0001\u0000\u0000"
+ + "\u0000\u0000\u000f\u0001\u0000\u0000\u0000\u0000\u0011\u0001\u0000\u0000"
+ + "\u0000\u0000\u0013\u0001\u0000\u0000\u0000\u0000\u0015\u0001\u0000\u0000"
+ + "\u0000\u0000\u0017\u0001\u0000\u0000\u0000\u0000\u0019\u0001\u0000\u0000"
+ + "\u0000\u0000\u001b\u0001\u0000\u0000\u0000\u0000\u001d\u0001\u0000\u0000"
+ + "\u0000\u0000\u001f\u0001\u0000\u0000\u0000\u0000!\u0001\u0000\u0000\u0000"
+ + "\u0000#\u0001\u0000\u0000\u0000\u0000%\u0001\u0000\u0000\u0000\u0000\'"
+ + "\u0001\u0000\u0000\u0000\u0000)\u0001\u0000\u0000\u0000\u0000+\u0001\u0000"
+ + "\u0000\u0000\u0000-\u0001\u0000\u0000\u0000\u0000/\u0001\u0000\u0000\u0000"
+ + "\u00001\u0001\u0000\u0000\u0000\u00003\u0001\u0000\u0000\u0000\u0000;"
+ + "\u0001\u0000\u0000\u0000\u0001=\u0001\u0000\u0000\u0000\u0003I\u0001\u0000"
+ + "\u0000\u0000\u0005K\u0001\u0000\u0000\u0000\u0007M\u0001\u0000\u0000\u0000"
+ + "\tO\u0001\u0000\u0000\u0000\u000bQ\u0001\u0000\u0000\u0000\rS\u0001\u0000"
+ + "\u0000\u0000\u000fU\u0001\u0000\u0000\u0000\u0011W\u0001\u0000\u0000\u0000"
+ + "\u0013Z\u0001\u0000\u0000\u0000\u0015\\\u0001\u0000\u0000\u0000\u0017"
+ + "^\u0001\u0000\u0000\u0000\u0019`\u0001\u0000\u0000\u0000\u001bc\u0001"
+ + "\u0000\u0000\u0000\u001de\u0001\u0000\u0000\u0000\u001fh\u0001\u0000\u0000"
+ + "\u0000!s\u0001\u0000\u0000\u0000#{\u0001\u0000\u0000\u0000%\u0081\u0001"
+ + "\u0000\u0000\u0000\'\u0089\u0001\u0000\u0000\u0000)\u0091\u0001\u0000"
+ + "\u0000\u0000+\u00a5\u0001\u0000\u0000\u0000-\u00bb\u0001\u0000\u0000\u0000"
+ + "/\u00be\u0001\u0000\u0000\u00001\u00c2\u0001\u0000\u0000\u00003\u00c6"
+ + "\u0001\u0000\u0000\u00005\u00e2\u0001\u0000\u0000\u00007\u00e4\u0001\u0000"
+ + "\u0000\u00009\u00e6\u0001\u0000\u0000\u0000;\u00e9\u0001\u0000\u0000\u0000"
+ + "=>\u0007\u0000\u0000\u0000>\u0002\u0001\u0000\u0000\u0000?@\u0005W\u0000"
+ + "\u0000@A\u0005H\u0000\u0000AB\u0005E\u0000\u0000BC\u0005R\u0000\u0000"
+ + "CJ\u0005E\u0000\u0000DE\u0005w\u0000\u0000EF\u0005h\u0000\u0000FG\u0005"
+ + "e\u0000\u0000GH\u0005r\u0000\u0000HJ\u0005e\u0000\u0000I?\u0001\u0000"
+ + "\u0000\u0000ID\u0001\u0000\u0000\u0000J\u0004\u0001\u0000\u0000\u0000"
+ + "KL\u0005.\u0000\u0000L\u0006\u0001\u0000\u0000\u0000MN\u0005,\u0000\u0000"
+ + "N\b\u0001\u0000\u0000\u0000OP\u0005[\u0000\u0000P\n\u0001\u0000\u0000"
+ + "\u0000QR\u0005]\u0000\u0000R\f\u0001\u0000\u0000\u0000ST\u0005(\u0000"
+ + "\u0000T\u000e\u0001\u0000\u0000\u0000UV\u0005)\u0000\u0000V\u0010\u0001"
+ + "\u0000\u0000\u0000WX\u0005=\u0000\u0000XY\u0005=\u0000\u0000Y\u0012\u0001"
+ + "\u0000\u0000\u0000Z[\u0005-\u0000\u0000[\u0014\u0001\u0000\u0000\u0000"
+ + "\\]\u0005+\u0000\u0000]\u0016\u0001\u0000\u0000\u0000^_\u0005>\u0000\u0000"
+ + "_\u0018\u0001\u0000\u0000\u0000`a\u0005>\u0000\u0000ab\u0005=\u0000\u0000"
+ + "b\u001a\u0001\u0000\u0000\u0000cd\u0005<\u0000\u0000d\u001c\u0001\u0000"
+ + "\u0000\u0000ef\u0005<\u0000\u0000fg\u0005=\u0000\u0000g\u001e\u0001\u0000"
+ + "\u0000\u0000hi\u0005!\u0000\u0000ij\u0005=\u0000\u0000j \u0001\u0000\u0000"
+ + "\u0000kl\u0005A\u0000\u0000lm\u0005N\u0000\u0000mt\u0005D\u0000\u0000"
+ + "no\u0005a\u0000\u0000op\u0005n\u0000\u0000pt\u0005d\u0000\u0000qr\u0005"
+ + "&\u0000\u0000rt\u0005&\u0000\u0000sk\u0001\u0000\u0000\u0000sn\u0001\u0000"
+ + "\u0000\u0000sq\u0001\u0000\u0000\u0000t\"\u0001\u0000\u0000\u0000uv\u0005"
+ + "O\u0000\u0000v|\u0005R\u0000\u0000wx\u0005o\u0000\u0000x|\u0005r\u0000"
+ + "\u0000yz\u0005|\u0000\u0000z|\u0005|\u0000\u0000{u\u0001\u0000\u0000\u0000"
+ + "{w\u0001\u0000\u0000\u0000{y\u0001\u0000\u0000\u0000|$\u0001\u0000\u0000"
+ + "\u0000}~\u0005I\u0000\u0000~\u0082\u0005N\u0000\u0000\u007f\u0080\u0005"
+ + "i\u0000\u0000\u0080\u0082\u0005n\u0000\u0000\u0081}\u0001\u0000\u0000"
+ + "\u0000\u0081\u007f\u0001\u0000\u0000\u0000\u0082&\u0001\u0000\u0000\u0000"
+ + "\u0083\u0084\u0005N\u0000\u0000\u0084\u0085\u0005I\u0000\u0000\u0085\u008a"
+ + "\u0005N\u0000\u0000\u0086\u0087\u0005n\u0000\u0000\u0087\u0088\u0005i"
+ + "\u0000\u0000\u0088\u008a\u0005n\u0000\u0000\u0089\u0083\u0001\u0000\u0000"
+ + "\u0000\u0089\u0086\u0001\u0000\u0000\u0000\u008a(\u0001\u0000\u0000\u0000"
+ + "\u008b\u008c\u0005N\u0000\u0000\u008c\u008d\u0005O\u0000\u0000\u008d\u0092"
+ + "\u0005T\u0000\u0000\u008e\u008f\u0005n\u0000\u0000\u008f\u0090\u0005o"
+ + "\u0000\u0000\u0090\u0092\u0005t\u0000\u0000\u0091\u008b\u0001\u0000\u0000"
+ + "\u0000\u0091\u008e\u0001\u0000\u0000\u0000\u0092*\u0001\u0000\u0000\u0000"
+ + "\u0093\u0094\u0005T\u0000\u0000\u0094\u0095\u0005R\u0000\u0000\u0095\u0096"
+ + "\u0005U\u0000\u0000\u0096\u00a6\u0005E\u0000\u0000\u0097\u0098\u0005t"
+ + "\u0000\u0000\u0098\u0099\u0005r\u0000\u0000\u0099\u009a\u0005u\u0000\u0000"
+ + "\u009a\u00a6\u0005e\u0000\u0000\u009b\u009c\u0005F\u0000\u0000\u009c\u009d"
+ + "\u0005A\u0000\u0000\u009d\u009e\u0005L\u0000\u0000\u009e\u009f\u0005S"
+ + "\u0000\u0000\u009f\u00a6\u0005E\u0000\u0000\u00a0\u00a1\u0005f\u0000\u0000"
+ + "\u00a1\u00a2\u0005a\u0000\u0000\u00a2\u00a3\u0005l\u0000\u0000\u00a3\u00a4"
+ + "\u0005s\u0000\u0000\u00a4\u00a6\u0005e\u0000\u0000\u00a5\u0093\u0001\u0000"
+ + "\u0000\u0000\u00a5\u0097\u0001\u0000\u0000\u0000\u00a5\u009b\u0001\u0000"
+ + "\u0000\u0000\u00a5\u00a0\u0001\u0000\u0000\u0000\u00a6,\u0001\u0000\u0000"
+ + "\u0000\u00a7\u00ad\u0005\'\u0000\u0000\u00a8\u00ac\b\u0001\u0000\u0000"
+ + "\u00a9\u00aa\u0005\\\u0000\u0000\u00aa\u00ac\t\u0000\u0000\u0000\u00ab"
+ + "\u00a8\u0001\u0000\u0000\u0000\u00ab\u00a9\u0001\u0000\u0000\u0000\u00ac"
+ + "\u00af\u0001\u0000\u0000\u0000\u00ad\u00ab\u0001\u0000\u0000\u0000\u00ad"
+ + "\u00ae\u0001\u0000\u0000\u0000\u00ae\u00b0\u0001\u0000\u0000\u0000\u00af"
+ + "\u00ad\u0001\u0000\u0000\u0000\u00b0\u00bc\u0005\'\u0000\u0000\u00b1\u00b7"
+ + "\u0005\"\u0000\u0000\u00b2\u00b6\b\u0002\u0000\u0000\u00b3\u00b4\u0005"
+ + "\\\u0000\u0000\u00b4\u00b6\t\u0000\u0000\u0000\u00b5\u00b2\u0001\u0000"
+ + "\u0000\u0000\u00b5\u00b3\u0001\u0000\u0000\u0000\u00b6\u00b9\u0001\u0000"
+ + "\u0000\u0000\u00b7\u00b5\u0001\u0000\u0000\u0000\u00b7\u00b8\u0001\u0000"
+ + "\u0000\u0000\u00b8\u00ba\u0001\u0000\u0000\u0000\u00b9\u00b7\u0001\u0000"
+ + "\u0000\u0000\u00ba\u00bc\u0005\"\u0000\u0000\u00bb\u00a7\u0001\u0000\u0000"
+ + "\u0000\u00bb\u00b1\u0001\u0000\u0000\u0000\u00bc.\u0001\u0000\u0000\u0000"
+ + "\u00bd\u00bf\u00037\u001b\u0000\u00be\u00bd\u0001\u0000\u0000\u0000\u00bf"
+ + "\u00c0\u0001\u0000\u0000\u0000\u00c0\u00be\u0001\u0000\u0000\u0000\u00c0"
+ + "\u00c1\u0001\u0000\u0000\u0000\u00c10\u0001\u0000\u0000\u0000\u00c2\u00c3"
+ + "\u00035\u001a\u0000\u00c32\u0001\u0000\u0000\u0000\u00c4\u00c7\u00039"
+ + "\u001c\u0000\u00c5\u00c7\u0005_\u0000\u0000\u00c6\u00c4\u0001\u0000\u0000"
+ + "\u0000\u00c6\u00c5\u0001\u0000\u0000\u0000\u00c7\u00cd\u0001\u0000\u0000"
+ + "\u0000\u00c8\u00cc\u00039\u001c\u0000\u00c9\u00cc\u00037\u001b\u0000\u00ca"
+ + "\u00cc\u0005_\u0000\u0000\u00cb\u00c8\u0001\u0000\u0000\u0000\u00cb\u00c9"
+ + "\u0001\u0000\u0000\u0000\u00cb\u00ca\u0001\u0000\u0000\u0000\u00cc\u00cf"
+ + "\u0001\u0000\u0000\u0000\u00cd\u00cb\u0001\u0000\u0000\u0000\u00cd\u00ce"
+ + "\u0001\u0000\u0000\u0000\u00ce4\u0001\u0000\u0000\u0000\u00cf\u00cd\u0001"
+ + "\u0000\u0000\u0000\u00d0\u00d2\u00037\u001b\u0000\u00d1\u00d0\u0001\u0000"
+ + "\u0000\u0000\u00d2\u00d3\u0001\u0000\u0000\u0000\u00d3\u00d1\u0001\u0000"
+ + "\u0000\u0000\u00d3\u00d4\u0001\u0000\u0000\u0000\u00d4\u00d5\u0001\u0000"
+ + "\u0000\u0000\u00d5\u00d9\u0005.\u0000\u0000\u00d6\u00d8\u00037\u001b\u0000"
+ + "\u00d7\u00d6\u0001\u0000\u0000\u0000\u00d8\u00db\u0001\u0000\u0000\u0000"
+ + "\u00d9\u00d7\u0001\u0000\u0000\u0000\u00d9\u00da\u0001\u0000\u0000\u0000"
+ + "\u00da\u00e3\u0001\u0000\u0000\u0000\u00db\u00d9\u0001\u0000\u0000\u0000"
+ + "\u00dc\u00de\u0005.\u0000\u0000\u00dd\u00df\u00037\u001b\u0000\u00de\u00dd"
+ + "\u0001\u0000\u0000\u0000\u00df\u00e0\u0001\u0000\u0000\u0000\u00e0\u00de"
+ + "\u0001\u0000\u0000\u0000\u00e0\u00e1\u0001\u0000\u0000\u0000\u00e1\u00e3"
+ + "\u0001\u0000\u0000\u0000\u00e2\u00d1\u0001\u0000\u0000\u0000\u00e2\u00dc"
+ + "\u0001\u0000\u0000\u0000\u00e36\u0001\u0000\u0000\u0000\u00e4\u00e5\u0007"
+ + "\u0003\u0000\u0000\u00e58\u0001\u0000\u0000\u0000\u00e6\u00e7\u0007\u0004"
+ + "\u0000\u0000\u00e7:\u0001\u0000\u0000\u0000\u00e8\u00ea\u0007\u0005\u0000"
+ + "\u0000\u00e9\u00e8\u0001\u0000\u0000\u0000\u00ea\u00eb\u0001\u0000\u0000"
+ + "\u0000\u00eb\u00e9\u0001\u0000\u0000\u0000\u00eb\u00ec\u0001\u0000\u0000"
+ + "\u0000\u00ec\u00ed\u0001\u0000\u0000\u0000\u00ed\u00ee\u0006\u001d\u0000"
+ + "\u0000\u00ee<\u0001\u0000\u0000\u0000\u0016\u0000Is{\u0081\u0089\u0091"
+ + "\u00a5\u00ab\u00ad\u00b5\u00b7\u00bb\u00c0\u00c6\u00cb\u00cd\u00d3\u00d9"
+ + "\u00e0\u00e2\u00eb\u0001\u0000\u0001\u0000";
+ public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray());
static {
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersListener.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersListener.java
index 8e49aeff6b3..c2490c68fd0 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersListener.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersListener.java
@@ -176,6 +176,20 @@ public interface FiltersListener extends ParseTreeListener {
*/
void exitIdentifier(FiltersParser.IdentifierContext ctx);
+ /**
+ * Enter a parse tree produced by the {@code LongConstant} labeled alternative in
+ * {@link FiltersParser#constant}.
+ * @param ctx the parse tree
+ */
+ void enterLongConstant(FiltersParser.LongConstantContext ctx);
+
+ /**
+ * Exit a parse tree produced by the {@code LongConstant} labeled alternative in
+ * {@link FiltersParser#constant}.
+ * @param ctx the parse tree
+ */
+ void exitLongConstant(FiltersParser.LongConstantContext ctx);
+
/**
* Enter a parse tree produced by the {@code IntegerConstant} labeled alternative in
* {@link FiltersParser#constant}.
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersParser.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersParser.java
index 945a3a95334..f48735a0a64 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersParser.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersParser.java
@@ -22,119 +22,56 @@
// # NOTE: This is ANTLR4 auto-generated code. Do not modify! #
// ############################################################
-import java.util.List;
-
-import org.antlr.v4.runtime.FailedPredicateException;
-import org.antlr.v4.runtime.NoViableAltException;
-import org.antlr.v4.runtime.Parser;
-import org.antlr.v4.runtime.ParserRuleContext;
-import org.antlr.v4.runtime.RecognitionException;
-import org.antlr.v4.runtime.RuleContext;
-import org.antlr.v4.runtime.RuntimeMetaData;
-import org.antlr.v4.runtime.Token;
-import org.antlr.v4.runtime.TokenStream;
-import org.antlr.v4.runtime.Vocabulary;
-import org.antlr.v4.runtime.VocabularyImpl;
-import org.antlr.v4.runtime.atn.ATN;
-import org.antlr.v4.runtime.atn.ATNDeserializer;
-import org.antlr.v4.runtime.atn.ParserATNSimulator;
-import org.antlr.v4.runtime.atn.PredictionContextCache;
+import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
-import org.antlr.v4.runtime.tree.ParseTreeListener;
-import org.antlr.v4.runtime.tree.ParseTreeVisitor;
-import org.antlr.v4.runtime.tree.TerminalNode;
+import org.antlr.v4.runtime.*;
+import org.antlr.v4.runtime.tree.*;
+import java.util.List;
@SuppressWarnings({ "all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue" })
public class FiltersParser extends Parser {
- public static final int WHERE = 1, DOT = 2, COMMA = 3, LEFT_SQUARE_BRACKETS = 4, RIGHT_SQUARE_BRACKETS = 5,
- LEFT_PARENTHESIS = 6, RIGHT_PARENTHESIS = 7, EQUALS = 8, MINUS = 9, PLUS = 10, GT = 11, GE = 12, LT = 13,
- LE = 14, NE = 15, AND = 16, OR = 17, IN = 18, NIN = 19, NOT = 20, BOOLEAN_VALUE = 21, QUOTED_STRING = 22,
- INTEGER_VALUE = 23, DECIMAL_VALUE = 24, IDENTIFIER = 25, WS = 26;
-
- public static final int RULE_where = 0, RULE_booleanExpression = 1, RULE_constantArray = 2, RULE_compare = 3,
- RULE_identifier = 4, RULE_constant = 5;
+ protected static final DFA[] _decisionToDFA;
- public static final String[] ruleNames = makeRuleNames();
+ protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache();
- /**
- * @deprecated Use {@link #VOCABULARY} instead.
- */
- @Deprecated
- public static final String[] tokenNames;
+ public static final int LONG_SUFFIX = 1, WHERE = 2, DOT = 3, COMMA = 4, LEFT_SQUARE_BRACKETS = 5,
+ RIGHT_SQUARE_BRACKETS = 6, LEFT_PARENTHESIS = 7, RIGHT_PARENTHESIS = 8, EQUALS = 9, MINUS = 10, PLUS = 11,
+ GT = 12, GE = 13, LT = 14, LE = 15, NE = 16, AND = 17, OR = 18, IN = 19, NIN = 20, NOT = 21,
+ BOOLEAN_VALUE = 22, QUOTED_STRING = 23, INTEGER_VALUE = 24, DECIMAL_VALUE = 25, IDENTIFIER = 26, WS = 27;
- public static final String _serializedATN = "\u0004\u0001\u001aY\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"
- + "\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"
- + "\u0005\u0007\u0005\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001"
- + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
- + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
- + "\u0001\u0003\u0001\u001e\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
- + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0003\u0001(\b"
- + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
- + "\u0001\u0005\u00010\b\u0001\n\u0001\f\u00013\t\u0001\u0001\u0002\u0001"
- + "\u0002\u0001\u0002\u0001\u0002\u0005\u00029\b\u0002\n\u0002\f\u0002<\t"
- + "\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0004\u0001"
- + "\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0003\u0004G\b\u0004\u0001"
- + "\u0005\u0003\u0005J\b\u0005\u0001\u0005\u0001\u0005\u0003\u0005N\b\u0005"
- + "\u0001\u0005\u0001\u0005\u0004\u0005R\b\u0005\u000b\u0005\f\u0005S\u0001"
- + "\u0005\u0003\u0005W\b\u0005\u0001\u0005\u0000\u0001\u0002\u0006\u0000"
- + "\u0002\u0004\u0006\b\n\u0000\u0002\u0002\u0000\b\b\u000b\u000f\u0001\u0000"
- + "\t\nb\u0000\f\u0001\u0000\u0000\u0000\u0002\'\u0001\u0000\u0000\u0000"
- + "\u00044\u0001\u0000\u0000\u0000\u0006?\u0001\u0000\u0000\u0000\bF\u0001"
- + "\u0000\u0000\u0000\nV\u0001\u0000\u0000\u0000\f\r\u0005\u0001\u0000\u0000"
- + "\r\u000e\u0003\u0002\u0001\u0000\u000e\u000f\u0005\u0000\u0000\u0001\u000f"
- + "\u0001\u0001\u0000\u0000\u0000\u0010\u0011\u0006\u0001\uffff\uffff\u0000"
- + "\u0011\u0012\u0003\b\u0004\u0000\u0012\u0013\u0003\u0006\u0003\u0000\u0013"
- + "\u0014\u0003\n\u0005\u0000\u0014(\u0001\u0000\u0000\u0000\u0015\u0016"
- + "\u0003\b\u0004\u0000\u0016\u0017\u0005\u0012\u0000\u0000\u0017\u0018\u0003"
- + "\u0004\u0002\u0000\u0018(\u0001\u0000\u0000\u0000\u0019\u001d\u0003\b"
- + "\u0004\u0000\u001a\u001b\u0005\u0014\u0000\u0000\u001b\u001e\u0005\u0012"
- + "\u0000\u0000\u001c\u001e\u0005\u0013\u0000\u0000\u001d\u001a\u0001\u0000"
- + "\u0000\u0000\u001d\u001c\u0001\u0000\u0000\u0000\u001e\u001f\u0001\u0000"
- + "\u0000\u0000\u001f \u0003\u0004\u0002\u0000 (\u0001\u0000\u0000\u0000"
- + "!\"\u0005\u0006\u0000\u0000\"#\u0003\u0002\u0001\u0000#$\u0005\u0007\u0000"
- + "\u0000$(\u0001\u0000\u0000\u0000%&\u0005\u0014\u0000\u0000&(\u0003\u0002"
- + "\u0001\u0001\'\u0010\u0001\u0000\u0000\u0000\'\u0015\u0001\u0000\u0000"
- + "\u0000\'\u0019\u0001\u0000\u0000\u0000\'!\u0001\u0000\u0000\u0000\'%\u0001"
- + "\u0000\u0000\u0000(1\u0001\u0000\u0000\u0000)*\n\u0004\u0000\u0000*+\u0005"
- + "\u0010\u0000\u0000+0\u0003\u0002\u0001\u0005,-\n\u0003\u0000\u0000-.\u0005"
- + "\u0011\u0000\u0000.0\u0003\u0002\u0001\u0004/)\u0001\u0000\u0000\u0000"
- + "/,\u0001\u0000\u0000\u000003\u0001\u0000\u0000\u00001/\u0001\u0000\u0000"
- + "\u000012\u0001\u0000\u0000\u00002\u0003\u0001\u0000\u0000\u000031\u0001"
- + "\u0000\u0000\u000045\u0005\u0004\u0000\u00005:\u0003\n\u0005\u000067\u0005"
- + "\u0003\u0000\u000079\u0003\n\u0005\u000086\u0001\u0000\u0000\u00009<\u0001"
- + "\u0000\u0000\u0000:8\u0001\u0000\u0000\u0000:;\u0001\u0000\u0000\u0000"
- + ";=\u0001\u0000\u0000\u0000<:\u0001\u0000\u0000\u0000=>\u0005\u0005\u0000"
- + "\u0000>\u0005\u0001\u0000\u0000\u0000?@\u0007\u0000\u0000\u0000@\u0007"
- + "\u0001\u0000\u0000\u0000AB\u0005\u0019\u0000\u0000BC\u0005\u0002\u0000"
- + "\u0000CG\u0005\u0019\u0000\u0000DG\u0005\u0019\u0000\u0000EG\u0005\u0016"
- + "\u0000\u0000FA\u0001\u0000\u0000\u0000FD\u0001\u0000\u0000\u0000FE\u0001"
- + "\u0000\u0000\u0000G\t\u0001\u0000\u0000\u0000HJ\u0007\u0001\u0000\u0000"
- + "IH\u0001\u0000\u0000\u0000IJ\u0001\u0000\u0000\u0000JK\u0001\u0000\u0000"
- + "\u0000KW\u0005\u0017\u0000\u0000LN\u0007\u0001\u0000\u0000ML\u0001\u0000"
- + "\u0000\u0000MN\u0001\u0000\u0000\u0000NO\u0001\u0000\u0000\u0000OW\u0005"
- + "\u0018\u0000\u0000PR\u0005\u0016\u0000\u0000QP\u0001\u0000\u0000\u0000"
- + "RS\u0001\u0000\u0000\u0000SQ\u0001\u0000\u0000\u0000ST\u0001\u0000\u0000"
- + "\u0000TW\u0001\u0000\u0000\u0000UW\u0005\u0015\u0000\u0000VI\u0001\u0000"
- + "\u0000\u0000VM\u0001\u0000\u0000\u0000VQ\u0001\u0000\u0000\u0000VU\u0001"
- + "\u0000\u0000\u0000W\u000b\u0001\u0000\u0000\u0000\n\u001d\'/1:FIMSV";
+ public static final int RULE_where = 0, RULE_booleanExpression = 1, RULE_constantArray = 2, RULE_compare = 3,
+ RULE_identifier = 4, RULE_constant = 5;
- public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray());
+ private static String[] makeRuleNames() {
+ return new String[] { "where", "booleanExpression", "constantArray", "compare", "identifier", "constant" };
+ }
- protected static final DFA[] _decisionToDFA;
+ public static final String[] ruleNames = makeRuleNames();
- protected static final PredictionContextCache _sharedContextCache = new PredictionContextCache();
+ private static String[] makeLiteralNames() {
+ return new String[] { null, null, null, "'.'", "','", "'['", "']'", "'('", "')'", "'=='", "'-'", "'+'", "'>'",
+ "'>='", "'<'", "'<='", "'!='" };
+ }
private static final String[] _LITERAL_NAMES = makeLiteralNames();
+ private static String[] makeSymbolicNames() {
+ return new String[] { null, "LONG_SUFFIX", "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS",
+ "RIGHT_SQUARE_BRACKETS", "LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "EQUALS", "MINUS", "PLUS", "GT", "GE",
+ "LT", "LE", "NE", "AND", "OR", "IN", "NIN", "NOT", "BOOLEAN_VALUE", "QUOTED_STRING", "INTEGER_VALUE",
+ "DECIMAL_VALUE", "IDENTIFIER", "WS" };
+ }
+
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
- static {
- RuntimeMetaData.checkVersion("4.13.1", RuntimeMetaData.VERSION);
- }
-
+ /**
+ * @deprecated Use {@link #VOCABULARY} instead.
+ */
+ @Deprecated
+ public static final String[] tokenNames;
static {
tokenNames = new String[_SYMBOLIC_NAMES.length];
for (int i = 0; i < tokenNames.length; i++) {
@@ -149,34 +86,6 @@ public class FiltersParser extends Parser {
}
}
- static {
- _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
- for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
- _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
- }
- }
-
- public FiltersParser(TokenStream input) {
- super(input);
- _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
- }
-
- private static String[] makeRuleNames() {
- return new String[] { "where", "booleanExpression", "constantArray", "compare", "identifier", "constant" };
- }
-
- private static String[] makeLiteralNames() {
- return new String[] { null, null, "'.'", "','", "'['", "']'", "'('", "')'", "'=='", "'-'", "'+'", "'>'", "'>='",
- "'<'", "'<='", "'!='" };
- }
-
- private static String[] makeSymbolicNames() {
- return new String[] { null, "WHERE", "DOT", "COMMA", "LEFT_SQUARE_BRACKETS", "RIGHT_SQUARE_BRACKETS",
- "LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "EQUALS", "MINUS", "PLUS", "GT", "GE", "LT", "LE", "NE", "AND",
- "OR", "IN", "NIN", "NOT", "BOOLEAN_VALUE", "QUOTED_STRING", "INTEGER_VALUE", "DECIMAL_VALUE",
- "IDENTIFIER", "WS" };
- }
-
@Override
@Deprecated
public String[] getTokenNames() {
@@ -203,444 +112,20 @@ public String[] getRuleNames() {
public String getSerializedATN() {
return _serializedATN;
}
-
- @Override
- public ATN getATN() {
- return _ATN;
- }
-
- public final WhereContext where() throws RecognitionException {
- WhereContext _localctx = new WhereContext(_ctx, getState());
- enterRule(_localctx, 0, RULE_where);
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(12);
- match(WHERE);
- setState(13);
- booleanExpression(0);
- setState(14);
- match(EOF);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public final BooleanExpressionContext booleanExpression() throws RecognitionException {
- return booleanExpression(0);
- }
-
- private BooleanExpressionContext booleanExpression(int _p) throws RecognitionException {
- ParserRuleContext _parentctx = _ctx;
- int _parentState = getState();
- BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, _parentState);
- BooleanExpressionContext _prevctx = _localctx;
- int _startState = 2;
- enterRecursionRule(_localctx, 2, RULE_booleanExpression, _p);
- try {
- int _alt;
- enterOuterAlt(_localctx, 1);
- {
- setState(39);
- _errHandler.sync(this);
- switch (getInterpreter().adaptivePredict(_input, 1, _ctx)) {
- case 1: {
- _localctx = new CompareExpressionContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
-
- setState(17);
- identifier();
- setState(18);
- compare();
- setState(19);
- constant();
- }
- break;
- case 2: {
- _localctx = new InExpressionContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(21);
- identifier();
- setState(22);
- match(IN);
- setState(23);
- constantArray();
- }
- break;
- case 3: {
- _localctx = new NinExpressionContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(25);
- identifier();
- setState(29);
- _errHandler.sync(this);
- switch (_input.LA(1)) {
- case NOT: {
- setState(26);
- match(NOT);
- setState(27);
- match(IN);
- }
- break;
- case NIN: {
- setState(28);
- match(NIN);
- }
- break;
- default:
- throw new NoViableAltException(this);
- }
- setState(31);
- constantArray();
- }
- break;
- case 4: {
- _localctx = new GroupExpressionContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(33);
- match(LEFT_PARENTHESIS);
- setState(34);
- booleanExpression(0);
- setState(35);
- match(RIGHT_PARENTHESIS);
- }
- break;
- case 5: {
- _localctx = new NotExpressionContext(_localctx);
- _ctx = _localctx;
- _prevctx = _localctx;
- setState(37);
- match(NOT);
- setState(38);
- booleanExpression(1);
- }
- break;
- }
- _ctx.stop = _input.LT(-1);
- setState(49);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input, 3, _ctx);
- while (_alt != 2 && _alt != org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER) {
- if (_alt == 1) {
- if (_parseListeners != null) {
- triggerExitRuleEvent();
- }
- _prevctx = _localctx;
- {
- setState(47);
- _errHandler.sync(this);
- switch (getInterpreter().adaptivePredict(_input, 2, _ctx)) {
- case 1: {
- _localctx = new AndExpressionContext(
- new BooleanExpressionContext(_parentctx, _parentState));
- ((AndExpressionContext) _localctx).left = _prevctx;
- pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression);
- setState(41);
- if (!(precpred(_ctx, 4))) {
- throw new FailedPredicateException(this, "precpred(_ctx, 4)");
- }
- setState(42);
- ((AndExpressionContext) _localctx).operator = match(AND);
- setState(43);
- ((AndExpressionContext) _localctx).right = booleanExpression(5);
- }
- break;
- case 2: {
- _localctx = new OrExpressionContext(
- new BooleanExpressionContext(_parentctx, _parentState));
- ((OrExpressionContext) _localctx).left = _prevctx;
- pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression);
- setState(44);
- if (!(precpred(_ctx, 3))) {
- throw new FailedPredicateException(this, "precpred(_ctx, 3)");
- }
- setState(45);
- ((OrExpressionContext) _localctx).operator = match(OR);
- setState(46);
- ((OrExpressionContext) _localctx).right = booleanExpression(4);
- }
- break;
- }
- }
- }
- setState(51);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input, 3, _ctx);
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- unrollRecursionContexts(_parentctx);
- }
- return _localctx;
- }
-
- public final ConstantArrayContext constantArray() throws RecognitionException {
- ConstantArrayContext _localctx = new ConstantArrayContext(_ctx, getState());
- enterRule(_localctx, 4, RULE_constantArray);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(52);
- match(LEFT_SQUARE_BRACKETS);
- setState(53);
- constant();
- setState(58);
- _errHandler.sync(this);
- _la = _input.LA(1);
- while (_la == COMMA) {
- {
- {
- setState(54);
- match(COMMA);
- setState(55);
- constant();
- }
- }
- setState(60);
- _errHandler.sync(this);
- _la = _input.LA(1);
- }
- setState(61);
- match(RIGHT_SQUARE_BRACKETS);
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public final CompareContext compare() throws RecognitionException {
- CompareContext _localctx = new CompareContext(_ctx, getState());
- enterRule(_localctx, 6, RULE_compare);
- int _la;
- try {
- enterOuterAlt(_localctx, 1);
- {
- setState(63);
- _la = _input.LA(1);
- if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 63744L) != 0))) {
- _errHandler.recoverInline(this);
- }
- else {
- if (_input.LA(1) == Token.EOF) {
- matchedEOF = true;
- }
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public final IdentifierContext identifier() throws RecognitionException {
- IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
- enterRule(_localctx, 8, RULE_identifier);
- try {
- setState(70);
- _errHandler.sync(this);
- switch (getInterpreter().adaptivePredict(_input, 5, _ctx)) {
- case 1:
- enterOuterAlt(_localctx, 1); {
- setState(65);
- match(IDENTIFIER);
- setState(66);
- match(DOT);
- setState(67);
- match(IDENTIFIER);
- }
- break;
- case 2:
- enterOuterAlt(_localctx, 2); {
- setState(68);
- match(IDENTIFIER);
- }
- break;
- case 3:
- enterOuterAlt(_localctx, 3); {
- setState(69);
- match(QUOTED_STRING);
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public final ConstantContext constant() throws RecognitionException {
- ConstantContext _localctx = new ConstantContext(_ctx, getState());
- enterRule(_localctx, 10, RULE_constant);
- int _la;
- try {
- int _alt;
- setState(86);
- _errHandler.sync(this);
- switch (getInterpreter().adaptivePredict(_input, 9, _ctx)) {
- case 1:
- _localctx = new IntegerConstantContext(_localctx);
- enterOuterAlt(_localctx, 1); {
- setState(73);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la == MINUS || _la == PLUS) {
- {
- setState(72);
- _la = _input.LA(1);
- if (!(_la == MINUS || _la == PLUS)) {
- _errHandler.recoverInline(this);
- }
- else {
- if (_input.LA(1) == Token.EOF) {
- matchedEOF = true;
- }
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
-
- setState(75);
- match(INTEGER_VALUE);
- }
- break;
- case 2:
- _localctx = new DecimalConstantContext(_localctx);
- enterOuterAlt(_localctx, 2); {
- setState(77);
- _errHandler.sync(this);
- _la = _input.LA(1);
- if (_la == MINUS || _la == PLUS) {
- {
- setState(76);
- _la = _input.LA(1);
- if (!(_la == MINUS || _la == PLUS)) {
- _errHandler.recoverInline(this);
- }
- else {
- if (_input.LA(1) == Token.EOF) {
- matchedEOF = true;
- }
- _errHandler.reportMatch(this);
- consume();
- }
- }
- }
-
- setState(79);
- match(DECIMAL_VALUE);
- }
- break;
- case 3:
- _localctx = new TextConstantContext(_localctx);
- enterOuterAlt(_localctx, 3); {
- setState(81);
- _errHandler.sync(this);
- _alt = 1;
- do {
- switch (_alt) {
- case 1: {
- {
- setState(80);
- match(QUOTED_STRING);
- }
- }
- break;
- default:
- throw new NoViableAltException(this);
- }
- setState(83);
- _errHandler.sync(this);
- _alt = getInterpreter().adaptivePredict(_input, 8, _ctx);
- }
- while (_alt != 2 && _alt != org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER);
- }
- break;
- case 4:
- _localctx = new BooleanConstantContext(_localctx);
- enterOuterAlt(_localctx, 4); {
- setState(85);
- match(BOOLEAN_VALUE);
- }
- break;
- }
- }
- catch (RecognitionException re) {
- _localctx.exception = re;
- _errHandler.reportError(this, re);
- _errHandler.recover(this, re);
- }
- finally {
- exitRule();
- }
- return _localctx;
- }
-
- public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
- switch (ruleIndex) {
- case 1:
- return booleanExpression_sempred((BooleanExpressionContext) _localctx, predIndex);
- }
- return true;
+
+ @Override
+ public ATN getATN() {
+ return _ATN;
}
- private boolean booleanExpression_sempred(BooleanExpressionContext _localctx, int predIndex) {
- switch (predIndex) {
- case 0:
- return precpred(_ctx, 4);
- case 1:
- return precpred(_ctx, 3);
- }
- return true;
+ public FiltersParser(TokenStream input) {
+ super(input);
+ _interp = new ParserATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
}
@SuppressWarnings("CheckReturnValue")
public static class WhereContext extends ParserRuleContext {
- public WhereContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
-
public TerminalNode WHERE() {
return getToken(FiltersParser.WHERE, 0);
}
@@ -653,6 +138,10 @@ public TerminalNode EOF() {
return getToken(FiltersParser.EOF, 0);
}
+ public WhereContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+
@Override
public int getRuleIndex() {
return RULE_where;
@@ -660,30 +149,51 @@ public int getRuleIndex() {
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterWhere(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitWhere(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitWhere(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
+ public final WhereContext where() throws RecognitionException {
+ WhereContext _localctx = new WhereContext(_ctx, getState());
+ enterRule(_localctx, 0, RULE_where);
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(12);
+ match(WHERE);
+ setState(13);
+ booleanExpression(0);
+ setState(14);
+ match(EOF);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
@SuppressWarnings("CheckReturnValue")
public static class BooleanExpressionContext extends ParserRuleContext {
@@ -691,14 +201,14 @@ public BooleanExpressionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
- public BooleanExpressionContext() {
- }
-
@Override
public int getRuleIndex() {
return RULE_booleanExpression;
}
+ public BooleanExpressionContext() {
+ }
+
public void copyFrom(BooleanExpressionContext ctx) {
super.copyFrom(ctx);
}
@@ -708,10 +218,6 @@ public void copyFrom(BooleanExpressionContext ctx) {
@SuppressWarnings("CheckReturnValue")
public static class NinExpressionContext extends BooleanExpressionContext {
- public NinExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class, 0);
}
@@ -732,28 +238,28 @@ public TerminalNode NIN() {
return getToken(FiltersParser.NIN, 0);
}
+ public NinExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterNinExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitNinExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitNinExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -767,10 +273,6 @@ public static class AndExpressionContext extends BooleanExpressionContext {
public BooleanExpressionContext right;
- public AndExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public List booleanExpression() {
return getRuleContexts(BooleanExpressionContext.class);
}
@@ -783,28 +285,28 @@ public TerminalNode AND() {
return getToken(FiltersParser.AND, 0);
}
+ public AndExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterAndExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitAndExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitAndExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -812,10 +314,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class InExpressionContext extends BooleanExpressionContext {
- public InExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class, 0);
}
@@ -828,28 +326,28 @@ public ConstantArrayContext constantArray() {
return getRuleContext(ConstantArrayContext.class, 0);
}
+ public InExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterInExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitInExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitInExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -857,10 +355,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class NotExpressionContext extends BooleanExpressionContext {
- public NotExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public TerminalNode NOT() {
return getToken(FiltersParser.NOT, 0);
}
@@ -869,28 +363,28 @@ public BooleanExpressionContext booleanExpression() {
return getRuleContext(BooleanExpressionContext.class, 0);
}
+ public NotExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterNotExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitNotExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitNotExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -898,10 +392,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class CompareExpressionContext extends BooleanExpressionContext {
- public CompareExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public IdentifierContext identifier() {
return getRuleContext(IdentifierContext.class, 0);
}
@@ -914,28 +404,28 @@ public ConstantContext constant() {
return getRuleContext(ConstantContext.class, 0);
}
+ public CompareExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterCompareExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitCompareExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitCompareExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -949,10 +439,6 @@ public static class OrExpressionContext extends BooleanExpressionContext {
public BooleanExpressionContext right;
- public OrExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public List booleanExpression() {
return getRuleContexts(BooleanExpressionContext.class);
}
@@ -965,28 +451,28 @@ public TerminalNode OR() {
return getToken(FiltersParser.OR, 0);
}
+ public OrExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterOrExpression(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitOrExpression(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitOrExpression(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -994,10 +480,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class GroupExpressionContext extends BooleanExpressionContext {
- public GroupExpressionContext(BooleanExpressionContext ctx) {
- copyFrom(ctx);
- }
-
public TerminalNode LEFT_PARENTHESIS() {
return getToken(FiltersParser.LEFT_PARENTHESIS, 0);
}
@@ -1010,39 +492,190 @@ public TerminalNode RIGHT_PARENTHESIS() {
return getToken(FiltersParser.RIGHT_PARENTHESIS, 0);
}
+ public GroupExpressionContext(BooleanExpressionContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterGroupExpression(this);
+ }
+
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if (listener instanceof FiltersListener)
+ ((FiltersListener) listener).exitGroupExpression(this);
+ }
+
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if (visitor instanceof FiltersVisitor)
+ return ((FiltersVisitor extends T>) visitor).visitGroupExpression(this);
+ else
+ return visitor.visitChildren(this);
+ }
+
+ }
+
+ public final BooleanExpressionContext booleanExpression() throws RecognitionException {
+ return booleanExpression(0);
+ }
+
+ private BooleanExpressionContext booleanExpression(int _p) throws RecognitionException {
+ ParserRuleContext _parentctx = _ctx;
+ int _parentState = getState();
+ BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, _parentState);
+ BooleanExpressionContext _prevctx = _localctx;
+ int _startState = 2;
+ enterRecursionRule(_localctx, 2, RULE_booleanExpression, _p);
+ try {
+ int _alt;
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(39);
+ _errHandler.sync(this);
+ switch (getInterpreter().adaptivePredict(_input, 1, _ctx)) {
+ case 1: {
+ _localctx = new CompareExpressionContext(_localctx);
+ _ctx = _localctx;
+ _prevctx = _localctx;
+
+ setState(17);
+ identifier();
+ setState(18);
+ compare();
+ setState(19);
+ constant();
+ }
+ break;
+ case 2: {
+ _localctx = new InExpressionContext(_localctx);
+ _ctx = _localctx;
+ _prevctx = _localctx;
+ setState(21);
+ identifier();
+ setState(22);
+ match(IN);
+ setState(23);
+ constantArray();
+ }
+ break;
+ case 3: {
+ _localctx = new NinExpressionContext(_localctx);
+ _ctx = _localctx;
+ _prevctx = _localctx;
+ setState(25);
+ identifier();
+ setState(29);
+ _errHandler.sync(this);
+ switch (_input.LA(1)) {
+ case NOT: {
+ setState(26);
+ match(NOT);
+ setState(27);
+ match(IN);
+ }
+ break;
+ case NIN: {
+ setState(28);
+ match(NIN);
+ }
+ break;
+ default:
+ throw new NoViableAltException(this);
+ }
+ setState(31);
+ constantArray();
+ }
+ break;
+ case 4: {
+ _localctx = new GroupExpressionContext(_localctx);
+ _ctx = _localctx;
+ _prevctx = _localctx;
+ setState(33);
+ match(LEFT_PARENTHESIS);
+ setState(34);
+ booleanExpression(0);
+ setState(35);
+ match(RIGHT_PARENTHESIS);
+ }
+ break;
+ case 5: {
+ _localctx = new NotExpressionContext(_localctx);
+ _ctx = _localctx;
+ _prevctx = _localctx;
+ setState(37);
+ match(NOT);
+ setState(38);
+ booleanExpression(1);
+ }
+ break;
+ }
+ _ctx.stop = _input.LT(-1);
+ setState(49);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input, 3, _ctx);
+ while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER) {
+ if (_alt == 1) {
+ if (_parseListeners != null)
+ triggerExitRuleEvent();
+ _prevctx = _localctx;
+ {
+ setState(47);
+ _errHandler.sync(this);
+ switch (getInterpreter().adaptivePredict(_input, 2, _ctx)) {
+ case 1: {
+ _localctx = new AndExpressionContext(
+ new BooleanExpressionContext(_parentctx, _parentState));
+ ((AndExpressionContext) _localctx).left = _prevctx;
+ pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression);
+ setState(41);
+ if (!(precpred(_ctx, 4)))
+ throw new FailedPredicateException(this, "precpred(_ctx, 4)");
+ setState(42);
+ ((AndExpressionContext) _localctx).operator = match(AND);
+ setState(43);
+ ((AndExpressionContext) _localctx).right = booleanExpression(5);
+ }
+ break;
+ case 2: {
+ _localctx = new OrExpressionContext(
+ new BooleanExpressionContext(_parentctx, _parentState));
+ ((OrExpressionContext) _localctx).left = _prevctx;
+ pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression);
+ setState(44);
+ if (!(precpred(_ctx, 3)))
+ throw new FailedPredicateException(this, "precpred(_ctx, 3)");
+ setState(45);
+ ((OrExpressionContext) _localctx).operator = match(OR);
+ setState(46);
+ ((OrExpressionContext) _localctx).right = booleanExpression(4);
+ }
+ break;
+ }
+ }
+ }
+ setState(51);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input, 3, _ctx);
+ }
}
}
-
- @Override
- public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
- ((FiltersListener) listener).exitGroupExpression(this);
- }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
}
-
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
- return ((FiltersVisitor extends T>) visitor).visitGroupExpression(this);
- }
- else {
- return visitor.visitChildren(this);
- }
+ finally {
+ unrollRecursionContexts(_parentctx);
}
-
+ return _localctx;
}
@SuppressWarnings("CheckReturnValue")
public static class ConstantArrayContext extends ParserRuleContext {
- public ConstantArrayContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
-
public TerminalNode LEFT_SQUARE_BRACKETS() {
return getToken(FiltersParser.LEFT_SQUARE_BRACKETS, 0);
}
@@ -1067,6 +700,10 @@ public TerminalNode COMMA(int i) {
return getToken(FiltersParser.COMMA, i);
}
+ public ConstantArrayContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+
@Override
public int getRuleIndex() {
return RULE_constantArray;
@@ -1074,37 +711,71 @@ public int getRuleIndex() {
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterConstantArray(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitConstantArray(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitConstantArray(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
+ public final ConstantArrayContext constantArray() throws RecognitionException {
+ ConstantArrayContext _localctx = new ConstantArrayContext(_ctx, getState());
+ enterRule(_localctx, 4, RULE_constantArray);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(52);
+ match(LEFT_SQUARE_BRACKETS);
+ setState(53);
+ constant();
+ setState(58);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ while (_la == COMMA) {
+ {
+ {
+ setState(54);
+ match(COMMA);
+ setState(55);
+ constant();
+ }
+ }
+ setState(60);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ }
+ setState(61);
+ match(RIGHT_SQUARE_BRACKETS);
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
@SuppressWarnings("CheckReturnValue")
public static class CompareContext extends ParserRuleContext {
- public CompareContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
-
public TerminalNode EQUALS() {
return getToken(FiltersParser.EQUALS, 0);
}
@@ -1129,6 +800,10 @@ public TerminalNode NE() {
return getToken(FiltersParser.NE, 0);
}
+ public CompareContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+
@Override
public int getRuleIndex() {
return RULE_compare;
@@ -1136,101 +811,211 @@ public int getRuleIndex() {
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterCompare(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitCompare(this);
+ }
+
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if (visitor instanceof FiltersVisitor)
+ return ((FiltersVisitor extends T>) visitor).visitCompare(this);
+ else
+ return visitor.visitChildren(this);
+ }
+
+ }
+
+ public final CompareContext compare() throws RecognitionException {
+ CompareContext _localctx = new CompareContext(_ctx, getState());
+ enterRule(_localctx, 6, RULE_compare);
+ int _la;
+ try {
+ enterOuterAlt(_localctx, 1);
+ {
+ setState(63);
+ _la = _input.LA(1);
+ if (!((((_la) & ~0x3f) == 0 && ((1L << _la) & 127488L) != 0))) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if (_input.LA(1) == Token.EOF)
+ matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class IdentifierContext extends ParserRuleContext {
+
+ public List IDENTIFIER() {
+ return getTokens(FiltersParser.IDENTIFIER);
+ }
+
+ public TerminalNode IDENTIFIER(int i) {
+ return getToken(FiltersParser.IDENTIFIER, i);
+ }
+
+ public TerminalNode DOT() {
+ return getToken(FiltersParser.DOT, 0);
+ }
+
+ public TerminalNode QUOTED_STRING() {
+ return getToken(FiltersParser.QUOTED_STRING, 0);
+ }
+
+ public IdentifierContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+
+ @Override
+ public int getRuleIndex() {
+ return RULE_identifier;
+ }
+
+ @Override
+ public void enterRule(ParseTreeListener listener) {
+ if (listener instanceof FiltersListener)
+ ((FiltersListener) listener).enterIdentifier(this);
+ }
+
+ @Override
+ public void exitRule(ParseTreeListener listener) {
+ if (listener instanceof FiltersListener)
+ ((FiltersListener) listener).exitIdentifier(this);
+ }
+
+ @Override
+ public T accept(ParseTreeVisitor extends T> visitor) {
+ if (visitor instanceof FiltersVisitor)
+ return ((FiltersVisitor extends T>) visitor).visitIdentifier(this);
+ else
+ return visitor.visitChildren(this);
+ }
+
+ }
+
+ public final IdentifierContext identifier() throws RecognitionException {
+ IdentifierContext _localctx = new IdentifierContext(_ctx, getState());
+ enterRule(_localctx, 8, RULE_identifier);
+ try {
+ setState(70);
+ _errHandler.sync(this);
+ switch (getInterpreter().adaptivePredict(_input, 5, _ctx)) {
+ case 1:
+ enterOuterAlt(_localctx, 1); {
+ setState(65);
+ match(IDENTIFIER);
+ setState(66);
+ match(DOT);
+ setState(67);
+ match(IDENTIFIER);
+ }
+ break;
+ case 2:
+ enterOuterAlt(_localctx, 2); {
+ setState(68);
+ match(IDENTIFIER);
+ }
+ break;
+ case 3:
+ enterOuterAlt(_localctx, 3); {
+ setState(69);
+ match(QUOTED_STRING);
+ }
+ break;
}
}
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ @SuppressWarnings("CheckReturnValue")
+ public static class ConstantContext extends ParserRuleContext {
+
+ public ConstantContext(ParserRuleContext parent, int invokingState) {
+ super(parent, invokingState);
+ }
+
+ @Override
+ public int getRuleIndex() {
+ return RULE_constant;
+ }
+
+ public ConstantContext() {
+ }
- @Override
- public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
- return ((FiltersVisitor extends T>) visitor).visitCompare(this);
- }
- else {
- return visitor.visitChildren(this);
- }
+ public void copyFrom(ConstantContext ctx) {
+ super.copyFrom(ctx);
}
}
@SuppressWarnings("CheckReturnValue")
- public static class IdentifierContext extends ParserRuleContext {
-
- public IdentifierContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
+ public static class LongConstantContext extends ConstantContext {
- public List IDENTIFIER() {
- return getTokens(FiltersParser.IDENTIFIER);
+ public TerminalNode INTEGER_VALUE() {
+ return getToken(FiltersParser.INTEGER_VALUE, 0);
}
- public TerminalNode IDENTIFIER(int i) {
- return getToken(FiltersParser.IDENTIFIER, i);
+ public TerminalNode LONG_SUFFIX() {
+ return getToken(FiltersParser.LONG_SUFFIX, 0);
}
- public TerminalNode DOT() {
- return getToken(FiltersParser.DOT, 0);
+ public TerminalNode MINUS() {
+ return getToken(FiltersParser.MINUS, 0);
}
- public TerminalNode QUOTED_STRING() {
- return getToken(FiltersParser.QUOTED_STRING, 0);
+ public TerminalNode PLUS() {
+ return getToken(FiltersParser.PLUS, 0);
}
- @Override
- public int getRuleIndex() {
- return RULE_identifier;
+ public LongConstantContext(ConstantContext ctx) {
+ copyFrom(ctx);
}
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
- ((FiltersListener) listener).enterIdentifier(this);
- }
+ if (listener instanceof FiltersListener)
+ ((FiltersListener) listener).enterLongConstant(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
- ((FiltersListener) listener).exitIdentifier(this);
- }
+ if (listener instanceof FiltersListener)
+ ((FiltersListener) listener).exitLongConstant(this);
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
- return ((FiltersVisitor extends T>) visitor).visitIdentifier(this);
- }
- else {
+ if (visitor instanceof FiltersVisitor)
+ return ((FiltersVisitor extends T>) visitor).visitLongConstant(this);
+ else
return visitor.visitChildren(this);
- }
- }
-
- }
-
- @SuppressWarnings("CheckReturnValue")
- public static class ConstantContext extends ParserRuleContext {
-
- public ConstantContext(ParserRuleContext parent, int invokingState) {
- super(parent, invokingState);
- }
-
- public ConstantContext() {
- }
-
- @Override
- public int getRuleIndex() {
- return RULE_constant;
- }
-
- public void copyFrom(ConstantContext ctx) {
- super.copyFrom(ctx);
}
}
@@ -1238,10 +1023,6 @@ public void copyFrom(ConstantContext ctx) {
@SuppressWarnings("CheckReturnValue")
public static class DecimalConstantContext extends ConstantContext {
- public DecimalConstantContext(ConstantContext ctx) {
- copyFrom(ctx);
- }
-
public TerminalNode DECIMAL_VALUE() {
return getToken(FiltersParser.DECIMAL_VALUE, 0);
}
@@ -1254,28 +1035,28 @@ public TerminalNode PLUS() {
return getToken(FiltersParser.PLUS, 0);
}
+ public DecimalConstantContext(ConstantContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterDecimalConstant(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitDecimalConstant(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitDecimalConstant(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -1283,10 +1064,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class TextConstantContext extends ConstantContext {
- public TextConstantContext(ConstantContext ctx) {
- copyFrom(ctx);
- }
-
public List QUOTED_STRING() {
return getTokens(FiltersParser.QUOTED_STRING);
}
@@ -1295,28 +1072,28 @@ public TerminalNode QUOTED_STRING(int i) {
return getToken(FiltersParser.QUOTED_STRING, i);
}
+ public TextConstantContext(ConstantContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterTextConstant(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitTextConstant(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitTextConstant(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -1324,36 +1101,32 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class BooleanConstantContext extends ConstantContext {
- public BooleanConstantContext(ConstantContext ctx) {
- copyFrom(ctx);
- }
-
public TerminalNode BOOLEAN_VALUE() {
return getToken(FiltersParser.BOOLEAN_VALUE, 0);
}
+ public BooleanConstantContext(ConstantContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterBooleanConstant(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitBooleanConstant(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitBooleanConstant(this);
- }
- else {
+ else
return visitor.visitChildren(this);
- }
}
}
@@ -1361,10 +1134,6 @@ public T accept(ParseTreeVisitor extends T> visitor) {
@SuppressWarnings("CheckReturnValue")
public static class IntegerConstantContext extends ConstantContext {
- public IntegerConstantContext(ConstantContext ctx) {
- copyFrom(ctx);
- }
-
public TerminalNode INTEGER_VALUE() {
return getToken(FiltersParser.INTEGER_VALUE, 0);
}
@@ -1377,30 +1146,250 @@ public TerminalNode PLUS() {
return getToken(FiltersParser.PLUS, 0);
}
+ public IntegerConstantContext(ConstantContext ctx) {
+ copyFrom(ctx);
+ }
+
@Override
public void enterRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).enterIntegerConstant(this);
- }
}
@Override
public void exitRule(ParseTreeListener listener) {
- if (listener instanceof FiltersListener) {
+ if (listener instanceof FiltersListener)
((FiltersListener) listener).exitIntegerConstant(this);
- }
}
@Override
public T accept(ParseTreeVisitor extends T> visitor) {
- if (visitor instanceof FiltersVisitor) {
+ if (visitor instanceof FiltersVisitor)
return ((FiltersVisitor extends T>) visitor).visitIntegerConstant(this);
- }
- else {
+ else
return visitor.visitChildren(this);
+ }
+
+ }
+
+ public final ConstantContext constant() throws RecognitionException {
+ ConstantContext _localctx = new ConstantContext(_ctx, getState());
+ enterRule(_localctx, 10, RULE_constant);
+ int _la;
+ try {
+ int _alt;
+ setState(91);
+ _errHandler.sync(this);
+ switch (getInterpreter().adaptivePredict(_input, 10, _ctx)) {
+ case 1:
+ _localctx = new LongConstantContext(_localctx);
+ enterOuterAlt(_localctx, 1); {
+ setState(73);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la == MINUS || _la == PLUS) {
+ {
+ setState(72);
+ _la = _input.LA(1);
+ if (!(_la == MINUS || _la == PLUS)) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if (_input.LA(1) == Token.EOF)
+ matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+
+ setState(75);
+ match(INTEGER_VALUE);
+ setState(76);
+ match(LONG_SUFFIX);
+ }
+ break;
+ case 2:
+ _localctx = new IntegerConstantContext(_localctx);
+ enterOuterAlt(_localctx, 2); {
+ setState(78);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la == MINUS || _la == PLUS) {
+ {
+ setState(77);
+ _la = _input.LA(1);
+ if (!(_la == MINUS || _la == PLUS)) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if (_input.LA(1) == Token.EOF)
+ matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+
+ setState(80);
+ match(INTEGER_VALUE);
+ }
+ break;
+ case 3:
+ _localctx = new DecimalConstantContext(_localctx);
+ enterOuterAlt(_localctx, 3); {
+ setState(82);
+ _errHandler.sync(this);
+ _la = _input.LA(1);
+ if (_la == MINUS || _la == PLUS) {
+ {
+ setState(81);
+ _la = _input.LA(1);
+ if (!(_la == MINUS || _la == PLUS)) {
+ _errHandler.recoverInline(this);
+ }
+ else {
+ if (_input.LA(1) == Token.EOF)
+ matchedEOF = true;
+ _errHandler.reportMatch(this);
+ consume();
+ }
+ }
+ }
+
+ setState(84);
+ match(DECIMAL_VALUE);
+ }
+ break;
+ case 4:
+ _localctx = new TextConstantContext(_localctx);
+ enterOuterAlt(_localctx, 4); {
+ setState(86);
+ _errHandler.sync(this);
+ _alt = 1;
+ do {
+ switch (_alt) {
+ case 1: {
+ {
+ setState(85);
+ match(QUOTED_STRING);
+ }
+ }
+ break;
+ default:
+ throw new NoViableAltException(this);
+ }
+ setState(88);
+ _errHandler.sync(this);
+ _alt = getInterpreter().adaptivePredict(_input, 9, _ctx);
+ }
+ while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER);
+ }
+ break;
+ case 5:
+ _localctx = new BooleanConstantContext(_localctx);
+ enterOuterAlt(_localctx, 5); {
+ setState(90);
+ match(BOOLEAN_VALUE);
+ }
+ break;
}
}
+ catch (RecognitionException re) {
+ _localctx.exception = re;
+ _errHandler.reportError(this, re);
+ _errHandler.recover(this, re);
+ }
+ finally {
+ exitRule();
+ }
+ return _localctx;
+ }
+
+ public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
+ switch (ruleIndex) {
+ case 1:
+ return booleanExpression_sempred((BooleanExpressionContext) _localctx, predIndex);
+ }
+ return true;
+ }
+
+ private boolean booleanExpression_sempred(BooleanExpressionContext _localctx, int predIndex) {
+ switch (predIndex) {
+ case 0:
+ return precpred(_ctx, 4);
+ case 1:
+ return precpred(_ctx, 3);
+ }
+ return true;
+ }
+
+ public static final String _serializedATN = "\u0004\u0001\u001b^\u0002\u0000\u0007\u0000\u0002\u0001\u0007\u0001\u0002"
+ + "\u0002\u0007\u0002\u0002\u0003\u0007\u0003\u0002\u0004\u0007\u0004\u0002"
+ + "\u0005\u0007\u0005\u0001\u0000\u0001\u0000\u0001\u0000\u0001\u0000\u0001"
+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0001\u0003\u0001\u001e\b\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0003\u0001(\b"
+ + "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001"
+ + "\u0001\u0005\u00010\b\u0001\n\u0001\f\u00013\t\u0001\u0001\u0002\u0001"
+ + "\u0002\u0001\u0002\u0001\u0002\u0005\u00029\b\u0002\n\u0002\f\u0002<\t"
+ + "\u0002\u0001\u0002\u0001\u0002\u0001\u0003\u0001\u0003\u0001\u0004\u0001"
+ + "\u0004\u0001\u0004\u0001\u0004\u0001\u0004\u0003\u0004G\b\u0004\u0001"
+ + "\u0005\u0003\u0005J\b\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0003"
+ + "\u0005O\b\u0005\u0001\u0005\u0001\u0005\u0003\u0005S\b\u0005\u0001\u0005"
+ + "\u0001\u0005\u0004\u0005W\b\u0005\u000b\u0005\f\u0005X\u0001\u0005\u0003"
+ + "\u0005\\\b\u0005\u0001\u0005\u0000\u0001\u0002\u0006\u0000\u0002\u0004"
+ + "\u0006\b\n\u0000\u0002\u0002\u0000\t\t\f\u0010\u0001\u0000\n\u000bi\u0000"
+ + "\f\u0001\u0000\u0000\u0000\u0002\'\u0001\u0000\u0000\u0000\u00044\u0001"
+ + "\u0000\u0000\u0000\u0006?\u0001\u0000\u0000\u0000\bF\u0001\u0000\u0000"
+ + "\u0000\n[\u0001\u0000\u0000\u0000\f\r\u0005\u0002\u0000\u0000\r\u000e"
+ + "\u0003\u0002\u0001\u0000\u000e\u000f\u0005\u0000\u0000\u0001\u000f\u0001"
+ + "\u0001\u0000\u0000\u0000\u0010\u0011\u0006\u0001\uffff\uffff\u0000\u0011"
+ + "\u0012\u0003\b\u0004\u0000\u0012\u0013\u0003\u0006\u0003\u0000\u0013\u0014"
+ + "\u0003\n\u0005\u0000\u0014(\u0001\u0000\u0000\u0000\u0015\u0016\u0003"
+ + "\b\u0004\u0000\u0016\u0017\u0005\u0013\u0000\u0000\u0017\u0018\u0003\u0004"
+ + "\u0002\u0000\u0018(\u0001\u0000\u0000\u0000\u0019\u001d\u0003\b\u0004"
+ + "\u0000\u001a\u001b\u0005\u0015\u0000\u0000\u001b\u001e\u0005\u0013\u0000"
+ + "\u0000\u001c\u001e\u0005\u0014\u0000\u0000\u001d\u001a\u0001\u0000\u0000"
+ + "\u0000\u001d\u001c\u0001\u0000\u0000\u0000\u001e\u001f\u0001\u0000\u0000"
+ + "\u0000\u001f \u0003\u0004\u0002\u0000 (\u0001\u0000\u0000\u0000!\"\u0005"
+ + "\u0007\u0000\u0000\"#\u0003\u0002\u0001\u0000#$\u0005\b\u0000\u0000$("
+ + "\u0001\u0000\u0000\u0000%&\u0005\u0015\u0000\u0000&(\u0003\u0002\u0001"
+ + "\u0001\'\u0010\u0001\u0000\u0000\u0000\'\u0015\u0001\u0000\u0000\u0000"
+ + "\'\u0019\u0001\u0000\u0000\u0000\'!\u0001\u0000\u0000\u0000\'%\u0001\u0000"
+ + "\u0000\u0000(1\u0001\u0000\u0000\u0000)*\n\u0004\u0000\u0000*+\u0005\u0011"
+ + "\u0000\u0000+0\u0003\u0002\u0001\u0005,-\n\u0003\u0000\u0000-.\u0005\u0012"
+ + "\u0000\u0000.0\u0003\u0002\u0001\u0004/)\u0001\u0000\u0000\u0000/,\u0001"
+ + "\u0000\u0000\u000003\u0001\u0000\u0000\u00001/\u0001\u0000\u0000\u0000"
+ + "12\u0001\u0000\u0000\u00002\u0003\u0001\u0000\u0000\u000031\u0001\u0000"
+ + "\u0000\u000045\u0005\u0005\u0000\u00005:\u0003\n\u0005\u000067\u0005\u0004"
+ + "\u0000\u000079\u0003\n\u0005\u000086\u0001\u0000\u0000\u00009<\u0001\u0000"
+ + "\u0000\u0000:8\u0001\u0000\u0000\u0000:;\u0001\u0000\u0000\u0000;=\u0001"
+ + "\u0000\u0000\u0000<:\u0001\u0000\u0000\u0000=>\u0005\u0006\u0000\u0000"
+ + ">\u0005\u0001\u0000\u0000\u0000?@\u0007\u0000\u0000\u0000@\u0007\u0001"
+ + "\u0000\u0000\u0000AB\u0005\u001a\u0000\u0000BC\u0005\u0003\u0000\u0000"
+ + "CG\u0005\u001a\u0000\u0000DG\u0005\u001a\u0000\u0000EG\u0005\u0017\u0000"
+ + "\u0000FA\u0001\u0000\u0000\u0000FD\u0001\u0000\u0000\u0000FE\u0001\u0000"
+ + "\u0000\u0000G\t\u0001\u0000\u0000\u0000HJ\u0007\u0001\u0000\u0000IH\u0001"
+ + "\u0000\u0000\u0000IJ\u0001\u0000\u0000\u0000JK\u0001\u0000\u0000\u0000"
+ + "KL\u0005\u0018\u0000\u0000L\\\u0005\u0001\u0000\u0000MO\u0007\u0001\u0000"
+ + "\u0000NM\u0001\u0000\u0000\u0000NO\u0001\u0000\u0000\u0000OP\u0001\u0000"
+ + "\u0000\u0000P\\\u0005\u0018\u0000\u0000QS\u0007\u0001\u0000\u0000RQ\u0001"
+ + "\u0000\u0000\u0000RS\u0001\u0000\u0000\u0000ST\u0001\u0000\u0000\u0000"
+ + "T\\\u0005\u0019\u0000\u0000UW\u0005\u0017\u0000\u0000VU\u0001\u0000\u0000"
+ + "\u0000WX\u0001\u0000\u0000\u0000XV\u0001\u0000\u0000\u0000XY\u0001\u0000"
+ + "\u0000\u0000Y\\\u0001\u0000\u0000\u0000Z\\\u0005\u0016\u0000\u0000[I\u0001"
+ + "\u0000\u0000\u0000[N\u0001\u0000\u0000\u0000[R\u0001\u0000\u0000\u0000"
+ + "[V\u0001\u0000\u0000\u0000[Z\u0001\u0000\u0000\u0000\\\u000b\u0001\u0000"
+ + "\u0000\u0000\u000b\u001d\'/1:FINRX[";
+ public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray());
+ static {
+ _decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
+ for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
+ _decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
+ }
}
}
diff --git a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersVisitor.java b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersVisitor.java
index 887159c2b73..125e5474488 100644
--- a/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersVisitor.java
+++ b/spring-ai-vector-store/src/main/java/org/springframework/ai/vectorstore/filter/antlr4/FiltersVisitor.java
@@ -117,6 +117,14 @@ public interface FiltersVisitor extends ParseTreeVisitor {
*/
T visitIdentifier(FiltersParser.IdentifierContext ctx);
+ /**
+ * Visit a parse tree produced by the {@code LongConstant} labeled alternative in
+ * {@link FiltersParser#constant}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitLongConstant(FiltersParser.LongConstantContext ctx);
+
/**
* Visit a parse tree produced by the {@code IntegerConstant} labeled alternative in
* {@link FiltersParser#constant}.
diff --git a/spring-ai-vector-store/src/main/resources/antlr4/org/springframework/ai/vectorstore/filter/antlr4/Filters.g4 b/spring-ai-vector-store/src/main/resources/antlr4/org/springframework/ai/vectorstore/filter/antlr4/Filters.g4
index ba0f281c7c6..8d1c54cba55 100644
--- a/spring-ai-vector-store/src/main/resources/antlr4/org/springframework/ai/vectorstore/filter/antlr4/Filters.g4
+++ b/spring-ai-vector-store/src/main/resources/antlr4/org/springframework/ai/vectorstore/filter/antlr4/Filters.g4
@@ -50,12 +50,15 @@ identifier
;
constant
- : (MINUS | PLUS)? INTEGER_VALUE # IntegerConstant
+ : (MINUS | PLUS)? INTEGER_VALUE LONG_SUFFIX # LongConstant
+ | (MINUS | PLUS)? INTEGER_VALUE # IntegerConstant
| (MINUS | PLUS)? DECIMAL_VALUE # DecimalConstant
| QUOTED_STRING+ # TextConstant
| BOOLEAN_VALUE # BooleanConstant
;
+LONG_SUFFIX : [lL];
+
WHERE : 'WHERE' | 'where';
DOT: '.';
@@ -97,7 +100,7 @@ DECIMAL_VALUE
;
IDENTIFIER
- : (LETTER | DIGIT | '_')+
+ : (LETTER | '_') (LETTER | DIGIT | '_')*
;
fragment DECIMAL_DIGITS
diff --git a/spring-ai-vector-store/src/test/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParserTests.java b/spring-ai-vector-store/src/test/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParserTests.java
index 218f29c9727..15f6d2b54d3 100644
--- a/spring-ai-vector-store/src/test/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParserTests.java
+++ b/spring-ai-vector-store/src/test/java/org/springframework/ai/vectorstore/filter/FilterExpressionTextParserTests.java
@@ -38,6 +38,7 @@
/**
* @author Christian Tzolov
+ * @author Sun Yuhan
*/
public class FilterExpressionTextParserTests {
@@ -180,6 +181,15 @@ public void testDecimal() {
assertThat(this.parser.getCache().get("WHERE " + expText)).isEqualTo(exp);
}
+ @Test
+ public void testLong() {
+ Expression exp2 = this.parser.parse("biz_id == 3L");
+ Expression exp3 = this.parser.parse("biz_id == -5L");
+
+ assertThat(exp2).isEqualTo(new Expression(EQ, new Key("biz_id"), new Value(3L)));
+ assertThat(exp3).isEqualTo(new Expression(EQ, new Key("biz_id"), new Value(-5L)));
+ }
+
@Test
public void testIdentifiers() {
Expression exp = this.parser.parse("'country.1' == 'BG'");