org.usergrid.persistence.query.tree.QueryFilterLexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of usergrid-core Show documentation
Show all versions of usergrid-core Show documentation
Core services for Usergrid system.
// $ANTLR 3.4 org/usergrid/persistence/query/tree/QueryFilter.g 2013-01-24 11:24:10
package org.usergrid.persistence.query.tree;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings({"all", "warnings", "unchecked"})
public class QueryFilterLexer extends Lexer {
public static final int EOF=-1;
public static final int T__31=31;
public static final int T__32=32;
public static final int T__33=33;
public static final int T__34=34;
public static final int T__35=35;
public static final int T__36=36;
public static final int T__37=37;
public static final int T__38=38;
public static final int T__39=39;
public static final int T__40=40;
public static final int AND=4;
public static final int ASC=5;
public static final int BOOLEAN=6;
public static final int CONTAINS=7;
public static final int DESC=8;
public static final int EQ=9;
public static final int ESC_SEQ=10;
public static final int EXPONENT=11;
public static final int FALSE=12;
public static final int FLOAT=13;
public static final int GT=14;
public static final int GTE=15;
public static final int HEX_DIGIT=16;
public static final int ID=17;
public static final int LONG=18;
public static final int LT=19;
public static final int LTE=20;
public static final int NOT=21;
public static final int OCTAL_ESC=22;
public static final int OF=23;
public static final int OR=24;
public static final int STRING=25;
public static final int TRUE=26;
public static final int UNICODE_ESC=27;
public static final int UUID=28;
public static final int WITHIN=29;
public static final int WS=30;
private static final Logger logger = LoggerFactory
.getLogger(QueryFilterLexer.class);
@Override
public void emitErrorMessage(String msg) {
logger.info(msg);
}
// delegates
// delegators
public Lexer[] getDelegates() {
return new Lexer[] {};
}
public QueryFilterLexer() {}
public QueryFilterLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public QueryFilterLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
}
public String getGrammarFileName() { return "org/usergrid/persistence/query/tree/QueryFilter.g"; }
// $ANTLR start "T__31"
public final void mT__31() throws RecognitionException {
try {
int _type = T__31;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:20:7: ( '(' )
// org/usergrid/persistence/query/tree/QueryFilter.g:20:9: '('
{
match('(');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__31"
// $ANTLR start "T__32"
public final void mT__32() throws RecognitionException {
try {
int _type = T__32;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:21:7: ( ')' )
// org/usergrid/persistence/query/tree/QueryFilter.g:21:9: ')'
{
match(')');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__32"
// $ANTLR start "T__33"
public final void mT__33() throws RecognitionException {
try {
int _type = T__33;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:22:7: ( '*' )
// org/usergrid/persistence/query/tree/QueryFilter.g:22:9: '*'
{
match('*');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__33"
// $ANTLR start "T__34"
public final void mT__34() throws RecognitionException {
try {
int _type = T__34;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:23:7: ( ',' )
// org/usergrid/persistence/query/tree/QueryFilter.g:23:9: ','
{
match(',');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__34"
// $ANTLR start "T__35"
public final void mT__35() throws RecognitionException {
try {
int _type = T__35;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:24:7: ( ':' )
// org/usergrid/persistence/query/tree/QueryFilter.g:24:9: ':'
{
match(':');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__35"
// $ANTLR start "T__36"
public final void mT__36() throws RecognitionException {
try {
int _type = T__36;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:25:7: ( 'order by' )
// org/usergrid/persistence/query/tree/QueryFilter.g:25:9: 'order by'
{
match("order by");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__36"
// $ANTLR start "T__37"
public final void mT__37() throws RecognitionException {
try {
int _type = T__37;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:26:7: ( 'select' )
// org/usergrid/persistence/query/tree/QueryFilter.g:26:9: 'select'
{
match("select");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__37"
// $ANTLR start "T__38"
public final void mT__38() throws RecognitionException {
try {
int _type = T__38;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:27:7: ( 'where' )
// org/usergrid/persistence/query/tree/QueryFilter.g:27:9: 'where'
{
match("where");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__38"
// $ANTLR start "T__39"
public final void mT__39() throws RecognitionException {
try {
int _type = T__39;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:28:7: ( '{' )
// org/usergrid/persistence/query/tree/QueryFilter.g:28:9: '{'
{
match('{');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__39"
// $ANTLR start "T__40"
public final void mT__40() throws RecognitionException {
try {
int _type = T__40;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:29:7: ( '}' )
// org/usergrid/persistence/query/tree/QueryFilter.g:29:9: '}'
{
match('}');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__40"
// $ANTLR start "LT"
public final void mLT() throws RecognitionException {
try {
int _type = LT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:54:5: ( '<' | 'lt' )
int alt1=2;
switch ( input.LA(1) ) {
case '<':
{
alt1=1;
}
break;
case 'l':
{
alt1=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 1, 0, input);
throw nvae;
}
switch (alt1) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:54:7: '<'
{
match('<');
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:54:13: 'lt'
{
match("lt");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LT"
// $ANTLR start "LTE"
public final void mLTE() throws RecognitionException {
try {
int _type = LTE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:56:5: ( '<=' | 'lte' )
int alt2=2;
switch ( input.LA(1) ) {
case '<':
{
alt2=1;
}
break;
case 'l':
{
alt2=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 2, 0, input);
throw nvae;
}
switch (alt2) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:56:7: '<='
{
match("<=");
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:56:15: 'lte'
{
match("lte");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LTE"
// $ANTLR start "EQ"
public final void mEQ() throws RecognitionException {
try {
int _type = EQ;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:58:5: ( '=' | 'eq' )
int alt3=2;
switch ( input.LA(1) ) {
case '=':
{
alt3=1;
}
break;
case 'e':
{
alt3=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 3, 0, input);
throw nvae;
}
switch (alt3) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:58:7: '='
{
match('=');
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:58:13: 'eq'
{
match("eq");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "EQ"
// $ANTLR start "GT"
public final void mGT() throws RecognitionException {
try {
int _type = GT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:60:5: ( '>' | 'gt' )
int alt4=2;
switch ( input.LA(1) ) {
case '>':
{
alt4=1;
}
break;
case 'g':
{
alt4=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 4, 0, input);
throw nvae;
}
switch (alt4) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:60:7: '>'
{
match('>');
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:60:13: 'gt'
{
match("gt");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "GT"
// $ANTLR start "GTE"
public final void mGTE() throws RecognitionException {
try {
int _type = GTE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:62:5: ( '>=' | 'gte' )
int alt5=2;
switch ( input.LA(1) ) {
case '>':
{
alt5=1;
}
break;
case 'g':
{
alt5=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 5, 0, input);
throw nvae;
}
switch (alt5) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:62:7: '>='
{
match(">=");
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:62:15: 'gte'
{
match("gte");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "GTE"
// $ANTLR start "BOOLEAN"
public final void mBOOLEAN() throws RecognitionException {
try {
int _type = BOOLEAN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:66:9: ( ( TRUE | FALSE ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:66:11: ( TRUE | FALSE )
{
// org/usergrid/persistence/query/tree/QueryFilter.g:66:11: ( TRUE | FALSE )
int alt6=2;
switch ( input.LA(1) ) {
case 'T':
case 't':
{
alt6=1;
}
break;
case 'F':
case 'f':
{
alt6=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 6, 0, input);
throw nvae;
}
switch (alt6) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:66:12: TRUE
{
mTRUE();
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:66:17: FALSE
{
mFALSE();
}
break;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "BOOLEAN"
// $ANTLR start "AND"
public final void mAND() throws RecognitionException {
try {
int _type = AND;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:68:5: ( ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'D' | 'd' ) | '&&' )
int alt7=2;
switch ( input.LA(1) ) {
case 'A':
case 'a':
{
alt7=1;
}
break;
case '&':
{
alt7=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 7, 0, input);
throw nvae;
}
switch (alt7) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:68:7: ( 'A' | 'a' ) ( 'N' | 'n' ) ( 'D' | 'd' )
{
if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='D'||input.LA(1)=='d' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:68:37: '&&'
{
match("&&");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "AND"
// $ANTLR start "OR"
public final void mOR() throws RecognitionException {
try {
int _type = OR;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:70:5: ( ( 'O' | 'o' ) ( 'R' | 'r' ) | '||' )
int alt8=2;
switch ( input.LA(1) ) {
case 'O':
case 'o':
{
alt8=1;
}
break;
case '|':
{
alt8=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 8, 0, input);
throw nvae;
}
switch (alt8) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:70:7: ( 'O' | 'o' ) ( 'R' | 'r' )
{
if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='R'||input.LA(1)=='r' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:70:28: '||'
{
match("||");
}
break;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "OR"
// $ANTLR start "NOT"
public final void mNOT() throws RecognitionException {
try {
int _type = NOT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:72:5: ( ( 'N' | 'n' ) ( 'O' | 'o' ) ( 'T' | 't' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:72:7: ( 'N' | 'n' ) ( 'O' | 'o' ) ( 'T' | 't' )
{
if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "NOT"
// $ANTLR start "ASC"
public final void mASC() throws RecognitionException {
try {
int _type = ASC;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:74:5: ( ( 'A' | 'a' ) ( 'S' | 's' ) ( 'C' | 'c' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:74:7: ( 'A' | 'a' ) ( 'S' | 's' ) ( 'C' | 'c' )
{
if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='S'||input.LA(1)=='s' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='C'||input.LA(1)=='c' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ASC"
// $ANTLR start "DESC"
public final void mDESC() throws RecognitionException {
try {
int _type = DESC;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:76:6: ( ( 'D' | 'd' ) ( 'E' | 'e' ) ( 'S' | 's' ) ( 'C' | 'c' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:76:8: ( 'D' | 'd' ) ( 'E' | 'e' ) ( 'S' | 's' ) ( 'C' | 'c' )
{
if ( input.LA(1)=='D'||input.LA(1)=='d' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='S'||input.LA(1)=='s' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='C'||input.LA(1)=='c' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "DESC"
// $ANTLR start "CONTAINS"
public final void mCONTAINS() throws RecognitionException {
try {
int _type = CONTAINS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:78:10: ( ( 'C' | 'c' ) ( 'O' | 'o' ) ( 'N' | 'n' ) ( 'T' | 't' ) ( 'A' | 'a' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'S' | 's' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:78:12: ( 'C' | 'c' ) ( 'O' | 'o' ) ( 'N' | 'n' ) ( 'T' | 't' ) ( 'A' | 'a' ) ( 'I' | 'i' ) ( 'N' | 'n' ) ( 'S' | 's' )
{
if ( input.LA(1)=='C'||input.LA(1)=='c' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='S'||input.LA(1)=='s' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "CONTAINS"
// $ANTLR start "WITHIN"
public final void mWITHIN() throws RecognitionException {
try {
int _type = WITHIN;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:80:8: ( ( 'W' | 'w' ) ( 'I' | 'i' ) ( 'T' | 't' ) ( 'H' | 'h' ) ( 'I' | 'i' ) ( 'N' | 'n' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:80:10: ( 'W' | 'w' ) ( 'I' | 'i' ) ( 'T' | 't' ) ( 'H' | 'h' ) ( 'I' | 'i' ) ( 'N' | 'n' )
{
if ( input.LA(1)=='W'||input.LA(1)=='w' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='H'||input.LA(1)=='h' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='N'||input.LA(1)=='n' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "WITHIN"
// $ANTLR start "OF"
public final void mOF() throws RecognitionException {
try {
int _type = OF;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:82:4: ( ( 'O' | 'o' ) ( 'F' | 'f' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:82:6: ( 'O' | 'o' ) ( 'F' | 'f' )
{
if ( input.LA(1)=='O'||input.LA(1)=='o' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='F'||input.LA(1)=='f' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "OF"
// $ANTLR start "ID"
public final void mID() throws RecognitionException {
try {
int _type = ID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:86:5: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '.' )* )
// org/usergrid/persistence/query/tree/QueryFilter.g:86:7: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '.' )*
{
if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
// org/usergrid/persistence/query/tree/QueryFilter.g:86:31: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' | '.' )*
loop9:
do {
int alt9=2;
switch ( input.LA(1) ) {
case '.':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z':
case '_':
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z':
{
alt9=1;
}
break;
}
switch (alt9) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( input.LA(1)=='.'||(input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop9;
}
} while (true);
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ID"
// $ANTLR start "LONG"
public final void mLONG() throws RecognitionException {
try {
int _type = LONG;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:89:6: ( ( '-' )? ( '0' .. '9' )+ )
// org/usergrid/persistence/query/tree/QueryFilter.g:89:8: ( '-' )? ( '0' .. '9' )+
{
// org/usergrid/persistence/query/tree/QueryFilter.g:89:8: ( '-' )?
int alt10=2;
switch ( input.LA(1) ) {
case '-':
{
alt10=1;
}
break;
}
switch (alt10) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:89:9: '-'
{
match('-');
}
break;
}
// org/usergrid/persistence/query/tree/QueryFilter.g:89:15: ( '0' .. '9' )+
int cnt11=0;
loop11:
do {
int alt11=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt11=1;
}
break;
}
switch (alt11) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt11 >= 1 ) break loop11;
EarlyExitException eee =
new EarlyExitException(11, input);
throw eee;
}
cnt11++;
} while (true);
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "LONG"
// $ANTLR start "FLOAT"
public final void mFLOAT() throws RecognitionException {
try {
int _type = FLOAT;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:93:5: ( ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:93:8: ( '-' )? ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
{
// org/usergrid/persistence/query/tree/QueryFilter.g:93:8: ( '-' )?
int alt12=2;
switch ( input.LA(1) ) {
case '-':
{
alt12=1;
}
break;
}
switch (alt12) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:93:9: '-'
{
match('-');
}
break;
}
// org/usergrid/persistence/query/tree/QueryFilter.g:93:15: ( ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' .. '9' )+ EXPONENT )
int alt19=3;
alt19 = dfa19.predict(input);
switch (alt19) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:93:17: ( '0' .. '9' )+ '.' ( '0' .. '9' )* ( EXPONENT )?
{
// org/usergrid/persistence/query/tree/QueryFilter.g:93:17: ( '0' .. '9' )+
int cnt13=0;
loop13:
do {
int alt13=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt13=1;
}
break;
}
switch (alt13) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt13 >= 1 ) break loop13;
EarlyExitException eee =
new EarlyExitException(13, input);
throw eee;
}
cnt13++;
} while (true);
match('.');
// org/usergrid/persistence/query/tree/QueryFilter.g:93:33: ( '0' .. '9' )*
loop14:
do {
int alt14=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt14=1;
}
break;
}
switch (alt14) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop14;
}
} while (true);
// org/usergrid/persistence/query/tree/QueryFilter.g:93:45: ( EXPONENT )?
int alt15=2;
switch ( input.LA(1) ) {
case 'E':
case 'e':
{
alt15=1;
}
break;
}
switch (alt15) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:93:45: EXPONENT
{
mEXPONENT();
}
break;
}
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:94:9: '.' ( '0' .. '9' )+ ( EXPONENT )?
{
match('.');
// org/usergrid/persistence/query/tree/QueryFilter.g:94:13: ( '0' .. '9' )+
int cnt16=0;
loop16:
do {
int alt16=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt16=1;
}
break;
}
switch (alt16) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt16 >= 1 ) break loop16;
EarlyExitException eee =
new EarlyExitException(16, input);
throw eee;
}
cnt16++;
} while (true);
// org/usergrid/persistence/query/tree/QueryFilter.g:94:25: ( EXPONENT )?
int alt17=2;
switch ( input.LA(1) ) {
case 'E':
case 'e':
{
alt17=1;
}
break;
}
switch (alt17) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:94:25: EXPONENT
{
mEXPONENT();
}
break;
}
}
break;
case 3 :
// org/usergrid/persistence/query/tree/QueryFilter.g:95:9: ( '0' .. '9' )+ EXPONENT
{
// org/usergrid/persistence/query/tree/QueryFilter.g:95:9: ( '0' .. '9' )+
int cnt18=0;
loop18:
do {
int alt18=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt18=1;
}
break;
}
switch (alt18) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt18 >= 1 ) break loop18;
EarlyExitException eee =
new EarlyExitException(18, input);
throw eee;
}
cnt18++;
} while (true);
mEXPONENT();
}
break;
}
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "FLOAT"
// $ANTLR start "STRING"
public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:99:5: ( '\\'' ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )* '\\'' )
// org/usergrid/persistence/query/tree/QueryFilter.g:99:8: '\\'' ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\'');
// org/usergrid/persistence/query/tree/QueryFilter.g:99:13: ( ESC_SEQ |~ ( '\\\\' | '\\'' ) )*
loop20:
do {
int alt20=3;
int LA20_0 = input.LA(1);
if ( (LA20_0=='\\') ) {
alt20=1;
}
else if ( ((LA20_0 >= '\u0000' && LA20_0 <= '&')||(LA20_0 >= '(' && LA20_0 <= '[')||(LA20_0 >= ']' && LA20_0 <= '\uFFFF')) ) {
alt20=2;
}
switch (alt20) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:99:15: ESC_SEQ
{
mESC_SEQ();
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:99:25: ~ ( '\\\\' | '\\'' )
{
if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '&')||(input.LA(1) >= '(' && input.LA(1) <= '[')||(input.LA(1) >= ']' && input.LA(1) <= '\uFFFF') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
break loop20;
}
} while (true);
match('\'');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "STRING"
// $ANTLR start "WS"
public final void mWS() throws RecognitionException {
try {
int _type = WS;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:104:4: ( ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+ )
// org/usergrid/persistence/query/tree/QueryFilter.g:104:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
{
// org/usergrid/persistence/query/tree/QueryFilter.g:104:6: ( ' ' | '\\t' | '\\n' | '\\r' | '\\f' )+
int cnt21=0;
loop21:
do {
int alt21=2;
switch ( input.LA(1) ) {
case '\t':
case '\n':
case '\f':
case '\r':
case ' ':
{
alt21=1;
}
break;
}
switch (alt21) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '\t' && input.LA(1) <= '\n')||(input.LA(1) >= '\f' && input.LA(1) <= '\r')||input.LA(1)==' ' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt21 >= 1 ) break loop21;
EarlyExitException eee =
new EarlyExitException(21, input);
throw eee;
}
cnt21++;
} while (true);
_channel=HIDDEN;
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "WS"
// $ANTLR start "UUID"
public final void mUUID() throws RecognitionException {
try {
int _type = UUID;
int _channel = DEFAULT_TOKEN_CHANNEL;
// org/usergrid/persistence/query/tree/QueryFilter.g:109:6: ( HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
// org/usergrid/persistence/query/tree/QueryFilter.g:109:9: HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT '-' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
{
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
match('-');
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
match('-');
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
match('-');
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
match('-');
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "UUID"
// $ANTLR start "TRUE"
public final void mTRUE() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:120:15: ( ( 'T' | 't' ) ( 'R' | 'r' ) ( 'U' | 'u' ) ( 'E' | 'e' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:120:17: ( 'T' | 't' ) ( 'R' | 'r' ) ( 'U' | 'u' ) ( 'E' | 'e' )
{
if ( input.LA(1)=='T'||input.LA(1)=='t' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='R'||input.LA(1)=='r' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='U'||input.LA(1)=='u' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "TRUE"
// $ANTLR start "FALSE"
public final void mFALSE() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:122:16: ( ( 'F' | 'f' ) ( 'A' | 'a' ) ( 'L' | 'l' ) ( 'S' | 's' ) ( 'E' | 'e' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:122:18: ( 'F' | 'f' ) ( 'A' | 'a' ) ( 'L' | 'l' ) ( 'S' | 's' ) ( 'E' | 'e' )
{
if ( input.LA(1)=='F'||input.LA(1)=='f' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='A'||input.LA(1)=='a' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='L'||input.LA(1)=='l' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='S'||input.LA(1)=='s' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "FALSE"
// $ANTLR start "EXPONENT"
public final void mEXPONENT() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:127:10: ( ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )
// org/usergrid/persistence/query/tree/QueryFilter.g:127:12: ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+
{
if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
// org/usergrid/persistence/query/tree/QueryFilter.g:127:22: ( '+' | '-' )?
int alt22=2;
switch ( input.LA(1) ) {
case '+':
case '-':
{
alt22=1;
}
break;
}
switch (alt22) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
}
// org/usergrid/persistence/query/tree/QueryFilter.g:127:33: ( '0' .. '9' )+
int cnt23=0;
loop23:
do {
int alt23=2;
switch ( input.LA(1) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
alt23=1;
}
break;
}
switch (alt23) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
default :
if ( cnt23 >= 1 ) break loop23;
EarlyExitException eee =
new EarlyExitException(23, input);
throw eee;
}
cnt23++;
} while (true);
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "EXPONENT"
// $ANTLR start "HEX_DIGIT"
public final void mHEX_DIGIT() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:130:11: ( ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )
// org/usergrid/persistence/query/tree/QueryFilter.g:
{
if ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'F')||(input.LA(1) >= 'a' && input.LA(1) <= 'f') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "HEX_DIGIT"
// $ANTLR start "ESC_SEQ"
public final void mESC_SEQ() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:134:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | UNICODE_ESC | OCTAL_ESC )
int alt24=3;
switch ( input.LA(1) ) {
case '\\':
{
switch ( input.LA(2) ) {
case '\"':
case '\'':
case '\\':
case 'b':
case 'f':
case 'n':
case 'r':
case 't':
{
alt24=1;
}
break;
case 'u':
{
alt24=2;
}
break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
{
alt24=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 24, 1, input);
throw nvae;
}
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 24, 0, input);
throw nvae;
}
switch (alt24) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:134:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:135:9: UNICODE_ESC
{
mUNICODE_ESC();
}
break;
case 3 :
// org/usergrid/persistence/query/tree/QueryFilter.g:136:9: OCTAL_ESC
{
mOCTAL_ESC();
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "ESC_SEQ"
// $ANTLR start "OCTAL_ESC"
public final void mOCTAL_ESC() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:141:5: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) )
int alt25=3;
switch ( input.LA(1) ) {
case '\\':
{
switch ( input.LA(2) ) {
case '0':
case '1':
case '2':
case '3':
{
switch ( input.LA(3) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
{
switch ( input.LA(4) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
{
alt25=1;
}
break;
default:
alt25=2;
}
}
break;
default:
alt25=3;
}
}
break;
case '4':
case '5':
case '6':
case '7':
{
switch ( input.LA(3) ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
{
alt25=2;
}
break;
default:
alt25=3;
}
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 25, 1, input);
throw nvae;
}
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 25, 0, input);
throw nvae;
}
switch (alt25) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:141:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
if ( (input.LA(1) >= '0' && input.LA(1) <= '3') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:142:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' )
{
match('\\');
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
case 3 :
// org/usergrid/persistence/query/tree/QueryFilter.g:143:9: '\\\\' ( '0' .. '7' )
{
match('\\');
if ( (input.LA(1) >= '0' && input.LA(1) <= '7') ) {
input.consume();
}
else {
MismatchedSetException mse = new MismatchedSetException(null,input);
recover(mse);
throw mse;
}
}
break;
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "OCTAL_ESC"
// $ANTLR start "UNICODE_ESC"
public final void mUNICODE_ESC() throws RecognitionException {
try {
// org/usergrid/persistence/query/tree/QueryFilter.g:148:5: ( '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT )
// org/usergrid/persistence/query/tree/QueryFilter.g:148:9: '\\\\' 'u' HEX_DIGIT HEX_DIGIT HEX_DIGIT HEX_DIGIT
{
match('\\');
match('u');
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
mHEX_DIGIT();
}
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "UNICODE_ESC"
public void mTokens() throws RecognitionException {
// org/usergrid/persistence/query/tree/QueryFilter.g:1:8: ( T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | LT | LTE | EQ | GT | GTE | BOOLEAN | AND | OR | NOT | ASC | DESC | CONTAINS | WITHIN | OF | ID | LONG | FLOAT | STRING | WS | UUID )
int alt26=30;
alt26 = dfa26.predict(input);
switch (alt26) {
case 1 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:10: T__31
{
mT__31();
}
break;
case 2 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:16: T__32
{
mT__32();
}
break;
case 3 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:22: T__33
{
mT__33();
}
break;
case 4 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:28: T__34
{
mT__34();
}
break;
case 5 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:34: T__35
{
mT__35();
}
break;
case 6 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:40: T__36
{
mT__36();
}
break;
case 7 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:46: T__37
{
mT__37();
}
break;
case 8 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:52: T__38
{
mT__38();
}
break;
case 9 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:58: T__39
{
mT__39();
}
break;
case 10 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:64: T__40
{
mT__40();
}
break;
case 11 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:70: LT
{
mLT();
}
break;
case 12 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:73: LTE
{
mLTE();
}
break;
case 13 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:77: EQ
{
mEQ();
}
break;
case 14 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:80: GT
{
mGT();
}
break;
case 15 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:83: GTE
{
mGTE();
}
break;
case 16 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:87: BOOLEAN
{
mBOOLEAN();
}
break;
case 17 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:95: AND
{
mAND();
}
break;
case 18 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:99: OR
{
mOR();
}
break;
case 19 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:102: NOT
{
mNOT();
}
break;
case 20 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:106: ASC
{
mASC();
}
break;
case 21 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:110: DESC
{
mDESC();
}
break;
case 22 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:115: CONTAINS
{
mCONTAINS();
}
break;
case 23 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:124: WITHIN
{
mWITHIN();
}
break;
case 24 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:131: OF
{
mOF();
}
break;
case 25 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:134: ID
{
mID();
}
break;
case 26 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:137: LONG
{
mLONG();
}
break;
case 27 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:142: FLOAT
{
mFLOAT();
}
break;
case 28 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:148: STRING
{
mSTRING();
}
break;
case 29 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:155: WS
{
mWS();
}
break;
case 30 :
// org/usergrid/persistence/query/tree/QueryFilter.g:1:158: UUID
{
mUUID();
}
break;
}
}
protected DFA19 dfa19 = new DFA19(this);
protected DFA26 dfa26 = new DFA26(this);
static final String DFA19_eotS =
"\5\uffff";
static final String DFA19_eofS =
"\5\uffff";
static final String DFA19_minS =
"\2\56\3\uffff";
static final String DFA19_maxS =
"\1\71\1\145\3\uffff";
static final String DFA19_acceptS =
"\2\uffff\1\2\1\1\1\3";
static final String DFA19_specialS =
"\5\uffff}>";
static final String[] DFA19_transitionS = {
"\1\2\1\uffff\12\1",
"\1\3\1\uffff\12\1\13\uffff\1\4\37\uffff\1\4",
"",
"",
""
};
static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS);
static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS);
static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS);
static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS);
static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS);
static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS);
static final short[][] DFA19_transition;
static {
int numStates = DFA19_transitionS.length;
DFA19_transition = new short[numStates][];
for (int i=0; i