package de.dhbwstuttgart.strucTypes4.grammar;// Generated from /home/sebastian/Schreibtisch/FLJava/src/FWJ.g4 by ANTLR 4.6
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;

@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class FWJParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.6", 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, Class=13, Token2=14, Linefeed=15, WS=16;
	public static final int
		RULE_sourceFile = 0, RULE_classX = 1, RULE_feld = 2, RULE_generics = 3, 
		RULE_generic = 4, RULE_methodDecl = 5, RULE_methodDeclArgs = 6, RULE_returnExpr = 7, 
		RULE_exprMCall = 8, RULE_exprVar = 9, RULE_exprField = 10, RULE_exprNew = 11, 
		RULE_expr = 12, RULE_exprMCallArgs = 13, RULE_bezeichner = 14;
	public static final String[] ruleNames = {
		"sourceFile", "classX", "feld", "generics", "generic", "methodDecl", "methodDeclArgs", 
		"returnExpr", "exprMCall", "exprVar", "exprField", "exprNew", "expr", 
		"exprMCallArgs", "bezeichner"
	};

	private static final String[] _LITERAL_NAMES = {
		null, "'{'", "'}'", "';'", "'<'", "','", "'>'", "'='", "'('", "')'", "'return'", 
		"'.'", "'new'", "'class'"
	};
	private static final String[] _SYMBOLIC_NAMES = {
		null, null, null, null, null, null, null, null, null, null, null, null, 
		null, "Class", "Token2", "Linefeed", "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] = "<INVALID>";
			}
		}
	}

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

	@Override

	public Vocabulary getVocabulary() {
		return VOCABULARY;
	}

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

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

	@Override
	public String getSerializedATN() { return _serializedATN; }

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

	public FWJParser(TokenStream input) {
		super(input);
		_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}
	public static class SourceFileContext extends ParserRuleContext {
		public List<ClassXContext> classX() {
			return getRuleContexts(ClassXContext.class);
		}
		public ClassXContext classX(int i) {
			return getRuleContext(ClassXContext.class,i);
		}
		public SourceFileContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_sourceFile; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterSourceFile(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitSourceFile(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitSourceFile(this);
			else return visitor.visitChildren(this);
		}
	}

	public final SourceFileContext sourceFile() throws RecognitionException {
		SourceFileContext _localctx = new SourceFileContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_sourceFile);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(31); 
			_errHandler.sync(this);
			_la = _input.LA(1);
			do {
				{
				{
				setState(30);
				classX();
				}
				}
				setState(33); 
				_errHandler.sync(this);
				_la = _input.LA(1);
			} while ( _la==Class );
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ClassXContext extends ParserRuleContext {
		public TerminalNode Class() { return getToken(FWJParser.Class, 0); }
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public List<FeldContext> feld() {
			return getRuleContexts(FeldContext.class);
		}
		public FeldContext feld(int i) {
			return getRuleContext(FeldContext.class,i);
		}
		public List<MethodDeclContext> methodDecl() {
			return getRuleContexts(MethodDeclContext.class);
		}
		public MethodDeclContext methodDecl(int i) {
			return getRuleContext(MethodDeclContext.class,i);
		}
		public ClassXContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_classX; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterClassX(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitClassX(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitClassX(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ClassXContext classX() throws RecognitionException {
		ClassXContext _localctx = new ClassXContext(_ctx, getState());
		enterRule(_localctx, 2, RULE_classX);
		int _la;
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(35);
			match(Class);
			setState(36);
			bezeichner();
			setState(37);
			match(T__0);
			setState(41);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,1,_ctx);
			while ( _alt!=2 && _alt!= ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					{
					{
					setState(38);
					feld();
					}
					} 
				}
				setState(43);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,1,_ctx);
			}
			setState(47);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==Token2) {
				{
				{
				setState(44);
				methodDecl();
				}
				}
				setState(49);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			setState(50);
			match(T__1);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class FeldContext extends ParserRuleContext {
		public List<BezeichnerContext> bezeichner() {
			return getRuleContexts(BezeichnerContext.class);
		}
		public BezeichnerContext bezeichner(int i) {
			return getRuleContext(BezeichnerContext.class,i);
		}
		public FeldContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_feld; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterFeld(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitFeld(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitFeld(this);
			else return visitor.visitChildren(this);
		}
	}

	public final FeldContext feld() throws RecognitionException {
		FeldContext _localctx = new FeldContext(_ctx, getState());
		enterRule(_localctx, 4, RULE_feld);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(52);
			bezeichner();
			setState(53);
			bezeichner();
			setState(54);
			match(T__2);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class GenericsContext extends ParserRuleContext {
		public List<GenericContext> generic() {
			return getRuleContexts(GenericContext.class);
		}
		public GenericContext generic(int i) {
			return getRuleContext(GenericContext.class,i);
		}
		public GenericsContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_generics; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterGenerics(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitGenerics(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitGenerics(this);
			else return visitor.visitChildren(this);
		}
	}

	public final GenericsContext generics() throws RecognitionException {
		GenericsContext _localctx = new GenericsContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_generics);
		int _la;
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(56);
			match(T__3);
			setState(69);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) {
			case 1:
				{
				setState(60); 
				_errHandler.sync(this);
				_alt = 1;
				do {
					switch (_alt) {
					case 1:
						{
						{
						setState(57);
						generic();
						setState(58);
						match(T__4);
						}
						}
						break;
					default:
						throw new NoViableAltException(this);
					}
					setState(62); 
					_errHandler.sync(this);
					_alt = getInterpreter().adaptivePredict(_input,3,_ctx);
				} while ( _alt!=2 && _alt!= ATN.INVALID_ALT_NUMBER );
				setState(64);
				generic();
				}
				break;
			case 2:
				{
				setState(67);
				_errHandler.sync(this);
				_la = _input.LA(1);
				if (_la==Token2) {
					{
					setState(66);
					generic();
					}
				}

				}
				break;
			}
			setState(71);
			match(T__5);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class GenericContext extends ParserRuleContext {
		public List<BezeichnerContext> bezeichner() {
			return getRuleContexts(BezeichnerContext.class);
		}
		public BezeichnerContext bezeichner(int i) {
			return getRuleContext(BezeichnerContext.class,i);
		}
		public GenericContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_generic; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterGeneric(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitGeneric(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitGeneric(this);
			else return visitor.visitChildren(this);
		}
	}

	public final GenericContext generic() throws RecognitionException {
		GenericContext _localctx = new GenericContext(_ctx, getState());
		enterRule(_localctx, 8, RULE_generic);
		try {
			enterOuterAlt(_localctx, 1);
			{
			{
			setState(73);
			bezeichner();
			setState(74);
			match(T__6);
			setState(75);
			bezeichner();
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class MethodDeclContext extends ParserRuleContext {
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public MethodDeclArgsContext methodDeclArgs() {
			return getRuleContext(MethodDeclArgsContext.class,0);
		}
		public ReturnExprContext returnExpr() {
			return getRuleContext(ReturnExprContext.class,0);
		}
		public MethodDeclContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_methodDecl; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterMethodDecl(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitMethodDecl(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitMethodDecl(this);
			else return visitor.visitChildren(this);
		}
	}

	public final MethodDeclContext methodDecl() throws RecognitionException {
		MethodDeclContext _localctx = new MethodDeclContext(_ctx, getState());
		enterRule(_localctx, 10, RULE_methodDecl);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(77);
			bezeichner();
			setState(78);
			match(T__7);
			setState(80);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==Token2) {
				{
				setState(79);
				methodDeclArgs();
				}
			}

			setState(82);
			match(T__8);
			setState(83);
			match(T__0);
			setState(85);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==T__9) {
				{
				setState(84);
				returnExpr();
				}
			}

			setState(87);
			match(T__1);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class MethodDeclArgsContext extends ParserRuleContext {
		public List<BezeichnerContext> bezeichner() {
			return getRuleContexts(BezeichnerContext.class);
		}
		public BezeichnerContext bezeichner(int i) {
			return getRuleContext(BezeichnerContext.class,i);
		}
		public MethodDeclArgsContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_methodDeclArgs; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterMethodDeclArgs(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitMethodDeclArgs(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitMethodDeclArgs(this);
			else return visitor.visitChildren(this);
		}
	}

	public final MethodDeclArgsContext methodDeclArgs() throws RecognitionException {
		MethodDeclArgsContext _localctx = new MethodDeclArgsContext(_ctx, getState());
		enterRule(_localctx, 12, RULE_methodDeclArgs);
		try {
			int _alt;
			setState(99);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,9,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(89);
				bezeichner();
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(93); 
				_errHandler.sync(this);
				_alt = 1;
				do {
					switch (_alt) {
					case 1:
						{
						{
						setState(90);
						bezeichner();
						setState(91);
						match(T__4);
						}
						}
						break;
					default:
						throw new NoViableAltException(this);
					}
					setState(95); 
					_errHandler.sync(this);
					_alt = getInterpreter().adaptivePredict(_input,8,_ctx);
				} while ( _alt!=2 && _alt!= ATN.INVALID_ALT_NUMBER );
				setState(97);
				bezeichner();
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ReturnExprContext extends ParserRuleContext {
		public ExprContext expr() {
			return getRuleContext(ExprContext.class,0);
		}
		public ReturnExprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_returnExpr; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterReturnExpr(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitReturnExpr(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitReturnExpr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ReturnExprContext returnExpr() throws RecognitionException {
		ReturnExprContext _localctx = new ReturnExprContext(_ctx, getState());
		enterRule(_localctx, 14, RULE_returnExpr);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(101);
			match(T__9);
			setState(102);
			expr(0);
			setState(103);
			match(T__2);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExprMCallContext extends ParserRuleContext {
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public ExprMCallArgsContext exprMCallArgs() {
			return getRuleContext(ExprMCallArgsContext.class,0);
		}
		public ExprMCallContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exprMCall; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExprMCall(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExprMCall(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExprMCall(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprMCallContext exprMCall() throws RecognitionException {
		ExprMCallContext _localctx = new ExprMCallContext(_ctx, getState());
		enterRule(_localctx, 16, RULE_exprMCall);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(105);
			bezeichner();
			setState(106);
			match(T__7);
			setState(108);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__10) | (1L << T__11) | (1L << Token2))) != 0)) {
				{
				setState(107);
				exprMCallArgs();
				}
			}

			setState(110);
			match(T__8);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExprVarContext extends ParserRuleContext {
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public ExprVarContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exprVar; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExprVar(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExprVar(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExprVar(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprVarContext exprVar() throws RecognitionException {
		ExprVarContext _localctx = new ExprVarContext(_ctx, getState());
		enterRule(_localctx, 18, RULE_exprVar);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(112);
			bezeichner();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExprFieldContext extends ParserRuleContext {
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public ExprFieldContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exprField; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExprField(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExprField(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExprField(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprFieldContext exprField() throws RecognitionException {
		ExprFieldContext _localctx = new ExprFieldContext(_ctx, getState());
		enterRule(_localctx, 20, RULE_exprField);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(114);
			match(T__10);
			setState(115);
			bezeichner();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExprNewContext extends ParserRuleContext {
		public BezeichnerContext bezeichner() {
			return getRuleContext(BezeichnerContext.class,0);
		}
		public GenericsContext generics() {
			return getRuleContext(GenericsContext.class,0);
		}
		public ExprMCallArgsContext exprMCallArgs() {
			return getRuleContext(ExprMCallArgsContext.class,0);
		}
		public ExprNewContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exprNew; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExprNew(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExprNew(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExprNew(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprNewContext exprNew() throws RecognitionException {
		ExprNewContext _localctx = new ExprNewContext(_ctx, getState());
		enterRule(_localctx, 22, RULE_exprNew);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(117);
			match(T__11);
			setState(118);
			bezeichner();
			setState(120);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==T__3) {
				{
				setState(119);
				generics();
				}
			}

			setState(122);
			match(T__7);
			setState(124);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__10) | (1L << T__11) | (1L << Token2))) != 0)) {
				{
				setState(123);
				exprMCallArgs();
				}
			}

			setState(126);
			match(T__8);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class ExprContext extends ParserRuleContext {
		public ExprVarContext exprVar() {
			return getRuleContext(ExprVarContext.class,0);
		}
		public ExprFieldContext exprField() {
			return getRuleContext(ExprFieldContext.class,0);
		}
		public ExprMCallContext exprMCall() {
			return getRuleContext(ExprMCallContext.class,0);
		}
		public ExprNewContext exprNew() {
			return getRuleContext(ExprNewContext.class,0);
		}
		public List<ExprContext> expr() {
			return getRuleContexts(ExprContext.class);
		}
		public ExprContext expr(int i) {
			return getRuleContext(ExprContext.class,i);
		}
		public ExprContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_expr; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExpr(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExpr(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExpr(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprContext expr() throws RecognitionException {
		return expr(0);
	}

	private ExprContext expr(int _p) throws RecognitionException {
		ParserRuleContext _parentctx = _ctx;
		int _parentState = getState();
		ExprContext _localctx = new ExprContext(_ctx, _parentState);
		ExprContext _prevctx = _localctx;
		int _startState = 24;
		enterRecursionRule(_localctx, 24, RULE_expr, _p);
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(133);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
			case 1:
				{
				setState(129);
				exprVar();
				}
				break;
			case 2:
				{
				setState(130);
				exprField();
				}
				break;
			case 3:
				{
				setState(131);
				exprMCall();
				}
				break;
			case 4:
				{
				setState(132);
				exprNew();
				}
				break;
			}
			_ctx.stop = _input.LT(-1);
			setState(140);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
			while ( _alt!=2 && _alt!= ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					if ( _parseListeners!=null ) triggerExitRuleEvent();
					_prevctx = _localctx;
					{
					{
					_localctx = new ExprContext(_parentctx, _parentState);
					pushNewRecursionContext(_localctx, _startState, RULE_expr);
					setState(135);
					if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
					setState(136);
					match(T__10);
					setState(137);
					expr(5);
					}
					} 
				}
				setState(142);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,14,_ctx);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			unrollRecursionContexts(_parentctx);
		}
		return _localctx;
	}

	public static class ExprMCallArgsContext extends ParserRuleContext {
		public List<ExprContext> expr() {
			return getRuleContexts(ExprContext.class);
		}
		public ExprContext expr(int i) {
			return getRuleContext(ExprContext.class,i);
		}
		public ExprMCallArgsContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_exprMCallArgs; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterExprMCallArgs(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitExprMCallArgs(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitExprMCallArgs(this);
			else return visitor.visitChildren(this);
		}
	}

	public final ExprMCallArgsContext exprMCallArgs() throws RecognitionException {
		ExprMCallArgsContext _localctx = new ExprMCallArgsContext(_ctx, getState());
		enterRule(_localctx, 26, RULE_exprMCallArgs);
		try {
			int _alt;
			setState(153);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,16,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(143);
				expr(0);
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(147); 
				_errHandler.sync(this);
				_alt = 1;
				do {
					switch (_alt) {
					case 1:
						{
						{
						setState(144);
						expr(0);
						setState(145);
						match(T__4);
						}
						}
						break;
					default:
						throw new NoViableAltException(this);
					}
					setState(149); 
					_errHandler.sync(this);
					_alt = getInterpreter().adaptivePredict(_input,15,_ctx);
				} while ( _alt!=2 && _alt!= ATN.INVALID_ALT_NUMBER );
				setState(151);
				expr(0);
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class BezeichnerContext extends ParserRuleContext {
		public TerminalNode Token2() { return getToken(FWJParser.Token2, 0); }
		public BezeichnerContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_bezeichner; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).enterBezeichner(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof FWJListener ) ((FWJListener)listener).exitBezeichner(this);
		}
		@Override
		public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
			if ( visitor instanceof FWJVisitor ) return ((FWJVisitor<? extends T>)visitor).visitBezeichner(this);
			else return visitor.visitChildren(this);
		}
	}

	public final BezeichnerContext bezeichner() throws RecognitionException {
		BezeichnerContext _localctx = new BezeichnerContext(_ctx, getState());
		enterRule(_localctx, 28, RULE_bezeichner);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(155);
			match(Token2);
			}
		}
		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 12:
			return expr_sempred((ExprContext)_localctx, predIndex);
		}
		return true;
	}
	private boolean expr_sempred(ExprContext _localctx, int predIndex) {
		switch (predIndex) {
		case 0:
			return precpred(_ctx, 4);
		}
		return true;
	}

	public static final String _serializedATN =
		"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3\22\u00a0\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\3\2\6\2\"\n\2\r\2"+
		"\16\2#\3\3\3\3\3\3\3\3\7\3*\n\3\f\3\16\3-\13\3\3\3\7\3\60\n\3\f\3\16\3"+
		"\63\13\3\3\3\3\3\3\4\3\4\3\4\3\4\3\5\3\5\3\5\3\5\6\5?\n\5\r\5\16\5@\3"+
		"\5\3\5\3\5\5\5F\n\5\5\5H\n\5\3\5\3\5\3\6\3\6\3\6\3\6\3\7\3\7\3\7\5\7S"+
		"\n\7\3\7\3\7\3\7\5\7X\n\7\3\7\3\7\3\b\3\b\3\b\3\b\6\b`\n\b\r\b\16\ba\3"+
		"\b\3\b\5\bf\n\b\3\t\3\t\3\t\3\t\3\n\3\n\3\n\5\no\n\n\3\n\3\n\3\13\3\13"+
		"\3\f\3\f\3\f\3\r\3\r\3\r\5\r{\n\r\3\r\3\r\5\r\177\n\r\3\r\3\r\3\16\3\16"+
		"\3\16\3\16\3\16\5\16\u0088\n\16\3\16\3\16\3\16\7\16\u008d\n\16\f\16\16"+
		"\16\u0090\13\16\3\17\3\17\3\17\3\17\6\17\u0096\n\17\r\17\16\17\u0097\3"+
		"\17\3\17\5\17\u009c\n\17\3\20\3\20\3\20\2\3\32\21\2\4\6\b\n\f\16\20\22"+
		"\24\26\30\32\34\36\2\2\u00a3\2!\3\2\2\2\4%\3\2\2\2\6\66\3\2\2\2\b:\3\2"+
		"\2\2\nK\3\2\2\2\fO\3\2\2\2\16e\3\2\2\2\20g\3\2\2\2\22k\3\2\2\2\24r\3\2"+
		"\2\2\26t\3\2\2\2\30w\3\2\2\2\32\u0087\3\2\2\2\34\u009b\3\2\2\2\36\u009d"+
		"\3\2\2\2 \"\5\4\3\2! \3\2\2\2\"#\3\2\2\2#!\3\2\2\2#$\3\2\2\2$\3\3\2\2"+
		"\2%&\7\17\2\2&\'\5\36\20\2\'+\7\3\2\2(*\5\6\4\2)(\3\2\2\2*-\3\2\2\2+)"+
		"\3\2\2\2+,\3\2\2\2,\61\3\2\2\2-+\3\2\2\2.\60\5\f\7\2/.\3\2\2\2\60\63\3"+
		"\2\2\2\61/\3\2\2\2\61\62\3\2\2\2\62\64\3\2\2\2\63\61\3\2\2\2\64\65\7\4"+
		"\2\2\65\5\3\2\2\2\66\67\5\36\20\2\678\5\36\20\289\7\5\2\29\7\3\2\2\2:"+
		"G\7\6\2\2;<\5\n\6\2<=\7\7\2\2=?\3\2\2\2>;\3\2\2\2?@\3\2\2\2@>\3\2\2\2"+
		"@A\3\2\2\2AB\3\2\2\2BC\5\n\6\2CH\3\2\2\2DF\5\n\6\2ED\3\2\2\2EF\3\2\2\2"+
		"FH\3\2\2\2G>\3\2\2\2GE\3\2\2\2HI\3\2\2\2IJ\7\b\2\2J\t\3\2\2\2KL\5\36\20"+
		"\2LM\7\t\2\2MN\5\36\20\2N\13\3\2\2\2OP\5\36\20\2PR\7\n\2\2QS\5\16\b\2"+
		"RQ\3\2\2\2RS\3\2\2\2ST\3\2\2\2TU\7\13\2\2UW\7\3\2\2VX\5\20\t\2WV\3\2\2"+
		"\2WX\3\2\2\2XY\3\2\2\2YZ\7\4\2\2Z\r\3\2\2\2[f\5\36\20\2\\]\5\36\20\2]"+
		"^\7\7\2\2^`\3\2\2\2_\\\3\2\2\2`a\3\2\2\2a_\3\2\2\2ab\3\2\2\2bc\3\2\2\2"+
		"cd\5\36\20\2df\3\2\2\2e[\3\2\2\2e_\3\2\2\2f\17\3\2\2\2gh\7\f\2\2hi\5\32"+
		"\16\2ij\7\5\2\2j\21\3\2\2\2kl\5\36\20\2ln\7\n\2\2mo\5\34\17\2nm\3\2\2"+
		"\2no\3\2\2\2op\3\2\2\2pq\7\13\2\2q\23\3\2\2\2rs\5\36\20\2s\25\3\2\2\2"+
		"tu\7\r\2\2uv\5\36\20\2v\27\3\2\2\2wx\7\16\2\2xz\5\36\20\2y{\5\b\5\2zy"+
		"\3\2\2\2z{\3\2\2\2{|\3\2\2\2|~\7\n\2\2}\177\5\34\17\2~}\3\2\2\2~\177\3"+
		"\2\2\2\177\u0080\3\2\2\2\u0080\u0081\7\13\2\2\u0081\31\3\2\2\2\u0082\u0083"+
		"\b\16\1\2\u0083\u0088\5\24\13\2\u0084\u0088\5\26\f\2\u0085\u0088\5\22"+
		"\n\2\u0086\u0088\5\30\r\2\u0087\u0082\3\2\2\2\u0087\u0084\3\2\2\2\u0087"+
		"\u0085\3\2\2\2\u0087\u0086\3\2\2\2\u0088\u008e\3\2\2\2\u0089\u008a\f\6"+
		"\2\2\u008a\u008b\7\r\2\2\u008b\u008d\5\32\16\7\u008c\u0089\3\2\2\2\u008d"+
		"\u0090\3\2\2\2\u008e\u008c\3\2\2\2\u008e\u008f\3\2\2\2\u008f\33\3\2\2"+
		"\2\u0090\u008e\3\2\2\2\u0091\u009c\5\32\16\2\u0092\u0093\5\32\16\2\u0093"+
		"\u0094\7\7\2\2\u0094\u0096\3\2\2\2\u0095\u0092\3\2\2\2\u0096\u0097\3\2"+
		"\2\2\u0097\u0095\3\2\2\2\u0097\u0098\3\2\2\2\u0098\u0099\3\2\2\2\u0099"+
		"\u009a\5\32\16\2\u009a\u009c\3\2\2\2\u009b\u0091\3\2\2\2\u009b\u0095\3"+
		"\2\2\2\u009c\35\3\2\2\2\u009d\u009e\7\20\2\2\u009e\37\3\2\2\2\23#+\61"+
		"@EGRWaenz~\u0087\u008e\u0097\u009b";
	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);
		}
	}
}