stio-model.1.7.7.1.source-code.CEXLLexer Maven / Gradle / Ivy
The newest version!
// Generated from CEXL.g4 by ANTLR 4.7.1
package me.snowdrop.istio.api.cexl.parser;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class CEXLLexer extends Lexer {
static { RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION); }
protected static final DFA[] _decisionToDFA;
protected static final PredictionContextCache _sharedContextCache =
new PredictionContextCache();
public static final int
T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9,
T__9=10, T__10=11, T__11=12, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
ATTRIBUTE_NAME=18, IP_LIT=19, INT_LIT=20, STRING_LIT=21, WS=22;
public static String[] channelNames = {
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"
};
public static String[] modeNames = {
"DEFAULT_MODE"
};
public static final String[] ruleNames = {
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
"ATTRIBUTE_NAME", "IP_LIT", "IP_FRAG_LIT", "INT_LIT", "STRING_LIT", "DECIMAL_DIGIT",
"UNICODE_CHAR", "WS"
};
private static final String[] _LITERAL_NAMES = {
null, "'||'", "'&&'", "'=='", "'!='", "'('", "')'", "'|'", "'['", "']'",
"'match('", "', '", "'ip(\"'", "'\")'", "'timestamp('", "'.matches('",
"'.startsWith('", "'.endsWith('"
};
private static final String[] _SYMBOLIC_NAMES = {
null, null, null, null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, "ATTRIBUTE_NAME", "IP_LIT", "INT_LIT",
"STRING_LIT", "WS"
};
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
@Deprecated
public String[] getTokenNames() {
return tokenNames;
}
@Override
public Vocabulary getVocabulary() {
return VOCABULARY;
}
public CEXLLexer(CharStream input) {
super(input);
_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
@Override
public String getGrammarFileName() { return "CEXL.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public String[] getChannelNames() { return channelNames; }
@Override
public String[] getModeNames() { return modeNames; }
@Override
public ATN getATN() { return _ATN; }
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\30\u00bd\b\1\4\2"+
"\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4"+
"\13\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22"+
"\t\22\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31"+
"\t\31\4\32\t\32\3\2\3\2\3\2\3\3\3\3\3\3\3\4\3\4\3\4\3\5\3\5\3\5\3\6\3"+
"\6\3\7\3\7\3\b\3\b\3\t\3\t\3\n\3\n\3\13\3\13\3\13\3\13\3\13\3\13\3\13"+
"\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3"+
"\17\3\17\3\17\3\17\3\17\3\17\3\17\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3"+
"\20\3\20\3\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3"+
"\21\3\21\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\23\3"+
"\23\3\23\3\23\7\23\u008f\n\23\f\23\16\23\u0092\13\23\3\24\3\24\3\24\3"+
"\24\3\24\3\24\3\24\3\24\3\25\3\25\5\25\u009e\n\25\3\25\5\25\u00a1\n\25"+
"\3\26\6\26\u00a4\n\26\r\26\16\26\u00a5\3\27\3\27\3\27\3\27\7\27\u00ac"+
"\n\27\f\27\16\27\u00af\13\27\3\27\3\27\3\30\3\30\3\31\3\31\3\32\6\32\u00b8"+
"\n\32\r\32\16\32\u00b9\3\32\3\32\2\2\33\3\3\5\4\7\5\t\6\13\7\r\b\17\t"+
"\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\2+\26"+
"-\27/\2\61\2\63\30\3\2\t\4\2C\\c|\4\2\60\60aa\3\2\63\64\b\2##/\60AAC\\"+
"aac|\4\2\13\13\"\"\3\2\62;\3\2\f\f\2\u00c3\2\3\3\2\2\2\2\5\3\2\2\2\2\7"+
"\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2\17\3\2\2\2\2\21\3\2\2"+
"\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3\2\2\2\2\33\3\2\2\2\2"+
"\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2%\3\2\2\2\2\'\3\2\2\2"+
"\2+\3\2\2\2\2-\3\2\2\2\2\63\3\2\2\2\3\65\3\2\2\2\58\3\2\2\2\7;\3\2\2\2"+
"\t>\3\2\2\2\13A\3\2\2\2\rC\3\2\2\2\17E\3\2\2\2\21G\3\2\2\2\23I\3\2\2\2"+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0083\u0084\7u\2\2\u0084\u0085"+
"\7Y\2\2\u0085\u0086\7k\2\2\u0086\u0087\7v\2\2\u0087\u0088\7j\2\2\u0088"+
"\u0089\7*\2\2\u0089$\3\2\2\2\u008a\u0090\t\2\2\2\u008b\u008f\t\2\2\2\u008c"+
"\u008f\5/\30\2\u008d\u008f\t\3\2\2\u008e\u008b\3\2\2\2\u008e\u008c\3\2"+
"\2\2\u008e\u008d\3\2\2\2\u008f\u0092\3\2\2\2\u0090\u008e\3\2\2\2\u0090"+
"\u0091\3\2\2\2\u0091&\3\2\2\2\u0092\u0090\3\2\2\2\u0093\u0094\5)\25\2"+
"\u0094\u0095\7\60\2\2\u0095\u0096\5)\25\2\u0096\u0097\7\60\2\2\u0097\u0098"+
"\5)\25\2\u0098\u0099\7\60\2\2\u0099\u009a\5)\25\2\u009a(\3\2\2\2\u009b"+
"\u009d\t\4\2\2\u009c\u009e\5/\30\2\u009d\u009c\3\2\2\2\u009d\u009e\3\2"+
"\2\2\u009e\u00a0\3\2\2\2\u009f\u00a1\5/\30\2\u00a0\u009f\3\2\2\2\u00a0"+
"\u00a1\3\2\2\2\u00a1*\3\2\2\2\u00a2\u00a4\5/\30\2\u00a3\u00a2\3\2\2\2"+
"\u00a4\u00a5\3\2\2\2\u00a5\u00a3\3\2\2\2\u00a5\u00a6\3\2\2\2\u00a6,\3"+
"\2\2\2\u00a7\u00ad\7$\2\2\u00a8\u00ac\t\5\2\2\u00a9\u00ac\5/\30\2\u00aa"+
"\u00ac\t\6\2\2\u00ab\u00a8\3\2\2\2\u00ab\u00a9\3\2\2\2\u00ab\u00aa\3\2"+
"\2\2\u00ac\u00af\3\2\2\2\u00ad\u00ab\3\2\2\2\u00ad\u00ae\3\2\2\2\u00ae"+
"\u00b0\3\2\2\2\u00af\u00ad\3\2\2\2\u00b0\u00b1\7$\2\2\u00b1.\3\2\2\2\u00b2"+
"\u00b3\t\7\2\2\u00b3\60\3\2\2\2\u00b4\u00b5\n\b\2\2\u00b5\62\3\2\2\2\u00b6"+
"\u00b8\t\6\2\2\u00b7\u00b6\3\2\2\2\u00b8\u00b9\3\2\2\2\u00b9\u00b7\3\2"+
"\2\2\u00b9\u00ba\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00bc\b\32\2\2\u00bc"+
"\64\3\2\2\2\13\2\u008e\u0090\u009d\u00a0\u00a5\u00ab\u00ad\u00b9\3\2\3"+
"\2";
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);
}
}
}