All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.hql.testing.internal.GrammarTestLexer Maven / Gradle / Ivy

There is a newer version: 1.5.0.Final
Show newest version
// Generated from /home/sanne/workspaces/hibernate/hibernate-jpql-parser/testing/src/main/antlr4-gradle/GrammarTest.g4 by ANTLR 4.0

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * Copyright (c) 2013, Red Hat, Inc. or third-party contributors as
 * indicated by the @author tags or express copyright attribution
 * statements applied by the authors.  All third-party contributions are
 * distributed under license by Red Hat Inc.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, write to:
 * Free Software Foundation, Inc.
 * 51 Franklin Street, Fifth Floor
 * Boston, MA  02110-1301  USA
 */
package org.hibernate.hql.testing.internal;

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 GrammarTestLexer extends Lexer {
	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		T__7=1, T__6=2, T__5=3, T__4=4, T__3=5, T__2=6, T__1=7, T__0=8, TEST_RESULT=9, 
		ID=10, PACKAGE_ID=11, WS=12, TEST_GROUP_NAME=13, STRING_LITERAL=14, AST=15, 
		MULTI_LINE=16, COMMENT=17;
	public static String[] modeNames = {
		"DEFAULT_MODE"
	};

	public static final String[] tokenNames = {
		"",
		"'@header'", "'package'", "'->'", "'{'", "'gunit'", "':'", "'}'", "';'", 
		"TEST_RESULT", "ID", "PACKAGE_ID", "WS", "TEST_GROUP_NAME", "STRING_LITERAL", 
		"AST", "MULTI_LINE", "COMMENT"
	};
	public static final String[] ruleNames = {
		"T__7", "T__6", "T__5", "T__4", "T__3", "T__2", "T__1", "T__0", "TEST_RESULT", 
		"ID", "PACKAGE_ID", "WS", "TEST_GROUP_NAME", "STRING_LITERAL", "AST", 
		"MULTI_LINE", "COMMENT", "ESC", "HEX_DIGIT"
	};


	public GrammarTestLexer(CharStream input) {
		super(input);
		_interp = new LexerATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	@Override
	public String getGrammarFileName() { return "GrammarTest.g4"; }

	@Override
	public String[] getTokenNames() { return tokenNames; }

	@Override
	public String[] getRuleNames() { return ruleNames; }

	@Override
	public String[] getModeNames() { return modeNames; }

	@Override
	public ATN getATN() { return _ATN; }

	@Override
	public void action(RuleContext _localctx, int ruleIndex, int actionIndex) {
		switch (ruleIndex) {
		case 11: WS_action((RuleContext)_localctx, actionIndex); break;

		case 16: COMMENT_action((RuleContext)_localctx, actionIndex); break;
		}
	}
	private void WS_action(RuleContext _localctx, int actionIndex) {
		switch (actionIndex) {
		case 0: skip();  break;
		}
	}
	private void COMMENT_action(RuleContext _localctx, int actionIndex) {
		switch (actionIndex) {
		case 1: skip();  break;
		}
	}

	public static final String _serializedATN =
		"\2\4\23\u00b7\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\3\2\3\2\3\2\3\2\3\2\3\2"+
		"\3\2\3\2\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\3\4\3\4\3\4\3\5\3\5\3\6\3\6\3"+
		"\6\3\6\3\6\3\6\3\7\3\7\3\b\3\b\3\t\3\t\3\n\3\n\3\n\3\n\3\n\3\n\5\nQ\n"+
		"\n\3\13\6\13T\n\13\r\13\16\13U\3\f\3\f\3\f\7\f[\n\f\f\f\16\f^\13\f\3\r"+
		"\6\ra\n\r\r\r\16\rb\3\r\3\r\3\16\3\16\7\16i\n\16\f\16\16\16l\13\16\3\16"+
		"\3\16\3\17\3\17\3\17\7\17s\n\17\f\17\16\17v\13\17\3\17\3\17\3\20\3\20"+
		"\3\20\7\20}\n\20\f\20\16\20\u0080\13\20\3\20\3\20\3\21\3\21\3\21\3\21"+
		"\7\21\u0088\n\21\f\21\16\21\u008b\13\21\3\21\3\21\3\21\3\22\3\22\3\22"+
		"\3\22\7\22\u0094\n\22\f\22\16\22\u0097\13\22\3\22\5\22\u009a\n\22\3\22"+
		"\3\22\3\22\3\22\3\22\7\22\u00a1\n\22\f\22\16\22\u00a4\13\22\3\22\3\22"+
		"\5\22\u00a8\n\22\3\22\3\22\3\23\3\23\3\23\3\23\3\23\3\23\3\23\3\23\5\23"+
		"\u00b4\n\23\3\24\3\24\4\u0089\u00a2\25\3\3\1\5\4\1\7\5\1\t\6\1\13\7\1"+
		"\r\b\1\17\t\1\21\n\1\23\13\1\25\f\1\27\r\1\31\16\2\33\17\1\35\20\1\37"+
		"\21\1!\22\1#\23\3%\2\1\'\2\1\3\2\n\5C\\aac|\5\13\f\17\17\"\"\3__\4$$^"+
		"^\4$$^^\4\f\f\17\17\13$$))@@^^ddhhppttvv\5\62;CHch\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!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\2\2"+
		"\2lj\3\2\2\2mn\7_\2\2n\34\3\2\2\2ot\7$\2\2ps\5%\23\2qs\n\5\2\2rp\3\2\2"+
		"\2rq\3\2\2\2sv\3\2\2\2tr\3\2\2\2tu\3\2\2\2uw\3\2\2\2vt\3\2\2\2wx\7$\2"+
		"\2x\36\3\2\2\2y~\7*\2\2z}\5%\23\2{}\n\6\2\2|z\3\2\2\2|{\3\2\2\2}\u0080"+
		"\3\2\2\2~|\3\2\2\2~\177\3\2\2\2\177\u0081\3\2\2\2\u0080~\3\2\2\2\u0081"+
		"\u0082\7+\2\2\u0082 \3\2\2\2\u0083\u0084\7>\2\2\u0084\u0085\7>\2\2\u0085"+
		"\u0089\3\2\2\2\u0086\u0088\13\2\2\2\u0087\u0086\3\2\2\2\u0088\u008b\3"+
		"\2\2\2\u0089\u008a\3\2\2\2\u0089\u0087\3\2\2\2\u008a\u008c\3\2\2\2\u008b"+
		"\u0089\3\2\2\2\u008c\u008d\7@\2\2\u008d\u008e\7@\2\2\u008e\"\3\2\2\2\u008f"+
		"\u0090\7\61\2\2\u0090\u0091\7\61\2\2\u0091\u0095\3\2\2\2\u0092\u0094\n"+
		"\7\2\2\u0093\u0092\3\2\2\2\u0094\u0097\3\2\2\2\u0095\u0093\3\2\2\2\u0095"+
		"\u0096\3\2\2\2\u0096\u0099\3\2\2\2\u0097\u0095\3\2\2\2\u0098\u009a\7\17"+
		"\2\2\u0099\u0098\3\2\2\2\u0099\u009a\3\2\2\2\u009a\u009b\3\2\2\2\u009b"+
		"\u00a8\7\f\2\2\u009c\u009d\7\61\2\2\u009d\u009e\7,\2\2\u009e\u00a2\3\2"+
		"\2\2\u009f\u00a1\13\2\2\2\u00a0\u009f\3\2\2\2\u00a1\u00a4\3\2\2\2\u00a2"+
		"\u00a3\3\2\2\2\u00a2\u00a0\3\2\2\2\u00a3\u00a5\3\2\2\2\u00a4\u00a2\3\2"+
		"\2\2\u00a5\u00a6\7,\2\2\u00a6\u00a8\7\61\2\2\u00a7\u008f\3\2\2\2\u00a7"+
		"\u009c\3\2\2\2\u00a8\u00a9\3\2\2\2\u00a9\u00aa\b\22\3\2\u00aa$\3\2\2\2"+
		"\u00ab\u00b3\7^\2\2\u00ac\u00b4\t\b\2\2\u00ad\u00ae\7w\2\2\u00ae\u00af"+
		"\5\'\24\2\u00af\u00b0\5\'\24\2\u00b0\u00b1\5\'\24\2\u00b1\u00b2\5\'\24"+
		"\2\u00b2\u00b4\3\2\2\2\u00b3\u00ac\3\2\2\2\u00b3\u00ad\3\2\2\2\u00b4&"+
		"\3\2\2\2\u00b5\u00b6\t\t\2\2\u00b6(\3\2\2\2\22\2PU\\bjrt|~\u0089\u0095"+
		"\u0099\u00a2\u00a7\u00b3";
	public static final ATN _ATN =
		ATNSimulator.deserialize(_serializedATN.toCharArray());
	static {
		_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy