| package org.eclipse.osbp.xtext.entitymock.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.common.util.Enumerator; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.osbp.xtext.entitymock.services.EntityMockDSLGrammarAccess; |
| |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| import java.util.Map; |
| import java.util.HashMap; |
| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| @SuppressWarnings("all") |
| public class InternalEntityMockDSLParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_INT", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'mock'", "'describedBy'", "'priority'", "'datainterchanges'", "'datainterchange'", "'file'", "'resources'", "'resource'", "'attributes'", "'('", "','", "')'", "'items'", "'objects'", "'object'", "'var'", "'byEnum'", "'with'", "'.'", "'switchOn'", "'when'", "'embed'", "'definedAs'", "'calculateAs'", "'basedOn'", "'randomize'", "'future'", "'years'", "'past'", "'boolean'", "'dateRange'", "'from'", "'until'", "'numberRange'", "'decimals'", "'roundTo'", "'numberPick'", "'integerRange'", "'integerPick'", "'textPick'", "'paragraphs'", "'sentences'", "'words'", "'unsignedNumberRange'", "'unsignedNumberPick'", "'unsignedIntegerRange'", "'unsignedIntegerPick'", "'entities'", "'mocking'", "'entity'", "'rows'", "'to'", "'createBlobMapping'", "'iterate'", "'integerFrom'", "'step'", "'dateFrom'", "'every'", "'yesterday'", "'today'", "'tomorrow'", "'-'", "'as'", "'template'", "'byObject'", "'calculateOn'", "'using'", "'ref'", "'existingEntities'", "'optionalFor'", "'percent'", "'import'", "'static'", "'extension'", "'*'", "'ns'", "';'", "'@'", "'='", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'**'", "'/'", "'%'", "'!'", "'++'", "'--'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'default'", "'case'", "'for'", "'while'", "'do'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'days'", "'weeks'", "'months'" |
| }; |
| public static final int T__144=144; |
| public static final int T__143=143; |
| public static final int T__146=146; |
| public static final int RULE_HEX=7; |
| public static final int T__50=50; |
| public static final int T__145=145; |
| public static final int T__140=140; |
| public static final int T__142=142; |
| public static final int T__141=141; |
| public static final int T__59=59; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__137=137; |
| public static final int T__52=52; |
| public static final int T__136=136; |
| public static final int T__53=53; |
| public static final int T__139=139; |
| public static final int T__54=54; |
| public static final int T__138=138; |
| public static final int T__133=133; |
| public static final int T__132=132; |
| public static final int T__60=60; |
| public static final int T__135=135; |
| public static final int T__61=61; |
| public static final int T__134=134; |
| public static final int RULE_ID=4; |
| public static final int T__131=131; |
| public static final int T__130=130; |
| public static final int RULE_INT=6; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__67=67; |
| public static final int T__129=129; |
| public static final int T__68=68; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__126=126; |
| public static final int T__63=63; |
| public static final int T__125=125; |
| public static final int T__64=64; |
| public static final int T__128=128; |
| public static final int T__65=65; |
| public static final int T__127=127; |
| 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__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__30=30; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int T__155=155; |
| public static final int T__154=154; |
| public static final int T__156=156; |
| public static final int T__151=151; |
| public static final int T__150=150; |
| public static final int T__153=153; |
| public static final int T__152=152; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__148=148; |
| public static final int T__41=41; |
| public static final int T__147=147; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| public static final int T__149=149; |
| public static final int T__91=91; |
| public static final int T__100=100; |
| public static final int T__92=92; |
| public static final int T__93=93; |
| public static final int T__102=102; |
| public static final int T__94=94; |
| public static final int T__101=101; |
| public static final int T__90=90; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int T__99=99; |
| public static final int T__13=13; |
| public static final int T__14=14; |
| public static final int T__95=95; |
| public static final int T__96=96; |
| public static final int T__97=97; |
| public static final int T__98=98; |
| public static final int RULE_DECIMAL=8; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int T__122=122; |
| public static final int T__70=70; |
| public static final int T__121=121; |
| public static final int T__71=71; |
| public static final int T__124=124; |
| public static final int T__72=72; |
| public static final int T__123=123; |
| public static final int T__120=120; |
| public static final int RULE_STRING=5; |
| public static final int RULE_SL_COMMENT=10; |
| public static final int T__77=77; |
| public static final int T__119=119; |
| public static final int T__78=78; |
| public static final int T__118=118; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int T__115=115; |
| public static final int EOF=-1; |
| public static final int T__74=74; |
| public static final int T__114=114; |
| public static final int T__75=75; |
| public static final int T__117=117; |
| public static final int T__76=76; |
| public static final int T__116=116; |
| public static final int T__80=80; |
| public static final int T__111=111; |
| public static final int T__81=81; |
| public static final int T__110=110; |
| public static final int T__82=82; |
| public static final int T__113=113; |
| public static final int T__83=83; |
| public static final int T__112=112; |
| public static final int RULE_WS=11; |
| public static final int RULE_ANY_OTHER=12; |
| public static final int T__88=88; |
| public static final int T__108=108; |
| public static final int T__89=89; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__84=84; |
| public static final int T__104=104; |
| public static final int T__85=85; |
| public static final int T__103=103; |
| public static final int T__86=86; |
| public static final int T__106=106; |
| public static final int T__87=87; |
| public static final int T__105=105; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalEntityMockDSLParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalEntityMockDSLParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalEntityMockDSLParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalEntityMockDSL.g"; } |
| |
| |
| |
| private EntityMockDSLGrammarAccess grammarAccess; |
| |
| public InternalEntityMockDSLParser(TokenStream input, EntityMockDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "EntityMockModel"; |
| } |
| |
| @Override |
| protected EntityMockDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleEntityMockModel" |
| // InternalEntityMockDSL.g:78:1: entryRuleEntityMockModel returns [EObject current=null] : iv_ruleEntityMockModel= ruleEntityMockModel EOF ; |
| public final EObject entryRuleEntityMockModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockModel = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:78:56: (iv_ruleEntityMockModel= ruleEntityMockModel EOF ) |
| // InternalEntityMockDSL.g:79:2: iv_ruleEntityMockModel= ruleEntityMockModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockModel=ruleEntityMockModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockModel" |
| |
| |
| // $ANTLR start "ruleEntityMockModel" |
| // InternalEntityMockDSL.g:85:1: ruleEntityMockModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) ; |
| public final EObject ruleEntityMockModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:91:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) ) |
| // InternalEntityMockDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) |
| { |
| // InternalEntityMockDSL.g:92:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) |
| // InternalEntityMockDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* |
| { |
| // InternalEntityMockDSL.g:93:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==87) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalEntityMockDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalEntityMockDSL.g:94:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalEntityMockDSL.g:95:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockModelAccess().getImportSectionXImportSectionParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_importSection_0_0=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:112:3: ( (lv_packages_1_0= ruleEntityMockPackage ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==13) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalEntityMockDSL.g:113:4: (lv_packages_1_0= ruleEntityMockPackage ) |
| { |
| // InternalEntityMockDSL.g:113:4: (lv_packages_1_0= ruleEntityMockPackage ) |
| // InternalEntityMockDSL.g:114:5: lv_packages_1_0= ruleEntityMockPackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockModelAccess().getPackagesEntityMockPackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_packages_1_0=ruleEntityMockPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockModelRule()); |
| } |
| add( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockPackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockModel" |
| |
| |
| // $ANTLR start "entryRuleEntityMockPackage" |
| // InternalEntityMockDSL.g:135:1: entryRuleEntityMockPackage returns [EObject current=null] : iv_ruleEntityMockPackage= ruleEntityMockPackage EOF ; |
| public final EObject entryRuleEntityMockPackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockPackage = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:135:58: (iv_ruleEntityMockPackage= ruleEntityMockPackage EOF ) |
| // InternalEntityMockDSL.g:136:2: iv_ruleEntityMockPackage= ruleEntityMockPackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockPackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockPackage=ruleEntityMockPackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockPackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockPackage" |
| |
| |
| // $ANTLR start "ruleEntityMockPackage" |
| // InternalEntityMockDSL.g:142:1: ruleEntityMockPackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleEntityMockPackage() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_name_2_0 = null; |
| |
| EObject lv_mocks_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:148:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) ) |
| // InternalEntityMockDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) |
| { |
| // InternalEntityMockDSL.g:149:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) |
| // InternalEntityMockDSL.g:150:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? |
| { |
| // InternalEntityMockDSL.g:150:3: () |
| // InternalEntityMockDSL.g:151:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockPackageAccess().getEntityMockPackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockPackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:161:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:162:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalEntityMockDSL.g:163:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockPackageAccess().getNameQualifiedNameParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_5); |
| lv_name_2_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockPackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:180:3: (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==14) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalEntityMockDSL.g:181:4: otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockPackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalEntityMockDSL.g:185:4: ( (lv_mocks_4_0= ruleEntityMock ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==16) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalEntityMockDSL.g:186:5: (lv_mocks_4_0= ruleEntityMock ) |
| { |
| // InternalEntityMockDSL.g:186:5: (lv_mocks_4_0= ruleEntityMock ) |
| // InternalEntityMockDSL.g:187:6: lv_mocks_4_0= ruleEntityMock |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockPackageAccess().getMocksEntityMockParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_mocks_4_0=ruleEntityMock(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockPackageRule()); |
| } |
| add( |
| current, |
| "mocks", |
| lv_mocks_4_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMock"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockPackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockPackage" |
| |
| |
| // $ANTLR start "entryRuleEntityMock" |
| // InternalEntityMockDSL.g:213:1: entryRuleEntityMock returns [EObject current=null] : iv_ruleEntityMock= ruleEntityMock EOF ; |
| public final EObject entryRuleEntityMock() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMock = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:213:51: (iv_ruleEntityMock= ruleEntityMock EOF ) |
| // InternalEntityMockDSL.g:214:2: iv_ruleEntityMock= ruleEntityMock EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMock=ruleEntityMock(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMock; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMock" |
| |
| |
| // $ANTLR start "ruleEntityMock" |
| // InternalEntityMockDSL.g:220:1: ruleEntityMock returns [EObject current=null] : ( () otherlv_1= 'mock' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? ) ; |
| public final EObject ruleEntityMock() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_name_2_0=null; |
| Token lv_description_3_0=null; |
| Token lv_descriptionValue_4_0=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token lv_runPriority_8_0=null; |
| Token otherlv_13=null; |
| EObject lv_datainterchanges_9_0 = null; |
| |
| EObject lv_resources_10_0 = null; |
| |
| EObject lv_objects_11_0 = null; |
| |
| EObject lv_entities_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:226:2: ( ( () otherlv_1= 'mock' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? ) ) |
| // InternalEntityMockDSL.g:227:2: ( () otherlv_1= 'mock' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? ) |
| { |
| // InternalEntityMockDSL.g:227:2: ( () otherlv_1= 'mock' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? ) |
| // InternalEntityMockDSL.g:228:3: () otherlv_1= 'mock' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? |
| { |
| // InternalEntityMockDSL.g:228:3: () |
| // InternalEntityMockDSL.g:229:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockAccess().getEntityMockAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockAccess().getMockKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:239:3: ( (lv_name_2_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:240:4: (lv_name_2_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:240:4: (lv_name_2_0= RULE_ID ) |
| // InternalEntityMockDSL.g:241:5: lv_name_2_0= RULE_ID |
| { |
| lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_2_0, grammarAccess.getEntityMockAccess().getNameIDTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:257:3: ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==17) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalEntityMockDSL.g:258:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:258:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalEntityMockDSL.g:259:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalEntityMockDSL.g:259:5: (lv_description_3_0= 'describedBy' ) |
| // InternalEntityMockDSL.g:260:6: lv_description_3_0= 'describedBy' |
| { |
| lv_description_3_0=(Token)match(input,17,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_description_3_0, grammarAccess.getEntityMockAccess().getDescriptionDescribedByKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockRule()); |
| } |
| setWithLastConsumed(current, "description", true, "describedBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:272:4: ( (lv_descriptionValue_4_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:273:5: (lv_descriptionValue_4_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:273:5: (lv_descriptionValue_4_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:274:6: lv_descriptionValue_4_0= RULE_STRING |
| { |
| lv_descriptionValue_4_0=(Token)match(input,RULE_STRING,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_descriptionValue_4_0, grammarAccess.getEntityMockAccess().getDescriptionValueSTRINGTerminalRuleCall_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "descriptionValue", |
| lv_descriptionValue_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:291:3: (otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' )? |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==14) ) { |
| alt7=1; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalEntityMockDSL.g:292:4: otherlv_5= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) otherlv_13= '}' |
| { |
| otherlv_5=(Token)match(input,14,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockAccess().getLeftCurlyBracketKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:296:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) ) |
| // InternalEntityMockDSL.g:297:5: ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) |
| { |
| // InternalEntityMockDSL.g:297:5: ( ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) ) |
| // InternalEntityMockDSL.g:298:6: ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| // InternalEntityMockDSL.g:301:6: ( ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}?) |
| // InternalEntityMockDSL.g:302:7: ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ {...}? |
| { |
| // InternalEntityMockDSL.g:302:7: ( ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) )+ |
| int cnt6=0; |
| loop6: |
| do { |
| int alt6=6; |
| int LA6_0 = input.LA(1); |
| |
| if ( LA6_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 0) ) { |
| alt6=1; |
| } |
| else if ( LA6_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 1) ) { |
| alt6=2; |
| } |
| else if ( LA6_0 == 22 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 2) ) { |
| alt6=3; |
| } |
| else if ( LA6_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 3) ) { |
| alt6=4; |
| } |
| else if ( LA6_0 == 63 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 4) ) { |
| alt6=5; |
| } |
| |
| |
| switch (alt6) { |
| case 1 : |
| // InternalEntityMockDSL.g:303:5: ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:303:5: ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) |
| // InternalEntityMockDSL.g:304:6: {...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 0)"); |
| } |
| // InternalEntityMockDSL.g:304:110: ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) |
| // InternalEntityMockDSL.g:305:7: ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 0); |
| // InternalEntityMockDSL.g:308:10: ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) |
| // InternalEntityMockDSL.g:308:11: {...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "true"); |
| } |
| // InternalEntityMockDSL.g:308:20: (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) |
| // InternalEntityMockDSL.g:308:21: otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) |
| { |
| otherlv_7=(Token)match(input,18,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockAccess().getPriorityKeyword_4_1_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:312:10: ( (lv_runPriority_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:313:11: (lv_runPriority_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:313:11: (lv_runPriority_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:314:12: lv_runPriority_8_0= RULE_INT |
| { |
| lv_runPriority_8_0=(Token)match(input,RULE_INT,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_runPriority_8_0, grammarAccess.getEntityMockAccess().getRunPriorityINTTerminalRuleCall_4_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "runPriority", |
| lv_runPriority_8_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:336:5: ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:336:5: ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) |
| // InternalEntityMockDSL.g:337:6: {...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 1)"); |
| } |
| // InternalEntityMockDSL.g:337:110: ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) |
| // InternalEntityMockDSL.g:338:7: ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 1); |
| // InternalEntityMockDSL.g:341:10: ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) |
| // InternalEntityMockDSL.g:341:11: {...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "true"); |
| } |
| // InternalEntityMockDSL.g:341:20: ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) |
| // InternalEntityMockDSL.g:341:21: (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) |
| { |
| // InternalEntityMockDSL.g:341:21: (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) |
| // InternalEntityMockDSL.g:342:11: lv_datainterchanges_9_0= ruleRunningDataInterchanges |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAccess().getDatainterchangesRunningDataInterchangesParserRuleCall_4_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_datainterchanges_9_0=ruleRunningDataInterchanges(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockRule()); |
| } |
| set( |
| current, |
| "datainterchanges", |
| lv_datainterchanges_9_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.RunningDataInterchanges"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:364:5: ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:364:5: ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) |
| // InternalEntityMockDSL.g:365:6: {...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 2)"); |
| } |
| // InternalEntityMockDSL.g:365:110: ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) |
| // InternalEntityMockDSL.g:366:7: ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 2); |
| // InternalEntityMockDSL.g:369:10: ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) |
| // InternalEntityMockDSL.g:369:11: {...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "true"); |
| } |
| // InternalEntityMockDSL.g:369:20: ( (lv_resources_10_0= ruleEntityMockResources ) ) |
| // InternalEntityMockDSL.g:369:21: (lv_resources_10_0= ruleEntityMockResources ) |
| { |
| // InternalEntityMockDSL.g:369:21: (lv_resources_10_0= ruleEntityMockResources ) |
| // InternalEntityMockDSL.g:370:11: lv_resources_10_0= ruleEntityMockResources |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAccess().getResourcesEntityMockResourcesParserRuleCall_4_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_resources_10_0=ruleEntityMockResources(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockRule()); |
| } |
| set( |
| current, |
| "resources", |
| lv_resources_10_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockResources"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:392:5: ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:392:5: ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) |
| // InternalEntityMockDSL.g:393:6: {...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 3)"); |
| } |
| // InternalEntityMockDSL.g:393:110: ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) |
| // InternalEntityMockDSL.g:394:7: ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 3); |
| // InternalEntityMockDSL.g:397:10: ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) |
| // InternalEntityMockDSL.g:397:11: {...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "true"); |
| } |
| // InternalEntityMockDSL.g:397:20: ( (lv_objects_11_0= ruleEntityMockObjects ) ) |
| // InternalEntityMockDSL.g:397:21: (lv_objects_11_0= ruleEntityMockObjects ) |
| { |
| // InternalEntityMockDSL.g:397:21: (lv_objects_11_0= ruleEntityMockObjects ) |
| // InternalEntityMockDSL.g:398:11: lv_objects_11_0= ruleEntityMockObjects |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAccess().getObjectsEntityMockObjectsParserRuleCall_4_1_3_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_objects_11_0=ruleEntityMockObjects(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockRule()); |
| } |
| set( |
| current, |
| "objects", |
| lv_objects_11_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjects"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:420:5: ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:420:5: ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) |
| // InternalEntityMockDSL.g:421:6: {...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 4)"); |
| } |
| // InternalEntityMockDSL.g:421:110: ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) |
| // InternalEntityMockDSL.g:422:7: ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 4); |
| // InternalEntityMockDSL.g:425:10: ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) |
| // InternalEntityMockDSL.g:425:11: {...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "true"); |
| } |
| // InternalEntityMockDSL.g:425:20: ( (lv_entities_12_0= ruleEntityMockEntities ) ) |
| // InternalEntityMockDSL.g:425:21: (lv_entities_12_0= ruleEntityMockEntities ) |
| { |
| // InternalEntityMockDSL.g:425:21: (lv_entities_12_0= ruleEntityMockEntities ) |
| // InternalEntityMockDSL.g:426:11: lv_entities_12_0= ruleEntityMockEntities |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAccess().getEntitiesEntityMockEntitiesParserRuleCall_4_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_11); |
| lv_entities_12_0=ruleEntityMockEntities(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockRule()); |
| } |
| set( |
| current, |
| "entities", |
| lv_entities_12_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntities"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt6 >= 1 ) break loop6; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(6, input); |
| throw eee; |
| } |
| cnt6++; |
| } while (true); |
| |
| if ( ! getUnorderedGroupHelper().canLeave(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMock", "getUnorderedGroupHelper().canLeave(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1())"); |
| } |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1()); |
| |
| } |
| |
| otherlv_13=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getEntityMockAccess().getRightCurlyBracketKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMock" |
| |
| |
| // $ANTLR start "entryRuleRunningDataInterchanges" |
| // InternalEntityMockDSL.g:465:1: entryRuleRunningDataInterchanges returns [EObject current=null] : iv_ruleRunningDataInterchanges= ruleRunningDataInterchanges EOF ; |
| public final EObject entryRuleRunningDataInterchanges() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleRunningDataInterchanges = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:465:64: (iv_ruleRunningDataInterchanges= ruleRunningDataInterchanges EOF ) |
| // InternalEntityMockDSL.g:466:2: iv_ruleRunningDataInterchanges= ruleRunningDataInterchanges EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getRunningDataInterchangesRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleRunningDataInterchanges=ruleRunningDataInterchanges(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleRunningDataInterchanges; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleRunningDataInterchanges" |
| |
| |
| // $ANTLR start "ruleRunningDataInterchanges" |
| // InternalEntityMockDSL.g:472:1: ruleRunningDataInterchanges returns [EObject current=null] : ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) ; |
| public final EObject ruleRunningDataInterchanges() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_datainterchanges_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:478:2: ( ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:479:2: ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:479:2: ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:480:3: () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:480:3: () |
| // InternalEntityMockDSL.g:481:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getRunningDataInterchangesAccess().getRunningDataInterchangesAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,19,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getRunningDataInterchangesAccess().getDatainterchangesKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getRunningDataInterchangesAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:495:3: ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* |
| loop8: |
| do { |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==20) ) { |
| alt8=1; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalEntityMockDSL.g:496:4: (lv_datainterchanges_3_0= ruleRunningDataInterchange ) |
| { |
| // InternalEntityMockDSL.g:496:4: (lv_datainterchanges_3_0= ruleRunningDataInterchange ) |
| // InternalEntityMockDSL.g:497:5: lv_datainterchanges_3_0= ruleRunningDataInterchange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getRunningDataInterchangesAccess().getDatainterchangesRunningDataInterchangeParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_13); |
| lv_datainterchanges_3_0=ruleRunningDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getRunningDataInterchangesRule()); |
| } |
| add( |
| current, |
| "datainterchanges", |
| lv_datainterchanges_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.RunningDataInterchange"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getRunningDataInterchangesAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleRunningDataInterchanges" |
| |
| |
| // $ANTLR start "entryRuleRunningDataInterchange" |
| // InternalEntityMockDSL.g:522:1: entryRuleRunningDataInterchange returns [EObject current=null] : iv_ruleRunningDataInterchange= ruleRunningDataInterchange EOF ; |
| public final EObject entryRuleRunningDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleRunningDataInterchange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:522:63: (iv_ruleRunningDataInterchange= ruleRunningDataInterchange EOF ) |
| // InternalEntityMockDSL.g:523:2: iv_ruleRunningDataInterchange= ruleRunningDataInterchange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getRunningDataInterchangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleRunningDataInterchange=ruleRunningDataInterchange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleRunningDataInterchange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleRunningDataInterchange" |
| |
| |
| // $ANTLR start "ruleRunningDataInterchange" |
| // InternalEntityMockDSL.g:529:1: ruleRunningDataInterchange returns [EObject current=null] : ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) ; |
| public final EObject ruleRunningDataInterchange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token lv_fileURL_4_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:535:2: ( ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) ) |
| // InternalEntityMockDSL.g:536:2: ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) |
| { |
| // InternalEntityMockDSL.g:536:2: ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) |
| // InternalEntityMockDSL.g:537:3: () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:537:3: () |
| // InternalEntityMockDSL.g:538:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getRunningDataInterchangeAccess().getRunningDataInterchangeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,20,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getRunningDataInterchangeAccess().getDatainterchangeKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:548:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:549:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:549:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:550:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRunningDataInterchangeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getRunningDataInterchangeAccess().getDatainterchangeRefDataInterchangeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,21,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getRunningDataInterchangeAccess().getFileKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:565:3: ( (lv_fileURL_4_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:566:4: (lv_fileURL_4_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:566:4: (lv_fileURL_4_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:567:5: lv_fileURL_4_0= RULE_STRING |
| { |
| lv_fileURL_4_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fileURL_4_0, grammarAccess.getRunningDataInterchangeAccess().getFileURLSTRINGTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getRunningDataInterchangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "fileURL", |
| lv_fileURL_4_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleRunningDataInterchange" |
| |
| |
| // $ANTLR start "entryRuleEntityMockResources" |
| // InternalEntityMockDSL.g:587:1: entryRuleEntityMockResources returns [EObject current=null] : iv_ruleEntityMockResources= ruleEntityMockResources EOF ; |
| public final EObject entryRuleEntityMockResources() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockResources = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:587:60: (iv_ruleEntityMockResources= ruleEntityMockResources EOF ) |
| // InternalEntityMockDSL.g:588:2: iv_ruleEntityMockResources= ruleEntityMockResources EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockResourcesRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockResources=ruleEntityMockResources(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockResources; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockResources" |
| |
| |
| // $ANTLR start "ruleEntityMockResources" |
| // InternalEntityMockDSL.g:594:1: ruleEntityMockResources returns [EObject current=null] : ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) ; |
| public final EObject ruleEntityMockResources() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_resources_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:600:2: ( ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:601:2: ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:601:2: ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:602:3: () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:602:3: () |
| // InternalEntityMockDSL.g:603:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockResourcesAccess().getEntityMockResourcesAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,22,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockResourcesAccess().getResourcesKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockResourcesAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:617:3: ( (lv_resources_3_0= ruleEntityMockResource ) )* |
| loop9: |
| do { |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==23) ) { |
| alt9=1; |
| } |
| |
| |
| switch (alt9) { |
| case 1 : |
| // InternalEntityMockDSL.g:618:4: (lv_resources_3_0= ruleEntityMockResource ) |
| { |
| // InternalEntityMockDSL.g:618:4: (lv_resources_3_0= ruleEntityMockResource ) |
| // InternalEntityMockDSL.g:619:5: lv_resources_3_0= ruleEntityMockResource |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockResourcesAccess().getResourcesEntityMockResourceParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| lv_resources_3_0=ruleEntityMockResource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockResourcesRule()); |
| } |
| add( |
| current, |
| "resources", |
| lv_resources_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockResource"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop9; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockResourcesAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockResources" |
| |
| |
| // $ANTLR start "entryRuleEntityMockResource" |
| // InternalEntityMockDSL.g:644:1: entryRuleEntityMockResource returns [EObject current=null] : iv_ruleEntityMockResource= ruleEntityMockResource EOF ; |
| public final EObject entryRuleEntityMockResource() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockResource = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:644:59: (iv_ruleEntityMockResource= ruleEntityMockResource EOF ) |
| // InternalEntityMockDSL.g:645:2: iv_ruleEntityMockResource= ruleEntityMockResource EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockResourceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockResource=ruleEntityMockResource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockResource; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockResource" |
| |
| |
| // $ANTLR start "ruleEntityMockResource" |
| // InternalEntityMockDSL.g:651:1: ruleEntityMockResource returns [EObject current=null] : (otherlv_0= 'resource' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? otherlv_8= 'items' otherlv_9= '{' ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* otherlv_11= '}' otherlv_12= '}' ) ; |
| public final EObject ruleEntityMockResource() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| EObject lv_attributes_5_0 = null; |
| |
| EObject lv_datarows_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:657:2: ( (otherlv_0= 'resource' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? otherlv_8= 'items' otherlv_9= '{' ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* otherlv_11= '}' otherlv_12= '}' ) ) |
| // InternalEntityMockDSL.g:658:2: (otherlv_0= 'resource' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? otherlv_8= 'items' otherlv_9= '{' ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* otherlv_11= '}' otherlv_12= '}' ) |
| { |
| // InternalEntityMockDSL.g:658:2: (otherlv_0= 'resource' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? otherlv_8= 'items' otherlv_9= '{' ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* otherlv_11= '}' otherlv_12= '}' ) |
| // InternalEntityMockDSL.g:659:3: otherlv_0= 'resource' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? otherlv_8= 'items' otherlv_9= '{' ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* otherlv_11= '}' otherlv_12= '}' |
| { |
| otherlv_0=(Token)match(input,23,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockResourceAccess().getResourceKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:663:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:664:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:664:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:665:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockResourceAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockResourceRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockResourceAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:685:3: (otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' )? |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==24) ) { |
| alt12=1; |
| } |
| switch (alt12) { |
| case 1 : |
| // InternalEntityMockDSL.g:686:4: otherlv_3= 'attributes' otherlv_4= '(' ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* otherlv_7= ')' |
| { |
| otherlv_3=(Token)match(input,24,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockResourceAccess().getAttributesKeyword_3_0()); |
| |
| } |
| otherlv_4=(Token)match(input,25,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockResourceAccess().getLeftParenthesisKeyword_3_1()); |
| |
| } |
| // InternalEntityMockDSL.g:694:4: ( ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? )* |
| loop11: |
| do { |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==RULE_ID) ) { |
| alt11=1; |
| } |
| |
| |
| switch (alt11) { |
| case 1 : |
| // InternalEntityMockDSL.g:695:5: ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? |
| { |
| // InternalEntityMockDSL.g:695:5: ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) |
| // InternalEntityMockDSL.g:696:6: (lv_attributes_5_0= ruleEntityMockResourceAttribute ) |
| { |
| // InternalEntityMockDSL.g:696:6: (lv_attributes_5_0= ruleEntityMockResourceAttribute ) |
| // InternalEntityMockDSL.g:697:7: lv_attributes_5_0= ruleEntityMockResourceAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockResourceAccess().getAttributesEntityMockResourceAttributeParserRuleCall_3_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_attributes_5_0=ruleEntityMockResourceAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockResourceRule()); |
| } |
| add( |
| current, |
| "attributes", |
| lv_attributes_5_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockResourceAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:714:5: (otherlv_6= ',' )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==26) ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalEntityMockDSL.g:715:6: otherlv_6= ',' |
| { |
| otherlv_6=(Token)match(input,26,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEntityMockResourceAccess().getCommaKeyword_3_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop11; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,27,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockResourceAccess().getRightParenthesisKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,28,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getEntityMockResourceAccess().getItemsKeyword_4()); |
| |
| } |
| otherlv_9=(Token)match(input,14,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getEntityMockResourceAccess().getLeftCurlyBracketKeyword_5()); |
| |
| } |
| // InternalEntityMockDSL.g:734:3: ( (lv_datarows_10_0= ruleEntityMockResourceDataRow ) )* |
| loop13: |
| do { |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==RULE_ID) ) { |
| alt13=1; |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalEntityMockDSL.g:735:4: (lv_datarows_10_0= ruleEntityMockResourceDataRow ) |
| { |
| // InternalEntityMockDSL.g:735:4: (lv_datarows_10_0= ruleEntityMockResourceDataRow ) |
| // InternalEntityMockDSL.g:736:5: lv_datarows_10_0= ruleEntityMockResourceDataRow |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockResourceAccess().getDatarowsEntityMockResourceDataRowParserRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_21); |
| lv_datarows_10_0=ruleEntityMockResourceDataRow(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockResourceRule()); |
| } |
| add( |
| current, |
| "datarows", |
| lv_datarows_10_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockResourceDataRow"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop13; |
| } |
| } while (true); |
| |
| otherlv_11=(Token)match(input,15,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getEntityMockResourceAccess().getRightCurlyBracketKeyword_7()); |
| |
| } |
| otherlv_12=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getEntityMockResourceAccess().getRightCurlyBracketKeyword_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockResource" |
| |
| |
| // $ANTLR start "entryRuleEntityMockResourceAttribute" |
| // InternalEntityMockDSL.g:765:1: entryRuleEntityMockResourceAttribute returns [EObject current=null] : iv_ruleEntityMockResourceAttribute= ruleEntityMockResourceAttribute EOF ; |
| public final EObject entryRuleEntityMockResourceAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockResourceAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:765:68: (iv_ruleEntityMockResourceAttribute= ruleEntityMockResourceAttribute EOF ) |
| // InternalEntityMockDSL.g:766:2: iv_ruleEntityMockResourceAttribute= ruleEntityMockResourceAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockResourceAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockResourceAttribute=ruleEntityMockResourceAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockResourceAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockResourceAttribute" |
| |
| |
| // $ANTLR start "ruleEntityMockResourceAttribute" |
| // InternalEntityMockDSL.g:772:1: ruleEntityMockResourceAttribute returns [EObject current=null] : ( () ( (lv_name_1_0= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockResourceAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_name_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:778:2: ( ( () ( (lv_name_1_0= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:779:2: ( () ( (lv_name_1_0= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:779:2: ( () ( (lv_name_1_0= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:780:3: () ( (lv_name_1_0= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:780:3: () |
| // InternalEntityMockDSL.g:781:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockResourceAttributeAccess().getEntityMockResourceAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:787:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:788:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:788:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:789:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockResourceAttributeAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockResourceAttributeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockResourceAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockResourceDataRow" |
| // InternalEntityMockDSL.g:809:1: entryRuleEntityMockResourceDataRow returns [EObject current=null] : iv_ruleEntityMockResourceDataRow= ruleEntityMockResourceDataRow EOF ; |
| public final EObject entryRuleEntityMockResourceDataRow() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockResourceDataRow = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:809:66: (iv_ruleEntityMockResourceDataRow= ruleEntityMockResourceDataRow EOF ) |
| // InternalEntityMockDSL.g:810:2: iv_ruleEntityMockResourceDataRow= ruleEntityMockResourceDataRow EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockResourceDataRowRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockResourceDataRow=ruleEntityMockResourceDataRow(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockResourceDataRow; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockResourceDataRow" |
| |
| |
| // $ANTLR start "ruleEntityMockResourceDataRow" |
| // InternalEntityMockDSL.g:816:1: ruleEntityMockResourceDataRow returns [EObject current=null] : ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) ; |
| public final EObject ruleEntityMockResourceDataRow() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token lv_values_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:822:2: ( ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) ) |
| // InternalEntityMockDSL.g:823:2: ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) |
| { |
| // InternalEntityMockDSL.g:823:2: ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) |
| // InternalEntityMockDSL.g:824:3: () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? |
| { |
| // InternalEntityMockDSL.g:824:3: () |
| // InternalEntityMockDSL.g:825:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockResourceDataRowAccess().getEntityMockResourceDataRowAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:831:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:832:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:832:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:833:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockResourceDataRowAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockResourceDataRowRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:849:3: (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==25) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalEntityMockDSL.g:850:4: otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' |
| { |
| otherlv_2=(Token)match(input,25,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockResourceDataRowAccess().getLeftParenthesisKeyword_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:854:4: ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* |
| loop15: |
| do { |
| int alt15=2; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==RULE_STRING) ) { |
| alt15=1; |
| } |
| |
| |
| switch (alt15) { |
| case 1 : |
| // InternalEntityMockDSL.g:855:5: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:855:5: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:856:6: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:856:6: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:857:7: lv_values_3_0= RULE_STRING |
| { |
| lv_values_3_0=(Token)match(input,RULE_STRING,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_values_3_0, grammarAccess.getEntityMockResourceDataRowAccess().getValuesSTRINGTerminalRuleCall_2_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockResourceDataRowRule()); |
| } |
| addWithLastConsumed( |
| current, |
| "values", |
| lv_values_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:873:5: (otherlv_4= ',' )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==26) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalEntityMockDSL.g:874:6: otherlv_4= ',' |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockResourceDataRowAccess().getCommaKeyword_2_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop15; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockResourceDataRowAccess().getRightParenthesisKeyword_2_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockResourceDataRow" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjects" |
| // InternalEntityMockDSL.g:889:1: entryRuleEntityMockObjects returns [EObject current=null] : iv_ruleEntityMockObjects= ruleEntityMockObjects EOF ; |
| public final EObject entryRuleEntityMockObjects() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjects = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:889:58: (iv_ruleEntityMockObjects= ruleEntityMockObjects EOF ) |
| // InternalEntityMockDSL.g:890:2: iv_ruleEntityMockObjects= ruleEntityMockObjects EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjects=ruleEntityMockObjects(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjects; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjects" |
| |
| |
| // $ANTLR start "ruleEntityMockObjects" |
| // InternalEntityMockDSL.g:896:1: ruleEntityMockObjects returns [EObject current=null] : ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) ; |
| public final EObject ruleEntityMockObjects() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_objects_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:902:2: ( ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:903:2: ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:903:2: ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:904:3: () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:904:3: () |
| // InternalEntityMockDSL.g:905:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockObjectsAccess().getEntityMockObjectsAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockObjectsAccess().getObjectsKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectsAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:919:3: ( (lv_objects_3_0= ruleEntityMockObject ) )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==30) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalEntityMockDSL.g:920:4: (lv_objects_3_0= ruleEntityMockObject ) |
| { |
| // InternalEntityMockDSL.g:920:4: (lv_objects_3_0= ruleEntityMockObject ) |
| // InternalEntityMockDSL.g:921:5: lv_objects_3_0= ruleEntityMockObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectsAccess().getObjectsEntityMockObjectParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_26); |
| lv_objects_3_0=ruleEntityMockObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectsRule()); |
| } |
| add( |
| current, |
| "objects", |
| lv_objects_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObject"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectsAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjects" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObject" |
| // InternalEntityMockDSL.g:946:1: entryRuleEntityMockObject returns [EObject current=null] : iv_ruleEntityMockObject= ruleEntityMockObject EOF ; |
| public final EObject entryRuleEntityMockObject() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObject = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:946:57: (iv_ruleEntityMockObject= ruleEntityMockObject EOF ) |
| // InternalEntityMockDSL.g:947:2: iv_ruleEntityMockObject= ruleEntityMockObject EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObject=ruleEntityMockObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObject; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObject" |
| |
| |
| // $ANTLR start "ruleEntityMockObject" |
| // InternalEntityMockDSL.g:953:1: ruleEntityMockObject returns [EObject current=null] : (otherlv_0= 'object' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* otherlv_6= '}' ) ; |
| public final EObject ruleEntityMockObject() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| EObject lv_enumerations_3_0 = null; |
| |
| EObject lv_attributes_4_0 = null; |
| |
| EObject lv_calculations_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:959:2: ( (otherlv_0= 'object' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* otherlv_6= '}' ) ) |
| // InternalEntityMockDSL.g:960:2: (otherlv_0= 'object' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* otherlv_6= '}' ) |
| { |
| // InternalEntityMockDSL.g:960:2: (otherlv_0= 'object' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* otherlv_6= '}' ) |
| // InternalEntityMockDSL.g:961:3: otherlv_0= 'object' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* otherlv_6= '}' |
| { |
| otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectAccess().getObjectKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:965:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:966:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:966:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:967:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:987:3: ( (lv_enumerations_3_0= ruleEntityMockObjectEnum ) )* |
| loop18: |
| do { |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==31) ) { |
| int LA18_1 = input.LA(2); |
| |
| if ( (LA18_1==RULE_ID) ) { |
| int LA18_3 = input.LA(3); |
| |
| if ( (LA18_3==32) ) { |
| alt18=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt18) { |
| case 1 : |
| // InternalEntityMockDSL.g:988:4: (lv_enumerations_3_0= ruleEntityMockObjectEnum ) |
| { |
| // InternalEntityMockDSL.g:988:4: (lv_enumerations_3_0= ruleEntityMockObjectEnum ) |
| // InternalEntityMockDSL.g:989:5: lv_enumerations_3_0= ruleEntityMockObjectEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectAccess().getEnumerationsEntityMockObjectEnumParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| lv_enumerations_3_0=ruleEntityMockObjectEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectRule()); |
| } |
| add( |
| current, |
| "enumerations", |
| lv_enumerations_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjectEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop18; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:1006:3: ( (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) )* |
| loop19: |
| do { |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==31) ) { |
| int LA19_1 = input.LA(2); |
| |
| if ( (LA19_1==RULE_ID) ) { |
| int LA19_4 = input.LA(3); |
| |
| if ( (LA19_4==25||LA19_4==33||LA19_4==35||LA19_4==41) ) { |
| alt19=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( (LA19_0==37) ) { |
| alt19=1; |
| } |
| |
| |
| switch (alt19) { |
| case 1 : |
| // InternalEntityMockDSL.g:1007:4: (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) |
| { |
| // InternalEntityMockDSL.g:1007:4: (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) |
| // InternalEntityMockDSL.g:1008:5: lv_attributes_4_0= ruleIEntityMockObjectAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectAccess().getAttributesIEntityMockObjectAttributeParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| lv_attributes_4_0=ruleIEntityMockObjectAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectRule()); |
| } |
| add( |
| current, |
| "attributes", |
| lv_attributes_4_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.IEntityMockObjectAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop19; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:1025:3: ( (lv_calculations_5_0= ruleEntityMockObjectFunction ) )* |
| loop20: |
| do { |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==31) ) { |
| alt20=1; |
| } |
| |
| |
| switch (alt20) { |
| case 1 : |
| // InternalEntityMockDSL.g:1026:4: (lv_calculations_5_0= ruleEntityMockObjectFunction ) |
| { |
| // InternalEntityMockDSL.g:1026:4: (lv_calculations_5_0= ruleEntityMockObjectFunction ) |
| // InternalEntityMockDSL.g:1027:5: lv_calculations_5_0= ruleEntityMockObjectFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectAccess().getCalculationsEntityMockObjectFunctionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_calculations_5_0=ruleEntityMockObjectFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectRule()); |
| } |
| add( |
| current, |
| "calculations", |
| lv_calculations_5_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjectFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop20; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEntityMockObjectAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObject" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectEnum" |
| // InternalEntityMockDSL.g:1052:1: entryRuleEntityMockObjectEnum returns [EObject current=null] : iv_ruleEntityMockObjectEnum= ruleEntityMockObjectEnum EOF ; |
| public final EObject entryRuleEntityMockObjectEnum() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectEnum = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1052:61: (iv_ruleEntityMockObjectEnum= ruleEntityMockObjectEnum EOF ) |
| // InternalEntityMockDSL.g:1053:2: iv_ruleEntityMockObjectEnum= ruleEntityMockObjectEnum EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectEnumRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectEnum=ruleEntityMockObjectEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectEnum; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectEnum" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectEnum" |
| // InternalEntityMockDSL.g:1059:1: ruleEntityMockObjectEnum returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockObjectEnum() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1065:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1066:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1066:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1067:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectEnumAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1071:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1072:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1072:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1073:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectEnumAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectEnumRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,32,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectEnumAccess().getByEnumKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1093:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1094:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1094:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1095:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectEnumRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockObjectEnumAccess().getUsingResourceLEnumCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectEnum" |
| |
| |
| // $ANTLR start "entryRuleIEntityMockObjectAttribute" |
| // InternalEntityMockDSL.g:1110:1: entryRuleIEntityMockObjectAttribute returns [EObject current=null] : iv_ruleIEntityMockObjectAttribute= ruleIEntityMockObjectAttribute EOF ; |
| public final EObject entryRuleIEntityMockObjectAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleIEntityMockObjectAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1110:67: (iv_ruleIEntityMockObjectAttribute= ruleIEntityMockObjectAttribute EOF ) |
| // InternalEntityMockDSL.g:1111:2: iv_ruleIEntityMockObjectAttribute= ruleIEntityMockObjectAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIEntityMockObjectAttribute=ruleIEntityMockObjectAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIEntityMockObjectAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIEntityMockObjectAttribute" |
| |
| |
| // $ANTLR start "ruleIEntityMockObjectAttribute" |
| // InternalEntityMockDSL.g:1117:1: ruleIEntityMockObjectAttribute returns [EObject current=null] : (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) ; |
| public final EObject ruleIEntityMockObjectAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_EntityMockObjectResourceValue_0 = null; |
| |
| EObject this_EntityMockObjectPlainValue_1 = null; |
| |
| EObject this_EntityMockObjectArrayValue_2 = null; |
| |
| EObject this_EntityMockObjectEmbed_3 = null; |
| |
| EObject this_EntityMockObjectFill_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1123:2: ( (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) ) |
| // InternalEntityMockDSL.g:1124:2: (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) |
| { |
| // InternalEntityMockDSL.g:1124:2: (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) |
| int alt21=5; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==31) ) { |
| int LA21_1 = input.LA(2); |
| |
| if ( (LA21_1==RULE_ID) ) { |
| switch ( input.LA(3) ) { |
| case 33: |
| { |
| alt21=1; |
| } |
| break; |
| case 35: |
| { |
| alt21=3; |
| } |
| break; |
| case 41: |
| { |
| alt21=5; |
| } |
| break; |
| case 25: |
| { |
| alt21=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 21, 3, input); |
| |
| throw nvae; |
| } |
| |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 21, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA21_0==37) ) { |
| alt21=4; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 21, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalEntityMockDSL.g:1125:3: this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeAccess().getEntityMockObjectResourceValueParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockObjectResourceValue_0=ruleEntityMockObjectResourceValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockObjectResourceValue_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:1134:3: this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeAccess().getEntityMockObjectPlainValueParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockObjectPlainValue_1=ruleEntityMockObjectPlainValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockObjectPlainValue_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:1143:3: this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeAccess().getEntityMockObjectArrayValueParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockObjectArrayValue_2=ruleEntityMockObjectArrayValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockObjectArrayValue_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:1152:3: this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeAccess().getEntityMockObjectEmbedParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockObjectEmbed_3=ruleEntityMockObjectEmbed(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockObjectEmbed_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:1161:3: this_EntityMockObjectFill_4= ruleEntityMockObjectFill |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockObjectAttributeAccess().getEntityMockObjectFillParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockObjectFill_4=ruleEntityMockObjectFill(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockObjectFill_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIEntityMockObjectAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectPlainValue" |
| // InternalEntityMockDSL.g:1173:1: entryRuleEntityMockObjectPlainValue returns [EObject current=null] : iv_ruleEntityMockObjectPlainValue= ruleEntityMockObjectPlainValue EOF ; |
| public final EObject entryRuleEntityMockObjectPlainValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectPlainValue = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1173:67: (iv_ruleEntityMockObjectPlainValue= ruleEntityMockObjectPlainValue EOF ) |
| // InternalEntityMockDSL.g:1174:2: iv_ruleEntityMockObjectPlainValue= ruleEntityMockObjectPlainValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectPlainValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectPlainValue=ruleEntityMockObjectPlainValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectPlainValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectPlainValue" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectPlainValue" |
| // InternalEntityMockDSL.g:1180:1: ruleEntityMockObjectPlainValue returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ; |
| public final EObject ruleEntityMockObjectPlainValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token lv_values_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1186:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:1187:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:1187:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:1188:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectPlainValueAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1192:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1193:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1193:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1194:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectPlainValueAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectPlainValueRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,25,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectPlainValueAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1214:3: ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* |
| loop23: |
| do { |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==RULE_STRING) ) { |
| alt23=1; |
| } |
| |
| |
| switch (alt23) { |
| case 1 : |
| // InternalEntityMockDSL.g:1215:4: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:1215:4: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:1216:5: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:1216:5: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:1217:6: lv_values_3_0= RULE_STRING |
| { |
| lv_values_3_0=(Token)match(input,RULE_STRING,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_values_3_0, grammarAccess.getEntityMockObjectPlainValueAccess().getValuesSTRINGTerminalRuleCall_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectPlainValueRule()); |
| } |
| addWithLastConsumed( |
| current, |
| "values", |
| lv_values_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:1233:4: (otherlv_4= ',' )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==26) ) { |
| alt22=1; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalEntityMockDSL.g:1234:5: otherlv_4= ',' |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectPlainValueAccess().getCommaKeyword_3_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop23; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockObjectPlainValueAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectPlainValue" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectResourceValue" |
| // InternalEntityMockDSL.g:1248:1: entryRuleEntityMockObjectResourceValue returns [EObject current=null] : iv_ruleEntityMockObjectResourceValue= ruleEntityMockObjectResourceValue EOF ; |
| public final EObject entryRuleEntityMockObjectResourceValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectResourceValue = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1248:70: (iv_ruleEntityMockObjectResourceValue= ruleEntityMockObjectResourceValue EOF ) |
| // InternalEntityMockDSL.g:1249:2: iv_ruleEntityMockObjectResourceValue= ruleEntityMockObjectResourceValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectResourceValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectResourceValue=ruleEntityMockObjectResourceValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectResourceValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectResourceValue" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectResourceValue" |
| // InternalEntityMockDSL.g:1255:1: ruleEntityMockObjectResourceValue returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'with' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? ) ; |
| public final EObject ruleEntityMockObjectResourceValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1261:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'with' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? ) ) |
| // InternalEntityMockDSL.g:1262:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'with' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:1262:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'with' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? ) |
| // InternalEntityMockDSL.g:1263:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'with' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectResourceValueAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1267:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1268:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1268:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1269:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectResourceValueAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectResourceValueRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,33,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectResourceValueAccess().getWithKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1289:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1290:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1290:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1291:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectResourceValueRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockObjectResourceValueAccess().getResourceEnumEntityMockObjectEnumCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:1302:3: (otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==34) ) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalEntityMockDSL.g:1303:4: otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) |
| { |
| otherlv_4=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectResourceValueAccess().getFullStopKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1307:4: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1308:5: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1308:5: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:1309:6: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectResourceValueRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockObjectResourceValueAccess().getResourceAttributeEntityMockResourceAttributeCrossReference_4_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectResourceValue" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectArrayValue" |
| // InternalEntityMockDSL.g:1325:1: entryRuleEntityMockObjectArrayValue returns [EObject current=null] : iv_ruleEntityMockObjectArrayValue= ruleEntityMockObjectArrayValue EOF ; |
| public final EObject entryRuleEntityMockObjectArrayValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectArrayValue = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1325:67: (iv_ruleEntityMockObjectArrayValue= ruleEntityMockObjectArrayValue EOF ) |
| // InternalEntityMockDSL.g:1326:2: iv_ruleEntityMockObjectArrayValue= ruleEntityMockObjectArrayValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectArrayValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectArrayValue=ruleEntityMockObjectArrayValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectArrayValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectArrayValue" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectArrayValue" |
| // InternalEntityMockDSL.g:1332:1: ruleEntityMockObjectArrayValue returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'switchOn' ( (otherlv_3= RULE_ID ) ) otherlv_4= '{' ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* otherlv_6= '}' ) ; |
| public final EObject ruleEntityMockObjectArrayValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_items_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1338:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'switchOn' ( (otherlv_3= RULE_ID ) ) otherlv_4= '{' ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* otherlv_6= '}' ) ) |
| // InternalEntityMockDSL.g:1339:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'switchOn' ( (otherlv_3= RULE_ID ) ) otherlv_4= '{' ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* otherlv_6= '}' ) |
| { |
| // InternalEntityMockDSL.g:1339:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'switchOn' ( (otherlv_3= RULE_ID ) ) otherlv_4= '{' ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* otherlv_6= '}' ) |
| // InternalEntityMockDSL.g:1340:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'switchOn' ( (otherlv_3= RULE_ID ) ) otherlv_4= '{' ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* otherlv_6= '}' |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectArrayValueAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1344:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1345:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1345:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1346:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectArrayValueAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectArrayValueRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,35,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectArrayValueAccess().getSwitchOnKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1366:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1367:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1367:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1368:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectArrayValueRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockObjectArrayValueAccess().getEnumerationEntityMockObjectEnumCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,14,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectArrayValueAccess().getLeftCurlyBracketKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:1383:3: ( (lv_items_5_0= ruleEntityMockObjectItemValue ) )* |
| loop25: |
| do { |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==36) ) { |
| alt25=1; |
| } |
| |
| |
| switch (alt25) { |
| case 1 : |
| // InternalEntityMockDSL.g:1384:4: (lv_items_5_0= ruleEntityMockObjectItemValue ) |
| { |
| // InternalEntityMockDSL.g:1384:4: (lv_items_5_0= ruleEntityMockObjectItemValue ) |
| // InternalEntityMockDSL.g:1385:5: lv_items_5_0= ruleEntityMockObjectItemValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectArrayValueAccess().getItemsEntityMockObjectItemValueParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_33); |
| lv_items_5_0=ruleEntityMockObjectItemValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectArrayValueRule()); |
| } |
| add( |
| current, |
| "items", |
| lv_items_5_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjectItemValue"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop25; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEntityMockObjectArrayValueAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectArrayValue" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectItemValue" |
| // InternalEntityMockDSL.g:1410:1: entryRuleEntityMockObjectItemValue returns [EObject current=null] : iv_ruleEntityMockObjectItemValue= ruleEntityMockObjectItemValue EOF ; |
| public final EObject entryRuleEntityMockObjectItemValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectItemValue = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1410:66: (iv_ruleEntityMockObjectItemValue= ruleEntityMockObjectItemValue EOF ) |
| // InternalEntityMockDSL.g:1411:2: iv_ruleEntityMockObjectItemValue= ruleEntityMockObjectItemValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectItemValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectItemValue=ruleEntityMockObjectItemValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectItemValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectItemValue" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectItemValue" |
| // InternalEntityMockDSL.g:1417:1: ruleEntityMockObjectItemValue returns [EObject current=null] : (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ; |
| public final EObject ruleEntityMockObjectItemValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_values_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1423:2: ( (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:1424:2: (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:1424:2: (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:1425:3: otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' |
| { |
| otherlv_0=(Token)match(input,36,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectItemValueAccess().getWhenKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1429:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1430:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1430:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:1431:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectItemValueRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockObjectItemValueAccess().getDatarowLEnumLiteralCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,25,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectItemValueAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1446:3: ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* |
| loop27: |
| do { |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==RULE_STRING) ) { |
| alt27=1; |
| } |
| |
| |
| switch (alt27) { |
| case 1 : |
| // InternalEntityMockDSL.g:1447:4: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:1447:4: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:1448:5: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:1448:5: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:1449:6: lv_values_3_0= RULE_STRING |
| { |
| lv_values_3_0=(Token)match(input,RULE_STRING,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_values_3_0, grammarAccess.getEntityMockObjectItemValueAccess().getValuesSTRINGTerminalRuleCall_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectItemValueRule()); |
| } |
| addWithLastConsumed( |
| current, |
| "values", |
| lv_values_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:1465:4: (otherlv_4= ',' )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==26) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalEntityMockDSL.g:1466:5: otherlv_4= ',' |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectItemValueAccess().getCommaKeyword_3_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop27; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockObjectItemValueAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectItemValue" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectEmbed" |
| // InternalEntityMockDSL.g:1480:1: entryRuleEntityMockObjectEmbed returns [EObject current=null] : iv_ruleEntityMockObjectEmbed= ruleEntityMockObjectEmbed EOF ; |
| public final EObject entryRuleEntityMockObjectEmbed() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectEmbed = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1480:62: (iv_ruleEntityMockObjectEmbed= ruleEntityMockObjectEmbed EOF ) |
| // InternalEntityMockDSL.g:1481:2: iv_ruleEntityMockObjectEmbed= ruleEntityMockObjectEmbed EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectEmbedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectEmbed=ruleEntityMockObjectEmbed(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectEmbed; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectEmbed" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectEmbed" |
| // InternalEntityMockDSL.g:1487:1: ruleEntityMockObjectEmbed returns [EObject current=null] : ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockObjectEmbed() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_name_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1493:2: ( ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1494:2: ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1494:2: ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1495:3: () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:1495:3: () |
| // InternalEntityMockDSL.g:1496:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockObjectEmbedAccess().getEntityMockObjectEmbedAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,37,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockObjectEmbedAccess().getEmbedKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:1506:3: ( (lv_name_2_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1507:4: (lv_name_2_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1507:4: (lv_name_2_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1508:5: lv_name_2_0= RULE_ID |
| { |
| lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_2_0, grammarAccess.getEntityMockObjectEmbedAccess().getNameIDTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectEmbedRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,38,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockObjectEmbedAccess().getDefinedAsKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:1528:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1529:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1529:4: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:1530:5: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectEmbedRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectEmbedAccess().getObjectEntityMockObjectCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectEmbed" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectFunction" |
| // InternalEntityMockDSL.g:1545:1: entryRuleEntityMockObjectFunction returns [EObject current=null] : iv_ruleEntityMockObjectFunction= ruleEntityMockObjectFunction EOF ; |
| public final EObject entryRuleEntityMockObjectFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectFunction = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1545:65: (iv_ruleEntityMockObjectFunction= ruleEntityMockObjectFunction EOF ) |
| // InternalEntityMockDSL.g:1546:2: iv_ruleEntityMockObjectFunction= ruleEntityMockObjectFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectFunction=ruleEntityMockObjectFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectFunction" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectFunction" |
| // InternalEntityMockDSL.g:1552:1: ruleEntityMockObjectFunction returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'calculateAs' ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) otherlv_4= 'basedOn' otherlv_5= '(' ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? otherlv_9= ')' ( (lv_body_10_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleEntityMockObjectFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| EObject lv_oftype_3_0 = null; |
| |
| EObject lv_params_6_0 = null; |
| |
| EObject lv_params_8_0 = null; |
| |
| EObject lv_body_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1558:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'calculateAs' ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) otherlv_4= 'basedOn' otherlv_5= '(' ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? otherlv_9= ')' ( (lv_body_10_0= ruleXBlockExpression ) ) ) ) |
| // InternalEntityMockDSL.g:1559:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'calculateAs' ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) otherlv_4= 'basedOn' otherlv_5= '(' ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? otherlv_9= ')' ( (lv_body_10_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:1559:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'calculateAs' ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) otherlv_4= 'basedOn' otherlv_5= '(' ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? otherlv_9= ')' ( (lv_body_10_0= ruleXBlockExpression ) ) ) |
| // InternalEntityMockDSL.g:1560:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'calculateAs' ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) otherlv_4= 'basedOn' otherlv_5= '(' ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? otherlv_9= ')' ( (lv_body_10_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectFunctionAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1564:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1565:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1565:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1566:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectFunctionAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,39,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectFunctionAccess().getCalculateAsKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1586:3: ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) |
| // InternalEntityMockDSL.g:1587:4: (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) |
| { |
| // InternalEntityMockDSL.g:1587:4: (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) |
| // InternalEntityMockDSL.g:1588:5: lv_oftype_3_0= ruleJvmParameterizedTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionAccess().getOftypeJvmParameterizedTypeReferenceParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_36); |
| lv_oftype_3_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| set( |
| current, |
| "oftype", |
| lv_oftype_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,40,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockObjectFunctionAccess().getBasedOnKeyword_4()); |
| |
| } |
| otherlv_5=(Token)match(input,25,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockObjectFunctionAccess().getLeftParenthesisKeyword_5()); |
| |
| } |
| // InternalEntityMockDSL.g:1613:3: ( ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==RULE_ID||LA29_0==25||LA29_0==116) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalEntityMockDSL.g:1614:4: ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:1614:4: ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) |
| // InternalEntityMockDSL.g:1615:5: (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:1615:5: (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) |
| // InternalEntityMockDSL.g:1616:6: lv_params_6_0= ruleEntityMockObjectFunctionParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionAccess().getParamsEntityMockObjectFunctionParameterParserRuleCall_6_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_params_6_0=ruleEntityMockObjectFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_6_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjectFunctionParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:1633:4: (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==26) ) { |
| alt28=1; |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalEntityMockDSL.g:1634:5: otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) |
| { |
| otherlv_7=(Token)match(input,26,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockObjectFunctionAccess().getCommaKeyword_6_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1638:5: ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) |
| // InternalEntityMockDSL.g:1639:6: (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:1639:6: (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) |
| // InternalEntityMockDSL.g:1640:7: lv_params_8_0= ruleEntityMockObjectFunctionParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionAccess().getParamsEntityMockObjectFunctionParameterParserRuleCall_6_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_params_8_0=ruleEntityMockObjectFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_8_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockObjectFunctionParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop28; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_9=(Token)match(input,27,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getEntityMockObjectFunctionAccess().getRightParenthesisKeyword_7()); |
| |
| } |
| // InternalEntityMockDSL.g:1663:3: ( (lv_body_10_0= ruleXBlockExpression ) ) |
| // InternalEntityMockDSL.g:1664:4: (lv_body_10_0= ruleXBlockExpression ) |
| { |
| // InternalEntityMockDSL.g:1664:4: (lv_body_10_0= ruleXBlockExpression ) |
| // InternalEntityMockDSL.g:1665:5: lv_body_10_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionAccess().getBodyXBlockExpressionParserRuleCall_8_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_10_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFunctionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_10_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectFunction" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectFunctionParameter" |
| // InternalEntityMockDSL.g:1686:1: entryRuleEntityMockObjectFunctionParameter returns [EObject current=null] : iv_ruleEntityMockObjectFunctionParameter= ruleEntityMockObjectFunctionParameter EOF ; |
| public final EObject entryRuleEntityMockObjectFunctionParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectFunctionParameter = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1686:74: (iv_ruleEntityMockObjectFunctionParameter= ruleEntityMockObjectFunctionParameter EOF ) |
| // InternalEntityMockDSL.g:1687:2: iv_ruleEntityMockObjectFunctionParameter= ruleEntityMockObjectFunctionParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectFunctionParameter=ruleEntityMockObjectFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectFunctionParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectFunctionParameter" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectFunctionParameter" |
| // InternalEntityMockDSL.g:1693:1: ruleEntityMockObjectFunctionParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockObjectFunctionParameter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_parameterType_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1699:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1700:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1700:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1701:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:1701:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:1702:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:1702:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:1703:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFunctionParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFunctionParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:1720:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1721:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1721:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:1722:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectFunctionParameterRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockObjectFunctionParameterAccess().getNameIEntityMockObjectUsableCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectFunctionParameter" |
| |
| |
| // $ANTLR start "entryRuleEntityMockObjectFill" |
| // InternalEntityMockDSL.g:1737:1: entryRuleEntityMockObjectFill returns [EObject current=null] : iv_ruleEntityMockObjectFill= ruleEntityMockObjectFill EOF ; |
| public final EObject entryRuleEntityMockObjectFill() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockObjectFill = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1737:61: (iv_ruleEntityMockObjectFill= ruleEntityMockObjectFill EOF ) |
| // InternalEntityMockDSL.g:1738:2: iv_ruleEntityMockObjectFill= ruleEntityMockObjectFill EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockObjectFillRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockObjectFill=ruleEntityMockObjectFill(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockObjectFill; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockObjectFill" |
| |
| |
| // $ANTLR start "ruleEntityMockObjectFill" |
| // InternalEntityMockDSL.g:1744:1: ruleEntityMockObjectFill returns [EObject current=null] : (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ; |
| public final EObject ruleEntityMockObjectFill() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| EObject lv_fillerType_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1750:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ) |
| // InternalEntityMockDSL.g:1751:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| { |
| // InternalEntityMockDSL.g:1751:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| // InternalEntityMockDSL.g:1752:3: otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockObjectFillAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1756:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1757:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1757:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1758:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockObjectFillAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockObjectFillRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,41,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockObjectFillAccess().getRandomizeKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:1778:3: ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| // InternalEntityMockDSL.g:1779:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| { |
| // InternalEntityMockDSL.g:1779:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| // InternalEntityMockDSL.g:1780:5: lv_fillerType_3_0= rulePropertyFillerType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockObjectFillAccess().getFillerTypePropertyFillerTypeParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_fillerType_3_0=rulePropertyFillerType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockObjectFillRule()); |
| } |
| set( |
| current, |
| "fillerType", |
| lv_fillerType_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.PropertyFillerType"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockObjectFill" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerType" |
| // InternalEntityMockDSL.g:1801:1: entryRulePropertyFillerType returns [EObject current=null] : iv_rulePropertyFillerType= rulePropertyFillerType EOF ; |
| public final EObject entryRulePropertyFillerType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerType = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1801:59: (iv_rulePropertyFillerType= rulePropertyFillerType EOF ) |
| // InternalEntityMockDSL.g:1802:2: iv_rulePropertyFillerType= rulePropertyFillerType EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerTypeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerType=rulePropertyFillerType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerType; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerType" |
| |
| |
| // $ANTLR start "rulePropertyFillerType" |
| // InternalEntityMockDSL.g:1808:1: rulePropertyFillerType returns [EObject current=null] : (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange | this_PropertyFillerBoolean_3= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_4= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_5= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_6= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_7= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_8= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_9= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_10= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_11= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_12= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_13= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_14= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_15= rulePropertyFillerUnsignedIntegerRandom ) ; |
| public final EObject rulePropertyFillerType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PropertyFillerDateFuture_0 = null; |
| |
| EObject this_PropertyFillerDatePast_1 = null; |
| |
| EObject this_PropertyFillerDateRange_2 = null; |
| |
| EObject this_PropertyFillerBoolean_3 = null; |
| |
| EObject this_PropertyFillerSignedDoubleRange_4 = null; |
| |
| EObject this_PropertyFillerSignedDoubleRandom_5 = null; |
| |
| EObject this_PropertyFillerSignedIntegerRange_6 = null; |
| |
| EObject this_PropertyFillerSignedIntegerRandom_7 = null; |
| |
| EObject this_PropertyFillerTextRandom_8 = null; |
| |
| EObject this_PropertyFillerTextParagraphs_9 = null; |
| |
| EObject this_PropertyFillerTextSentences_10 = null; |
| |
| EObject this_PropertyFillerTextWords_11 = null; |
| |
| EObject this_PropertyFillerUnsignedDoubleRange_12 = null; |
| |
| EObject this_PropertyFillerUnsignedDoubleRandom_13 = null; |
| |
| EObject this_PropertyFillerUnsignedIntegerRange_14 = null; |
| |
| EObject this_PropertyFillerUnsignedIntegerRandom_15 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1814:2: ( (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange | this_PropertyFillerBoolean_3= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_4= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_5= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_6= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_7= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_8= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_9= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_10= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_11= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_12= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_13= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_14= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_15= rulePropertyFillerUnsignedIntegerRandom ) ) |
| // InternalEntityMockDSL.g:1815:2: (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange | this_PropertyFillerBoolean_3= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_4= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_5= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_6= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_7= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_8= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_9= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_10= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_11= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_12= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_13= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_14= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_15= rulePropertyFillerUnsignedIntegerRandom ) |
| { |
| // InternalEntityMockDSL.g:1815:2: (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange | this_PropertyFillerBoolean_3= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_4= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_5= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_6= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_7= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_8= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_9= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_10= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_11= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_12= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_13= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_14= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_15= rulePropertyFillerUnsignedIntegerRandom ) |
| int alt30=16; |
| switch ( input.LA(1) ) { |
| case 42: |
| { |
| alt30=1; |
| } |
| break; |
| case 44: |
| { |
| alt30=2; |
| } |
| break; |
| case 46: |
| { |
| alt30=3; |
| } |
| break; |
| case 45: |
| { |
| alt30=4; |
| } |
| break; |
| case 49: |
| { |
| alt30=5; |
| } |
| break; |
| case 52: |
| { |
| alt30=6; |
| } |
| break; |
| case 53: |
| { |
| alt30=7; |
| } |
| break; |
| case 54: |
| { |
| alt30=8; |
| } |
| break; |
| case 55: |
| { |
| alt30=9; |
| } |
| break; |
| case 56: |
| { |
| alt30=10; |
| } |
| break; |
| case 57: |
| { |
| alt30=11; |
| } |
| break; |
| case 58: |
| { |
| alt30=12; |
| } |
| break; |
| case 59: |
| { |
| alt30=13; |
| } |
| break; |
| case 60: |
| { |
| alt30=14; |
| } |
| break; |
| case 61: |
| { |
| alt30=15; |
| } |
| break; |
| case 62: |
| { |
| alt30=16; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 30, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt30) { |
| case 1 : |
| // InternalEntityMockDSL.g:1816:3: this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerDateFutureParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerDateFuture_0=rulePropertyFillerDateFuture(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerDateFuture_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:1825:3: this_PropertyFillerDatePast_1= rulePropertyFillerDatePast |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerDatePastParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerDatePast_1=rulePropertyFillerDatePast(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerDatePast_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:1834:3: this_PropertyFillerDateRange_2= rulePropertyFillerDateRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerDateRangeParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerDateRange_2=rulePropertyFillerDateRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerDateRange_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:1843:3: this_PropertyFillerBoolean_3= rulePropertyFillerBoolean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerBooleanParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerBoolean_3=rulePropertyFillerBoolean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerBoolean_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:1852:3: this_PropertyFillerSignedDoubleRange_4= rulePropertyFillerSignedDoubleRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedDoubleRangeParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedDoubleRange_4=rulePropertyFillerSignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedDoubleRange_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:1861:3: this_PropertyFillerSignedDoubleRandom_5= rulePropertyFillerSignedDoubleRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedDoubleRandomParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedDoubleRandom_5=rulePropertyFillerSignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedDoubleRandom_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:1870:3: this_PropertyFillerSignedIntegerRange_6= rulePropertyFillerSignedIntegerRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedIntegerRangeParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedIntegerRange_6=rulePropertyFillerSignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedIntegerRange_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalEntityMockDSL.g:1879:3: this_PropertyFillerSignedIntegerRandom_7= rulePropertyFillerSignedIntegerRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedIntegerRandomParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedIntegerRandom_7=rulePropertyFillerSignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedIntegerRandom_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalEntityMockDSL.g:1888:3: this_PropertyFillerTextRandom_8= rulePropertyFillerTextRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextRandomParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextRandom_8=rulePropertyFillerTextRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextRandom_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalEntityMockDSL.g:1897:3: this_PropertyFillerTextParagraphs_9= rulePropertyFillerTextParagraphs |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextParagraphsParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextParagraphs_9=rulePropertyFillerTextParagraphs(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextParagraphs_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalEntityMockDSL.g:1906:3: this_PropertyFillerTextSentences_10= rulePropertyFillerTextSentences |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextSentencesParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextSentences_10=rulePropertyFillerTextSentences(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextSentences_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalEntityMockDSL.g:1915:3: this_PropertyFillerTextWords_11= rulePropertyFillerTextWords |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextWordsParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextWords_11=rulePropertyFillerTextWords(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextWords_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalEntityMockDSL.g:1924:3: this_PropertyFillerUnsignedDoubleRange_12= rulePropertyFillerUnsignedDoubleRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedDoubleRangeParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedDoubleRange_12=rulePropertyFillerUnsignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedDoubleRange_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalEntityMockDSL.g:1933:3: this_PropertyFillerUnsignedDoubleRandom_13= rulePropertyFillerUnsignedDoubleRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedDoubleRandomParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedDoubleRandom_13=rulePropertyFillerUnsignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedDoubleRandom_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 15 : |
| // InternalEntityMockDSL.g:1942:3: this_PropertyFillerUnsignedIntegerRange_14= rulePropertyFillerUnsignedIntegerRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedIntegerRangeParserRuleCall_14()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedIntegerRange_14=rulePropertyFillerUnsignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedIntegerRange_14; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 16 : |
| // InternalEntityMockDSL.g:1951:3: this_PropertyFillerUnsignedIntegerRandom_15= rulePropertyFillerUnsignedIntegerRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedIntegerRandomParserRuleCall_15()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedIntegerRandom_15=rulePropertyFillerUnsignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedIntegerRandom_15; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerType" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerDateFuture" |
| // InternalEntityMockDSL.g:1963:1: entryRulePropertyFillerDateFuture returns [EObject current=null] : iv_rulePropertyFillerDateFuture= rulePropertyFillerDateFuture EOF ; |
| public final EObject entryRulePropertyFillerDateFuture() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerDateFuture = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1963:65: (iv_rulePropertyFillerDateFuture= rulePropertyFillerDateFuture EOF ) |
| // InternalEntityMockDSL.g:1964:2: iv_rulePropertyFillerDateFuture= rulePropertyFillerDateFuture EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerDateFutureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerDateFuture=rulePropertyFillerDateFuture(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerDateFuture; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerDateFuture" |
| |
| |
| // $ANTLR start "rulePropertyFillerDateFuture" |
| // InternalEntityMockDSL.g:1970:1: rulePropertyFillerDateFuture returns [EObject current=null] : (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ; |
| public final EObject rulePropertyFillerDateFuture() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_dateFutureYears_1_0=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1976:2: ( (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ) |
| // InternalEntityMockDSL.g:1977:2: (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| { |
| // InternalEntityMockDSL.g:1977:2: (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| // InternalEntityMockDSL.g:1978:3: otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' |
| { |
| otherlv_0=(Token)match(input,42,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerDateFutureAccess().getFutureKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:1982:3: ( (lv_dateFutureYears_1_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:1983:4: (lv_dateFutureYears_1_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:1983:4: (lv_dateFutureYears_1_0= RULE_INT ) |
| // InternalEntityMockDSL.g:1984:5: lv_dateFutureYears_1_0= RULE_INT |
| { |
| lv_dateFutureYears_1_0=(Token)match(input,RULE_INT,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dateFutureYears_1_0, grammarAccess.getPropertyFillerDateFutureAccess().getDateFutureYearsINTTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerDateFutureRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dateFutureYears", |
| lv_dateFutureYears_1_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyFillerDateFutureAccess().getYearsKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerDateFuture" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerDatePast" |
| // InternalEntityMockDSL.g:2008:1: entryRulePropertyFillerDatePast returns [EObject current=null] : iv_rulePropertyFillerDatePast= rulePropertyFillerDatePast EOF ; |
| public final EObject entryRulePropertyFillerDatePast() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerDatePast = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2008:63: (iv_rulePropertyFillerDatePast= rulePropertyFillerDatePast EOF ) |
| // InternalEntityMockDSL.g:2009:2: iv_rulePropertyFillerDatePast= rulePropertyFillerDatePast EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerDatePastRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerDatePast=rulePropertyFillerDatePast(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerDatePast; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerDatePast" |
| |
| |
| // $ANTLR start "rulePropertyFillerDatePast" |
| // InternalEntityMockDSL.g:2015:1: rulePropertyFillerDatePast returns [EObject current=null] : (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ; |
| public final EObject rulePropertyFillerDatePast() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_datePastYears_1_0=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2021:2: ( (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ) |
| // InternalEntityMockDSL.g:2022:2: (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| { |
| // InternalEntityMockDSL.g:2022:2: (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| // InternalEntityMockDSL.g:2023:3: otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' |
| { |
| otherlv_0=(Token)match(input,44,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerDatePastAccess().getPastKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2027:3: ( (lv_datePastYears_1_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2028:4: (lv_datePastYears_1_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2028:4: (lv_datePastYears_1_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2029:5: lv_datePastYears_1_0= RULE_INT |
| { |
| lv_datePastYears_1_0=(Token)match(input,RULE_INT,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_datePastYears_1_0, grammarAccess.getPropertyFillerDatePastAccess().getDatePastYearsINTTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerDatePastRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "datePastYears", |
| lv_datePastYears_1_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyFillerDatePastAccess().getYearsKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerDatePast" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerBoolean" |
| // InternalEntityMockDSL.g:2053:1: entryRulePropertyFillerBoolean returns [EObject current=null] : iv_rulePropertyFillerBoolean= rulePropertyFillerBoolean EOF ; |
| public final EObject entryRulePropertyFillerBoolean() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerBoolean = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2053:62: (iv_rulePropertyFillerBoolean= rulePropertyFillerBoolean EOF ) |
| // InternalEntityMockDSL.g:2054:2: iv_rulePropertyFillerBoolean= rulePropertyFillerBoolean EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerBooleanRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerBoolean=rulePropertyFillerBoolean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerBoolean; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerBoolean" |
| |
| |
| // $ANTLR start "rulePropertyFillerBoolean" |
| // InternalEntityMockDSL.g:2060:1: rulePropertyFillerBoolean returns [EObject current=null] : ( () otherlv_1= 'boolean' ) ; |
| public final EObject rulePropertyFillerBoolean() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2066:2: ( ( () otherlv_1= 'boolean' ) ) |
| // InternalEntityMockDSL.g:2067:2: ( () otherlv_1= 'boolean' ) |
| { |
| // InternalEntityMockDSL.g:2067:2: ( () otherlv_1= 'boolean' ) |
| // InternalEntityMockDSL.g:2068:3: () otherlv_1= 'boolean' |
| { |
| // InternalEntityMockDSL.g:2068:3: () |
| // InternalEntityMockDSL.g:2069:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerBooleanAccess().getPropertyFillerBooleanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,45,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerBooleanAccess().getBooleanKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerBoolean" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerDateRange" |
| // InternalEntityMockDSL.g:2083:1: entryRulePropertyFillerDateRange returns [EObject current=null] : iv_rulePropertyFillerDateRange= rulePropertyFillerDateRange EOF ; |
| public final EObject entryRulePropertyFillerDateRange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerDateRange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2083:64: (iv_rulePropertyFillerDateRange= rulePropertyFillerDateRange EOF ) |
| // InternalEntityMockDSL.g:2084:2: iv_rulePropertyFillerDateRange= rulePropertyFillerDateRange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerDateRangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerDateRange=rulePropertyFillerDateRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerDateRange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerDateRange" |
| |
| |
| // $ANTLR start "rulePropertyFillerDateRange" |
| // InternalEntityMockDSL.g:2090:1: rulePropertyFillerDateRange returns [EObject current=null] : (otherlv_0= 'dateRange' otherlv_1= 'from' ( (lv_dateBeginYears_2_0= ruleSINT ) ) otherlv_3= 'until' ( (lv_dateEndYears_4_0= ruleSINT ) ) otherlv_5= 'years' ) ; |
| public final EObject rulePropertyFillerDateRange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_dateBeginYears_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_dateEndYears_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2096:2: ( (otherlv_0= 'dateRange' otherlv_1= 'from' ( (lv_dateBeginYears_2_0= ruleSINT ) ) otherlv_3= 'until' ( (lv_dateEndYears_4_0= ruleSINT ) ) otherlv_5= 'years' ) ) |
| // InternalEntityMockDSL.g:2097:2: (otherlv_0= 'dateRange' otherlv_1= 'from' ( (lv_dateBeginYears_2_0= ruleSINT ) ) otherlv_3= 'until' ( (lv_dateEndYears_4_0= ruleSINT ) ) otherlv_5= 'years' ) |
| { |
| // InternalEntityMockDSL.g:2097:2: (otherlv_0= 'dateRange' otherlv_1= 'from' ( (lv_dateBeginYears_2_0= ruleSINT ) ) otherlv_3= 'until' ( (lv_dateEndYears_4_0= ruleSINT ) ) otherlv_5= 'years' ) |
| // InternalEntityMockDSL.g:2098:3: otherlv_0= 'dateRange' otherlv_1= 'from' ( (lv_dateBeginYears_2_0= ruleSINT ) ) otherlv_3= 'until' ( (lv_dateEndYears_4_0= ruleSINT ) ) otherlv_5= 'years' |
| { |
| otherlv_0=(Token)match(input,46,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerDateRangeAccess().getDateRangeKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,47,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerDateRangeAccess().getFromKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2106:3: ( (lv_dateBeginYears_2_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2107:4: (lv_dateBeginYears_2_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2107:4: (lv_dateBeginYears_2_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2108:5: lv_dateBeginYears_2_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerDateRangeAccess().getDateBeginYearsSINTParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_dateBeginYears_2_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerDateRangeRule()); |
| } |
| set( |
| current, |
| "dateBeginYears", |
| lv_dateBeginYears_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,48,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerDateRangeAccess().getUntilKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:2129:3: ( (lv_dateEndYears_4_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2130:4: (lv_dateEndYears_4_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2130:4: (lv_dateEndYears_4_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2131:5: lv_dateEndYears_4_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerDateRangeAccess().getDateEndYearsSINTParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_42); |
| lv_dateEndYears_4_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerDateRangeRule()); |
| } |
| set( |
| current, |
| "dateEndYears", |
| lv_dateEndYears_4_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_5=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPropertyFillerDateRangeAccess().getYearsKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerDateRange" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerSignedDoubleRange" |
| // InternalEntityMockDSL.g:2156:1: entryRulePropertyFillerSignedDoubleRange returns [EObject current=null] : iv_rulePropertyFillerSignedDoubleRange= rulePropertyFillerSignedDoubleRange EOF ; |
| public final EObject entryRulePropertyFillerSignedDoubleRange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerSignedDoubleRange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2156:72: (iv_rulePropertyFillerSignedDoubleRange= rulePropertyFillerSignedDoubleRange EOF ) |
| // InternalEntityMockDSL.g:2157:2: iv_rulePropertyFillerSignedDoubleRange= rulePropertyFillerSignedDoubleRange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerSignedDoubleRange=rulePropertyFillerSignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerSignedDoubleRange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerSignedDoubleRange" |
| |
| |
| // $ANTLR start "rulePropertyFillerSignedDoubleRange" |
| // InternalEntityMockDSL.g:2163:1: rulePropertyFillerSignedDoubleRange returns [EObject current=null] : (otherlv_0= 'numberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) ; |
| public final EObject rulePropertyFillerSignedDoubleRange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_decimals_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| AntlrDatatypeRuleToken lv_beginRange_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_endRange_5_0 = null; |
| |
| AntlrDatatypeRuleToken lv_rounded_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2169:2: ( (otherlv_0= 'numberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) ) |
| // InternalEntityMockDSL.g:2170:2: (otherlv_0= 'numberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:2170:2: (otherlv_0= 'numberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) |
| // InternalEntityMockDSL.g:2171:3: otherlv_0= 'numberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| { |
| otherlv_0=(Token)match(input,49,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getNumberRangeKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,47,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getFromKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2179:3: ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==RULE_ID||LA33_0==RULE_INT||LA33_0==48||LA33_0==77) ) { |
| alt33=1; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalEntityMockDSL.g:2180:4: ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2180:4: ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? |
| int alt31=3; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==RULE_INT||LA31_0==77) ) { |
| alt31=1; |
| } |
| else if ( (LA31_0==RULE_ID) ) { |
| alt31=2; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalEntityMockDSL.g:2181:5: ( (lv_beginRange_2_0= ruleSignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2181:5: ( (lv_beginRange_2_0= ruleSignedNumber ) ) |
| // InternalEntityMockDSL.g:2182:6: (lv_beginRange_2_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2182:6: (lv_beginRange_2_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2183:7: lv_beginRange_2_0= ruleSignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getBeginRangeSignedNumberParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_beginRange_2_0=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "beginRange", |
| lv_beginRange_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2201:5: ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2201:5: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2202:6: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2202:6: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:2203:7: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getBeginRangeRefLEntityAttributeCrossReference_2_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,48,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getUntilKeyword_2_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2219:4: ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==RULE_INT||LA32_0==77) ) { |
| alt32=1; |
| } |
| else if ( (LA32_0==RULE_ID) ) { |
| alt32=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 32, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalEntityMockDSL.g:2220:5: ( (lv_endRange_5_0= ruleSignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2220:5: ( (lv_endRange_5_0= ruleSignedNumber ) ) |
| // InternalEntityMockDSL.g:2221:6: (lv_endRange_5_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2221:6: (lv_endRange_5_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2222:7: lv_endRange_5_0= ruleSignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getEndRangeSignedNumberParserRuleCall_2_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| lv_endRange_5_0=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "endRange", |
| lv_endRange_5_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2240:5: ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2240:5: ( (otherlv_6= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2241:6: (otherlv_6= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2241:6: (otherlv_6= RULE_ID ) |
| // InternalEntityMockDSL.g:2242:7: otherlv_6= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| |
| } |
| otherlv_6=(Token)match(input,RULE_ID,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getEndRangeRefLEntityAttributeCrossReference_2_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_7=(Token)match(input,33,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getWithKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:2259:3: ( (lv_decimals_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2260:4: (lv_decimals_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2260:4: (lv_decimals_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2261:5: lv_decimals_8_0= RULE_INT |
| { |
| lv_decimals_8_0=(Token)match(input,RULE_INT,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_decimals_8_0, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getDecimalsINTTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "decimals", |
| lv_decimals_8_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,50,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getDecimalsKeyword_5()); |
| |
| } |
| // InternalEntityMockDSL.g:2281:3: (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==51) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalEntityMockDSL.g:2282:4: otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| { |
| otherlv_10=(Token)match(input,51,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getRoundToKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2286:4: ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2287:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2287:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2288:6: lv_rounded_11_0= ruleUnsignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRangeAccess().getRoundedUnsignedNumberParserRuleCall_6_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_rounded_11_0=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "rounded", |
| lv_rounded_11_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerSignedDoubleRange" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerSignedDoubleRandom" |
| // InternalEntityMockDSL.g:2310:1: entryRulePropertyFillerSignedDoubleRandom returns [EObject current=null] : iv_rulePropertyFillerSignedDoubleRandom= rulePropertyFillerSignedDoubleRandom EOF ; |
| public final EObject entryRulePropertyFillerSignedDoubleRandom() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerSignedDoubleRandom = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2310:73: (iv_rulePropertyFillerSignedDoubleRandom= rulePropertyFillerSignedDoubleRandom EOF ) |
| // InternalEntityMockDSL.g:2311:2: iv_rulePropertyFillerSignedDoubleRandom= rulePropertyFillerSignedDoubleRandom EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRandomRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerSignedDoubleRandom=rulePropertyFillerSignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerSignedDoubleRandom; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerSignedDoubleRandom" |
| |
| |
| // $ANTLR start "rulePropertyFillerSignedDoubleRandom" |
| // InternalEntityMockDSL.g:2317:1: rulePropertyFillerSignedDoubleRandom returns [EObject current=null] : (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) ; |
| public final EObject rulePropertyFillerSignedDoubleRandom() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| AntlrDatatypeRuleToken lv_items_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2323:2: ( (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2324:2: (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2324:2: (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2325:3: otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' |
| { |
| otherlv_0=(Token)match(input,52,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerSignedDoubleRandomAccess().getNumberPickKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,25,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerSignedDoubleRandomAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2333:3: ( (lv_items_2_0= ruleSignedNumber ) )+ |
| int cnt35=0; |
| loop35: |
| do { |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==RULE_INT||LA35_0==77) ) { |
| alt35=1; |
| } |
| |
| |
| switch (alt35) { |
| case 1 : |
| // InternalEntityMockDSL.g:2334:4: (lv_items_2_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2334:4: (lv_items_2_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2335:5: lv_items_2_0= ruleSignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedDoubleRandomAccess().getItemsSignedNumberParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_items_2_0=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedDoubleRandomRule()); |
| } |
| add( |
| current, |
| "items", |
| lv_items_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt35 >= 1 ) break loop35; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(35, input); |
| throw eee; |
| } |
| cnt35++; |
| } while (true); |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerSignedDoubleRandomAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerSignedDoubleRandom" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerSignedIntegerRange" |
| // InternalEntityMockDSL.g:2360:1: entryRulePropertyFillerSignedIntegerRange returns [EObject current=null] : iv_rulePropertyFillerSignedIntegerRange= rulePropertyFillerSignedIntegerRange EOF ; |
| public final EObject entryRulePropertyFillerSignedIntegerRange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerSignedIntegerRange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2360:73: (iv_rulePropertyFillerSignedIntegerRange= rulePropertyFillerSignedIntegerRange EOF ) |
| // InternalEntityMockDSL.g:2361:2: iv_rulePropertyFillerSignedIntegerRange= rulePropertyFillerSignedIntegerRange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerSignedIntegerRange=rulePropertyFillerSignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerSignedIntegerRange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerSignedIntegerRange" |
| |
| |
| // $ANTLR start "rulePropertyFillerSignedIntegerRange" |
| // InternalEntityMockDSL.g:2367:1: rulePropertyFillerSignedIntegerRange returns [EObject current=null] : ( () otherlv_1= 'integerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) ; |
| public final EObject rulePropertyFillerSignedIntegerRange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token lv_rounded_9_0=null; |
| AntlrDatatypeRuleToken lv_beginRange_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_endRange_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2373:2: ( ( () otherlv_1= 'integerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) ) |
| // InternalEntityMockDSL.g:2374:2: ( () otherlv_1= 'integerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:2374:2: ( () otherlv_1= 'integerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) |
| // InternalEntityMockDSL.g:2375:3: () otherlv_1= 'integerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| { |
| // InternalEntityMockDSL.g:2375:3: () |
| // InternalEntityMockDSL.g:2376:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getPropertyFillerSignedIntegerRangeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,53,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getIntegerRangeKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,47,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getFromKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:2390:3: ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==RULE_ID||LA38_0==RULE_INT||LA38_0==48||LA38_0==77) ) { |
| alt38=1; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalEntityMockDSL.g:2391:4: ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2391:4: ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? |
| int alt36=3; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==RULE_INT||LA36_0==77) ) { |
| alt36=1; |
| } |
| else if ( (LA36_0==RULE_ID) ) { |
| alt36=2; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalEntityMockDSL.g:2392:5: ( (lv_beginRange_3_0= ruleSINT ) ) |
| { |
| // InternalEntityMockDSL.g:2392:5: ( (lv_beginRange_3_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2393:6: (lv_beginRange_3_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2393:6: (lv_beginRange_3_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2394:7: lv_beginRange_3_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getBeginRangeSINTParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_beginRange_3_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| set( |
| current, |
| "beginRange", |
| lv_beginRange_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2412:5: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2412:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2413:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2413:6: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:2414:7: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getBeginRangeRefLEntityAttributeCrossReference_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,48,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getUntilKeyword_3_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2430:4: ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==RULE_INT||LA37_0==77) ) { |
| alt37=1; |
| } |
| else if ( (LA37_0==RULE_ID) ) { |
| alt37=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 37, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt37) { |
| case 1 : |
| // InternalEntityMockDSL.g:2431:5: ( (lv_endRange_6_0= ruleSINT ) ) |
| { |
| // InternalEntityMockDSL.g:2431:5: ( (lv_endRange_6_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2432:6: (lv_endRange_6_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2432:6: (lv_endRange_6_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2433:7: lv_endRange_6_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getEndRangeSINTParserRuleCall_3_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| lv_endRange_6_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| set( |
| current, |
| "endRange", |
| lv_endRange_6_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2451:5: ( (otherlv_7= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2451:5: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2452:6: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2452:6: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:2453:7: otherlv_7= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| |
| } |
| otherlv_7=(Token)match(input,RULE_ID,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getEndRangeRefLEntityAttributeCrossReference_3_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:2466:3: (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==51) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalEntityMockDSL.g:2467:4: otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) |
| { |
| otherlv_8=(Token)match(input,51,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getRoundToKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2471:4: ( (lv_rounded_9_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2472:5: (lv_rounded_9_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2472:5: (lv_rounded_9_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2473:6: lv_rounded_9_0= RULE_INT |
| { |
| lv_rounded_9_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rounded_9_0, grammarAccess.getPropertyFillerSignedIntegerRangeAccess().getRoundedINTTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerSignedIntegerRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "rounded", |
| lv_rounded_9_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerSignedIntegerRange" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerSignedIntegerRandom" |
| // InternalEntityMockDSL.g:2494:1: entryRulePropertyFillerSignedIntegerRandom returns [EObject current=null] : iv_rulePropertyFillerSignedIntegerRandom= rulePropertyFillerSignedIntegerRandom EOF ; |
| public final EObject entryRulePropertyFillerSignedIntegerRandom() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerSignedIntegerRandom = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2494:74: (iv_rulePropertyFillerSignedIntegerRandom= rulePropertyFillerSignedIntegerRandom EOF ) |
| // InternalEntityMockDSL.g:2495:2: iv_rulePropertyFillerSignedIntegerRandom= rulePropertyFillerSignedIntegerRandom EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerSignedIntegerRandomRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerSignedIntegerRandom=rulePropertyFillerSignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerSignedIntegerRandom; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerSignedIntegerRandom" |
| |
| |
| // $ANTLR start "rulePropertyFillerSignedIntegerRandom" |
| // InternalEntityMockDSL.g:2501:1: rulePropertyFillerSignedIntegerRandom returns [EObject current=null] : (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) ; |
| public final EObject rulePropertyFillerSignedIntegerRandom() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| AntlrDatatypeRuleToken lv_items_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2507:2: ( (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2508:2: (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2508:2: (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2509:3: otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' |
| { |
| otherlv_0=(Token)match(input,54,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerSignedIntegerRandomAccess().getIntegerPickKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,25,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerSignedIntegerRandomAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2517:3: ( (lv_items_2_0= ruleSINT ) )+ |
| int cnt40=0; |
| loop40: |
| do { |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==RULE_INT||LA40_0==77) ) { |
| alt40=1; |
| } |
| |
| |
| switch (alt40) { |
| case 1 : |
| // InternalEntityMockDSL.g:2518:4: (lv_items_2_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2518:4: (lv_items_2_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2519:5: lv_items_2_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerSignedIntegerRandomAccess().getItemsSINTParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_items_2_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerSignedIntegerRandomRule()); |
| } |
| add( |
| current, |
| "items", |
| lv_items_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt40 >= 1 ) break loop40; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(40, input); |
| throw eee; |
| } |
| cnt40++; |
| } while (true); |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerSignedIntegerRandomAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerSignedIntegerRandom" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerTextRandom" |
| // InternalEntityMockDSL.g:2544:1: entryRulePropertyFillerTextRandom returns [EObject current=null] : iv_rulePropertyFillerTextRandom= rulePropertyFillerTextRandom EOF ; |
| public final EObject entryRulePropertyFillerTextRandom() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerTextRandom = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2544:65: (iv_rulePropertyFillerTextRandom= rulePropertyFillerTextRandom EOF ) |
| // InternalEntityMockDSL.g:2545:2: iv_rulePropertyFillerTextRandom= rulePropertyFillerTextRandom EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerTextRandomRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerTextRandom=rulePropertyFillerTextRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerTextRandom; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerTextRandom" |
| |
| |
| // $ANTLR start "rulePropertyFillerTextRandom" |
| // InternalEntityMockDSL.g:2551:1: rulePropertyFillerTextRandom returns [EObject current=null] : (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) ; |
| public final EObject rulePropertyFillerTextRandom() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_items_2_0=null; |
| Token otherlv_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2557:2: ( (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2558:2: (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2558:2: (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2559:3: otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' |
| { |
| otherlv_0=(Token)match(input,55,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerTextRandomAccess().getTextPickKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,25,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerTextRandomAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2567:3: ( (lv_items_2_0= RULE_STRING ) )+ |
| int cnt41=0; |
| loop41: |
| do { |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==RULE_STRING) ) { |
| alt41=1; |
| } |
| |
| |
| switch (alt41) { |
| case 1 : |
| // InternalEntityMockDSL.g:2568:4: (lv_items_2_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:2568:4: (lv_items_2_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:2569:5: lv_items_2_0= RULE_STRING |
| { |
| lv_items_2_0=(Token)match(input,RULE_STRING,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_items_2_0, grammarAccess.getPropertyFillerTextRandomAccess().getItemsSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerTextRandomRule()); |
| } |
| addWithLastConsumed( |
| current, |
| "items", |
| lv_items_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt41 >= 1 ) break loop41; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(41, input); |
| throw eee; |
| } |
| cnt41++; |
| } while (true); |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerTextRandomAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerTextRandom" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerTextParagraphs" |
| // InternalEntityMockDSL.g:2593:1: entryRulePropertyFillerTextParagraphs returns [EObject current=null] : iv_rulePropertyFillerTextParagraphs= rulePropertyFillerTextParagraphs EOF ; |
| public final EObject entryRulePropertyFillerTextParagraphs() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerTextParagraphs = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2593:69: (iv_rulePropertyFillerTextParagraphs= rulePropertyFillerTextParagraphs EOF ) |
| // InternalEntityMockDSL.g:2594:2: iv_rulePropertyFillerTextParagraphs= rulePropertyFillerTextParagraphs EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerTextParagraphsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerTextParagraphs=rulePropertyFillerTextParagraphs(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerTextParagraphs; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerTextParagraphs" |
| |
| |
| // $ANTLR start "rulePropertyFillerTextParagraphs" |
| // InternalEntityMockDSL.g:2600:1: rulePropertyFillerTextParagraphs returns [EObject current=null] : ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) ; |
| public final EObject rulePropertyFillerTextParagraphs() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_count_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2606:2: ( ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2607:2: ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2607:2: ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2608:3: () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2608:3: () |
| // InternalEntityMockDSL.g:2609:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerTextParagraphsAccess().getPropertyFillerTextParagraphsAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,56,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerTextParagraphsAccess().getParagraphsKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2619:3: ( (lv_count_2_0= RULE_INT ) )? |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==RULE_INT) ) { |
| alt42=1; |
| } |
| switch (alt42) { |
| case 1 : |
| // InternalEntityMockDSL.g:2620:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2620:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2621:5: lv_count_2_0= RULE_INT |
| { |
| lv_count_2_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_count_2_0, grammarAccess.getPropertyFillerTextParagraphsAccess().getCountINTTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerTextParagraphsRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "count", |
| lv_count_2_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerTextParagraphs" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerTextSentences" |
| // InternalEntityMockDSL.g:2641:1: entryRulePropertyFillerTextSentences returns [EObject current=null] : iv_rulePropertyFillerTextSentences= rulePropertyFillerTextSentences EOF ; |
| public final EObject entryRulePropertyFillerTextSentences() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerTextSentences = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2641:68: (iv_rulePropertyFillerTextSentences= rulePropertyFillerTextSentences EOF ) |
| // InternalEntityMockDSL.g:2642:2: iv_rulePropertyFillerTextSentences= rulePropertyFillerTextSentences EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerTextSentencesRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerTextSentences=rulePropertyFillerTextSentences(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerTextSentences; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerTextSentences" |
| |
| |
| // $ANTLR start "rulePropertyFillerTextSentences" |
| // InternalEntityMockDSL.g:2648:1: rulePropertyFillerTextSentences returns [EObject current=null] : ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) ; |
| public final EObject rulePropertyFillerTextSentences() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_count_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2654:2: ( ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2655:2: ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2655:2: ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2656:3: () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2656:3: () |
| // InternalEntityMockDSL.g:2657:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerTextSentencesAccess().getPropertyFillerTextSentencesAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,57,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerTextSentencesAccess().getSentencesKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2667:3: ( (lv_count_2_0= RULE_INT ) )? |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==RULE_INT) ) { |
| alt43=1; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalEntityMockDSL.g:2668:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2668:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2669:5: lv_count_2_0= RULE_INT |
| { |
| lv_count_2_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_count_2_0, grammarAccess.getPropertyFillerTextSentencesAccess().getCountINTTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerTextSentencesRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "count", |
| lv_count_2_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerTextSentences" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerTextWords" |
| // InternalEntityMockDSL.g:2689:1: entryRulePropertyFillerTextWords returns [EObject current=null] : iv_rulePropertyFillerTextWords= rulePropertyFillerTextWords EOF ; |
| public final EObject entryRulePropertyFillerTextWords() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerTextWords = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2689:64: (iv_rulePropertyFillerTextWords= rulePropertyFillerTextWords EOF ) |
| // InternalEntityMockDSL.g:2690:2: iv_rulePropertyFillerTextWords= rulePropertyFillerTextWords EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerTextWordsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerTextWords=rulePropertyFillerTextWords(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerTextWords; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerTextWords" |
| |
| |
| // $ANTLR start "rulePropertyFillerTextWords" |
| // InternalEntityMockDSL.g:2696:1: rulePropertyFillerTextWords returns [EObject current=null] : ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) ; |
| public final EObject rulePropertyFillerTextWords() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_count_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2702:2: ( ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2703:2: ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2703:2: ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2704:3: () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2704:3: () |
| // InternalEntityMockDSL.g:2705:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerTextWordsAccess().getPropertyFillerTextWordsAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerTextWordsAccess().getWordsKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2715:3: ( (lv_count_2_0= RULE_INT ) )? |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==RULE_INT) ) { |
| alt44=1; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalEntityMockDSL.g:2716:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2716:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2717:5: lv_count_2_0= RULE_INT |
| { |
| lv_count_2_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_count_2_0, grammarAccess.getPropertyFillerTextWordsAccess().getCountINTTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerTextWordsRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "count", |
| lv_count_2_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerTextWords" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerUnsignedDoubleRange" |
| // InternalEntityMockDSL.g:2737:1: entryRulePropertyFillerUnsignedDoubleRange returns [EObject current=null] : iv_rulePropertyFillerUnsignedDoubleRange= rulePropertyFillerUnsignedDoubleRange EOF ; |
| public final EObject entryRulePropertyFillerUnsignedDoubleRange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerUnsignedDoubleRange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2737:74: (iv_rulePropertyFillerUnsignedDoubleRange= rulePropertyFillerUnsignedDoubleRange EOF ) |
| // InternalEntityMockDSL.g:2738:2: iv_rulePropertyFillerUnsignedDoubleRange= rulePropertyFillerUnsignedDoubleRange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerUnsignedDoubleRange=rulePropertyFillerUnsignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerUnsignedDoubleRange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerUnsignedDoubleRange" |
| |
| |
| // $ANTLR start "rulePropertyFillerUnsignedDoubleRange" |
| // InternalEntityMockDSL.g:2744:1: rulePropertyFillerUnsignedDoubleRange returns [EObject current=null] : (otherlv_0= 'unsignedNumberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) ; |
| public final EObject rulePropertyFillerUnsignedDoubleRange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_decimals_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| AntlrDatatypeRuleToken lv_beginRange_2_0 = null; |
| |
| AntlrDatatypeRuleToken lv_endRange_5_0 = null; |
| |
| AntlrDatatypeRuleToken lv_rounded_11_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2750:2: ( (otherlv_0= 'unsignedNumberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) ) |
| // InternalEntityMockDSL.g:2751:2: (otherlv_0= 'unsignedNumberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:2751:2: (otherlv_0= 'unsignedNumberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? ) |
| // InternalEntityMockDSL.g:2752:3: otherlv_0= 'unsignedNumberRange' otherlv_1= 'from' ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? otherlv_7= 'with' ( (lv_decimals_8_0= RULE_INT ) ) otherlv_9= 'decimals' (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| { |
| otherlv_0=(Token)match(input,59,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getUnsignedNumberRangeKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,47,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getFromKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2760:3: ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==RULE_ID||LA47_0==RULE_INT||LA47_0==48) ) { |
| alt47=1; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalEntityMockDSL.g:2761:4: ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2761:4: ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? |
| int alt45=3; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==RULE_INT) ) { |
| alt45=1; |
| } |
| else if ( (LA45_0==RULE_ID) ) { |
| alt45=2; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalEntityMockDSL.g:2762:5: ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2762:5: ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2763:6: (lv_beginRange_2_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2763:6: (lv_beginRange_2_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2764:7: lv_beginRange_2_0= ruleUnsignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getBeginRangeUnsignedNumberParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_beginRange_2_0=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "beginRange", |
| lv_beginRange_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2782:5: ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2782:5: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2783:6: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2783:6: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:2784:7: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getBeginRangeRefLEntityAttributeCrossReference_2_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,48,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getUntilKeyword_2_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2800:4: ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==RULE_INT) ) { |
| alt46=1; |
| } |
| else if ( (LA46_0==RULE_ID) ) { |
| alt46=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 46, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalEntityMockDSL.g:2801:5: ( (lv_endRange_5_0= ruleUnsignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2801:5: ( (lv_endRange_5_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2802:6: (lv_endRange_5_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2802:6: (lv_endRange_5_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2803:7: lv_endRange_5_0= ruleUnsignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getEndRangeUnsignedNumberParserRuleCall_2_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| lv_endRange_5_0=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "endRange", |
| lv_endRange_5_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2821:5: ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2821:5: ( (otherlv_6= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2822:6: (otherlv_6= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2822:6: (otherlv_6= RULE_ID ) |
| // InternalEntityMockDSL.g:2823:7: otherlv_6= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| |
| } |
| otherlv_6=(Token)match(input,RULE_ID,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getEndRangeRefLEntityAttributeCrossReference_2_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_7=(Token)match(input,33,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getWithKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:2840:3: ( (lv_decimals_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2841:4: (lv_decimals_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2841:4: (lv_decimals_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2842:5: lv_decimals_8_0= RULE_INT |
| { |
| lv_decimals_8_0=(Token)match(input,RULE_INT,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_decimals_8_0, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getDecimalsINTTerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "decimals", |
| lv_decimals_8_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,50,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getDecimalsKeyword_5()); |
| |
| } |
| // InternalEntityMockDSL.g:2862:3: (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==51) ) { |
| alt48=1; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalEntityMockDSL.g:2863:4: otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| { |
| otherlv_10=(Token)match(input,51,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getRoundToKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2867:4: ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2868:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2868:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2869:6: lv_rounded_11_0= ruleUnsignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRangeAccess().getRoundedUnsignedNumberParserRuleCall_6_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_rounded_11_0=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerUnsignedDoubleRangeRule()); |
| } |
| set( |
| current, |
| "rounded", |
| lv_rounded_11_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerUnsignedDoubleRange" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerUnsignedDoubleRandom" |
| // InternalEntityMockDSL.g:2891:1: entryRulePropertyFillerUnsignedDoubleRandom returns [EObject current=null] : iv_rulePropertyFillerUnsignedDoubleRandom= rulePropertyFillerUnsignedDoubleRandom EOF ; |
| public final EObject entryRulePropertyFillerUnsignedDoubleRandom() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerUnsignedDoubleRandom = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2891:75: (iv_rulePropertyFillerUnsignedDoubleRandom= rulePropertyFillerUnsignedDoubleRandom EOF ) |
| // InternalEntityMockDSL.g:2892:2: iv_rulePropertyFillerUnsignedDoubleRandom= rulePropertyFillerUnsignedDoubleRandom EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRandomRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerUnsignedDoubleRandom=rulePropertyFillerUnsignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerUnsignedDoubleRandom; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerUnsignedDoubleRandom" |
| |
| |
| // $ANTLR start "rulePropertyFillerUnsignedDoubleRandom" |
| // InternalEntityMockDSL.g:2898:1: rulePropertyFillerUnsignedDoubleRandom returns [EObject current=null] : (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) ; |
| public final EObject rulePropertyFillerUnsignedDoubleRandom() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| AntlrDatatypeRuleToken lv_items_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2904:2: ( (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2905:2: (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2905:2: (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2906:3: otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' |
| { |
| otherlv_0=(Token)match(input,60,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerUnsignedDoubleRandomAccess().getUnsignedNumberPickKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,25,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerUnsignedDoubleRandomAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:2914:3: ( (lv_items_2_0= ruleUnsignedNumber ) )+ |
| int cnt49=0; |
| loop49: |
| do { |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==RULE_INT) ) { |
| alt49=1; |
| } |
| |
| |
| switch (alt49) { |
| case 1 : |
| // InternalEntityMockDSL.g:2915:4: (lv_items_2_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2915:4: (lv_items_2_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2916:5: lv_items_2_0= ruleUnsignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedDoubleRandomAccess().getItemsUnsignedNumberParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_items_2_0=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyFillerUnsignedDoubleRandomRule()); |
| } |
| add( |
| current, |
| "items", |
| lv_items_2_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.UnsignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt49 >= 1 ) break loop49; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(49, input); |
| throw eee; |
| } |
| cnt49++; |
| } while (true); |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerUnsignedDoubleRandomAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerUnsignedDoubleRandom" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerUnsignedIntegerRange" |
| // InternalEntityMockDSL.g:2941:1: entryRulePropertyFillerUnsignedIntegerRange returns [EObject current=null] : iv_rulePropertyFillerUnsignedIntegerRange= rulePropertyFillerUnsignedIntegerRange EOF ; |
| public final EObject entryRulePropertyFillerUnsignedIntegerRange() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerUnsignedIntegerRange = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:2941:75: (iv_rulePropertyFillerUnsignedIntegerRange= rulePropertyFillerUnsignedIntegerRange EOF ) |
| // InternalEntityMockDSL.g:2942:2: iv_rulePropertyFillerUnsignedIntegerRange= rulePropertyFillerUnsignedIntegerRange EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerUnsignedIntegerRange=rulePropertyFillerUnsignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerUnsignedIntegerRange; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerUnsignedIntegerRange" |
| |
| |
| // $ANTLR start "rulePropertyFillerUnsignedIntegerRange" |
| // InternalEntityMockDSL.g:2948:1: rulePropertyFillerUnsignedIntegerRange returns [EObject current=null] : ( () otherlv_1= 'unsignedIntegerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) ; |
| public final EObject rulePropertyFillerUnsignedIntegerRange() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_beginRange_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token lv_endRange_6_0=null; |
| Token otherlv_7=null; |
| Token otherlv_8=null; |
| Token lv_rounded_9_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:2954:2: ( ( () otherlv_1= 'unsignedIntegerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) ) |
| // InternalEntityMockDSL.g:2955:2: ( () otherlv_1= 'unsignedIntegerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:2955:2: ( () otherlv_1= 'unsignedIntegerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? ) |
| // InternalEntityMockDSL.g:2956:3: () otherlv_1= 'unsignedIntegerRange' otherlv_2= 'from' ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| { |
| // InternalEntityMockDSL.g:2956:3: () |
| // InternalEntityMockDSL.g:2957:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getPropertyFillerUnsignedIntegerRangeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getUnsignedIntegerRangeKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,47,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getFromKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:2971:3: ( ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==RULE_ID||LA52_0==RULE_INT||LA52_0==48) ) { |
| alt52=1; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalEntityMockDSL.g:2972:4: ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2972:4: ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? |
| int alt50=3; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==RULE_INT) ) { |
| alt50=1; |
| } |
| else if ( (LA50_0==RULE_ID) ) { |
| alt50=2; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalEntityMockDSL.g:2973:5: ( (lv_beginRange_3_0= RULE_INT ) ) |
| { |
| // InternalEntityMockDSL.g:2973:5: ( (lv_beginRange_3_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2974:6: (lv_beginRange_3_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2974:6: (lv_beginRange_3_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2975:7: lv_beginRange_3_0= RULE_INT |
| { |
| lv_beginRange_3_0=(Token)match(input,RULE_INT,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_beginRange_3_0, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getBeginRangeINTTerminalRuleCall_3_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "beginRange", |
| lv_beginRange_3_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:2992:5: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2992:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2993:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2993:6: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:2994:7: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getBeginRangeRefLEntityAttributeCrossReference_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,48,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getUntilKeyword_3_1()); |
| |
| } |
| // InternalEntityMockDSL.g:3010:4: ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==RULE_INT) ) { |
| alt51=1; |
| } |
| else if ( (LA51_0==RULE_ID) ) { |
| alt51=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 51, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalEntityMockDSL.g:3011:5: ( (lv_endRange_6_0= RULE_INT ) ) |
| { |
| // InternalEntityMockDSL.g:3011:5: ( (lv_endRange_6_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3012:6: (lv_endRange_6_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3012:6: (lv_endRange_6_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3013:7: lv_endRange_6_0= RULE_INT |
| { |
| lv_endRange_6_0=(Token)match(input,RULE_INT,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_endRange_6_0, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getEndRangeINTTerminalRuleCall_3_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "endRange", |
| lv_endRange_6_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3030:5: ( (otherlv_7= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:3030:5: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3031:6: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3031:6: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:3032:7: otherlv_7= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| |
| } |
| otherlv_7=(Token)match(input,RULE_ID,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getEndRangeRefLEntityAttributeCrossReference_3_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:3045:3: (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==51) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalEntityMockDSL.g:3046:4: otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) |
| { |
| otherlv_8=(Token)match(input,51,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getRoundToKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3050:4: ( (lv_rounded_9_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3051:5: (lv_rounded_9_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3051:5: (lv_rounded_9_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3052:6: lv_rounded_9_0= RULE_INT |
| { |
| lv_rounded_9_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rounded_9_0, grammarAccess.getPropertyFillerUnsignedIntegerRangeAccess().getRoundedINTTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRangeRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "rounded", |
| lv_rounded_9_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerUnsignedIntegerRange" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerUnsignedIntegerRandom" |
| // InternalEntityMockDSL.g:3073:1: entryRulePropertyFillerUnsignedIntegerRandom returns [EObject current=null] : iv_rulePropertyFillerUnsignedIntegerRandom= rulePropertyFillerUnsignedIntegerRandom EOF ; |
| public final EObject entryRulePropertyFillerUnsignedIntegerRandom() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerUnsignedIntegerRandom = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3073:76: (iv_rulePropertyFillerUnsignedIntegerRandom= rulePropertyFillerUnsignedIntegerRandom EOF ) |
| // InternalEntityMockDSL.g:3074:2: iv_rulePropertyFillerUnsignedIntegerRandom= rulePropertyFillerUnsignedIntegerRandom EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerUnsignedIntegerRandomRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerUnsignedIntegerRandom=rulePropertyFillerUnsignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerUnsignedIntegerRandom; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerUnsignedIntegerRandom" |
| |
| |
| // $ANTLR start "rulePropertyFillerUnsignedIntegerRandom" |
| // InternalEntityMockDSL.g:3080:1: rulePropertyFillerUnsignedIntegerRandom returns [EObject current=null] : (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) ; |
| public final EObject rulePropertyFillerUnsignedIntegerRandom() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token lv_items_2_0=null; |
| Token otherlv_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3086:2: ( (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:3087:2: (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:3087:2: (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:3088:3: otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' |
| { |
| otherlv_0=(Token)match(input,62,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerUnsignedIntegerRandomAccess().getUnsignedIntegerPickKeyword_0()); |
| |
| } |
| otherlv_1=(Token)match(input,25,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyFillerUnsignedIntegerRandomAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:3096:3: ( (lv_items_2_0= RULE_INT ) )+ |
| int cnt54=0; |
| loop54: |
| do { |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==RULE_INT) ) { |
| alt54=1; |
| } |
| |
| |
| switch (alt54) { |
| case 1 : |
| // InternalEntityMockDSL.g:3097:4: (lv_items_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3097:4: (lv_items_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3098:5: lv_items_2_0= RULE_INT |
| { |
| lv_items_2_0=(Token)match(input,RULE_INT,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_items_2_0, grammarAccess.getPropertyFillerUnsignedIntegerRandomAccess().getItemsINTTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyFillerUnsignedIntegerRandomRule()); |
| } |
| addWithLastConsumed( |
| current, |
| "items", |
| lv_items_2_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt54 >= 1 ) break loop54; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(54, input); |
| throw eee; |
| } |
| cnt54++; |
| } while (true); |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyFillerUnsignedIntegerRandomAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerUnsignedIntegerRandom" |
| |
| |
| // $ANTLR start "entryRuleEntityMockEntities" |
| // InternalEntityMockDSL.g:3122:1: entryRuleEntityMockEntities returns [EObject current=null] : iv_ruleEntityMockEntities= ruleEntityMockEntities EOF ; |
| public final EObject entryRuleEntityMockEntities() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockEntities = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3122:59: (iv_ruleEntityMockEntities= ruleEntityMockEntities EOF ) |
| // InternalEntityMockDSL.g:3123:2: iv_ruleEntityMockEntities= ruleEntityMockEntities EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockEntitiesRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockEntities=ruleEntityMockEntities(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockEntities; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockEntities" |
| |
| |
| // $ANTLR start "ruleEntityMockEntities" |
| // InternalEntityMockDSL.g:3129:1: ruleEntityMockEntities returns [EObject current=null] : ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) ; |
| public final EObject ruleEntityMockEntities() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_entities_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3135:2: ( ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:3136:2: ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:3136:2: ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:3137:3: () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:3137:3: () |
| // InternalEntityMockDSL.g:3138:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockEntitiesAccess().getEntityMockEntitiesAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,63,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockEntitiesAccess().getEntitiesKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockEntitiesAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3152:3: ( (lv_entities_3_0= ruleEntityMockEntity ) )* |
| loop55: |
| do { |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==64) ) { |
| alt55=1; |
| } |
| |
| |
| switch (alt55) { |
| case 1 : |
| // InternalEntityMockDSL.g:3153:4: (lv_entities_3_0= ruleEntityMockEntity ) |
| { |
| // InternalEntityMockDSL.g:3153:4: (lv_entities_3_0= ruleEntityMockEntity ) |
| // InternalEntityMockDSL.g:3154:5: lv_entities_3_0= ruleEntityMockEntity |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntitiesAccess().getEntitiesEntityMockEntityParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_56); |
| lv_entities_3_0=ruleEntityMockEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntitiesRule()); |
| } |
| add( |
| current, |
| "entities", |
| lv_entities_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntity"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop55; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockEntitiesAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntities" |
| |
| |
| // $ANTLR start "entryRuleEntityMockEntity" |
| // InternalEntityMockDSL.g:3179:1: entryRuleEntityMockEntity returns [EObject current=null] : iv_ruleEntityMockEntity= ruleEntityMockEntity EOF ; |
| public final EObject entryRuleEntityMockEntity() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockEntity = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3179:57: (iv_ruleEntityMockEntity= ruleEntityMockEntity EOF ) |
| // InternalEntityMockDSL.g:3180:2: iv_ruleEntityMockEntity= ruleEntityMockEntity EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockEntityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockEntity=ruleEntityMockEntity(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockEntity; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockEntity" |
| |
| |
| // $ANTLR start "ruleEntityMockEntity" |
| // InternalEntityMockDSL.g:3186:1: ruleEntityMockEntity returns [EObject current=null] : (otherlv_0= 'mocking' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'entity' ( (otherlv_3= RULE_ID ) ) ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) ) ; |
| public final EObject ruleEntityMockEntity() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token lv_minRows_5_0=null; |
| Token otherlv_6=null; |
| Token lv_maxRows_7_0=null; |
| Token otherlv_8=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_14=null; |
| Token otherlv_15=null; |
| Token lv_createBlobMapping_18_0=null; |
| Token otherlv_19=null; |
| Token otherlv_20=null; |
| Token otherlv_21=null; |
| Token otherlv_22=null; |
| Token otherlv_24=null; |
| Token otherlv_28=null; |
| EObject lv_templates_9_0 = null; |
| |
| EObject lv_attributes_10_0 = null; |
| |
| EObject lv_calculations_11_0 = null; |
| |
| EObject lv_byResourceAttributes_17_0 = null; |
| |
| EObject lv_iterate_23_0 = null; |
| |
| EObject lv_templates_25_0 = null; |
| |
| EObject lv_attributes_26_0 = null; |
| |
| EObject lv_calculations_27_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3192:2: ( (otherlv_0= 'mocking' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'entity' ( (otherlv_3= RULE_ID ) ) ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) ) ) |
| // InternalEntityMockDSL.g:3193:2: (otherlv_0= 'mocking' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'entity' ( (otherlv_3= RULE_ID ) ) ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) ) |
| { |
| // InternalEntityMockDSL.g:3193:2: (otherlv_0= 'mocking' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'entity' ( (otherlv_3= RULE_ID ) ) ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) ) |
| // InternalEntityMockDSL.g:3194:3: otherlv_0= 'mocking' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'entity' ( (otherlv_3= RULE_ID ) ) ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) |
| { |
| otherlv_0=(Token)match(input,64,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockEntityAccess().getMockingKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3198:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3199:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3199:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:3200:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_57); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockEntityAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,65,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockEntityAccess().getEntityKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3220:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3221:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3221:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:3222:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockEntityAccess().getEntityRefLEntityCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:3233:3: ( (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) | (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) | (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) ) |
| int alt64=3; |
| switch ( input.LA(1) ) { |
| case 66: |
| { |
| alt64=1; |
| } |
| break; |
| case 23: |
| { |
| alt64=2; |
| } |
| break; |
| case 69: |
| { |
| alt64=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 64, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt64) { |
| case 1 : |
| // InternalEntityMockDSL.g:3234:4: (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) |
| { |
| // InternalEntityMockDSL.g:3234:4: (otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' ) |
| // InternalEntityMockDSL.g:3235:5: otherlv_4= 'rows' ( (lv_minRows_5_0= RULE_INT ) ) otherlv_6= 'to' ( (lv_maxRows_7_0= RULE_INT ) ) otherlv_8= '{' ( (lv_templates_9_0= ruleEntityMockTemplate ) )* ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* otherlv_12= '}' |
| { |
| otherlv_4=(Token)match(input,66,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockEntityAccess().getRowsKeyword_4_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3239:5: ( (lv_minRows_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3240:6: (lv_minRows_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3240:6: (lv_minRows_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3241:7: lv_minRows_5_0= RULE_INT |
| { |
| lv_minRows_5_0=(Token)match(input,RULE_INT,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_minRows_5_0, grammarAccess.getEntityMockEntityAccess().getMinRowsINTTerminalRuleCall_4_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "minRows", |
| lv_minRows_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,67,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEntityMockEntityAccess().getToKeyword_4_0_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3261:5: ( (lv_maxRows_7_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3262:6: (lv_maxRows_7_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3262:6: (lv_maxRows_7_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3263:7: lv_maxRows_7_0= RULE_INT |
| { |
| lv_maxRows_7_0=(Token)match(input,RULE_INT,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_maxRows_7_0, grammarAccess.getEntityMockEntityAccess().getMaxRowsINTTerminalRuleCall_4_0_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "maxRows", |
| lv_maxRows_7_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,14,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getEntityMockEntityAccess().getLeftCurlyBracketKeyword_4_0_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3283:5: ( (lv_templates_9_0= ruleEntityMockTemplate ) )* |
| loop56: |
| do { |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==79) ) { |
| alt56=1; |
| } |
| |
| |
| switch (alt56) { |
| case 1 : |
| // InternalEntityMockDSL.g:3284:6: (lv_templates_9_0= ruleEntityMockTemplate ) |
| { |
| // InternalEntityMockDSL.g:3284:6: (lv_templates_9_0= ruleEntityMockTemplate ) |
| // InternalEntityMockDSL.g:3285:7: lv_templates_9_0= ruleEntityMockTemplate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getTemplatesEntityMockTemplateParserRuleCall_4_0_5_0()); |
| |
| } |
| pushFollow(FOLLOW_60); |
| lv_templates_9_0=ruleEntityMockTemplate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "templates", |
| lv_templates_9_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockTemplate"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop56; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3302:5: ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* |
| loop57: |
| do { |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==31) ) { |
| int LA57_1 = input.LA(2); |
| |
| if ( (LA57_1==RULE_ID) ) { |
| int LA57_4 = input.LA(3); |
| |
| if ( (LA57_4==41||LA57_4==78) ) { |
| alt57=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( ((LA57_0>=82 && LA57_0<=83)) ) { |
| alt57=1; |
| } |
| |
| |
| switch (alt57) { |
| case 1 : |
| // InternalEntityMockDSL.g:3303:6: (lv_attributes_10_0= ruleIEntityMockAttribute ) |
| { |
| // InternalEntityMockDSL.g:3303:6: (lv_attributes_10_0= ruleIEntityMockAttribute ) |
| // InternalEntityMockDSL.g:3304:7: lv_attributes_10_0= ruleIEntityMockAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getAttributesIEntityMockAttributeParserRuleCall_4_0_6_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_attributes_10_0=ruleIEntityMockAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "attributes", |
| lv_attributes_10_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.IEntityMockAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop57; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3321:5: ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* |
| loop58: |
| do { |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==31) ) { |
| alt58=1; |
| } |
| |
| |
| switch (alt58) { |
| case 1 : |
| // InternalEntityMockDSL.g:3322:6: (lv_calculations_11_0= ruleEntityMockEntityFunction ) |
| { |
| // InternalEntityMockDSL.g:3322:6: (lv_calculations_11_0= ruleEntityMockEntityFunction ) |
| // InternalEntityMockDSL.g:3323:7: lv_calculations_11_0= ruleEntityMockEntityFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getCalculationsEntityMockEntityFunctionParserRuleCall_4_0_7_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_calculations_11_0=ruleEntityMockEntityFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "calculations", |
| lv_calculations_11_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntityFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop58; |
| } |
| } while (true); |
| |
| otherlv_12=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getEntityMockEntityAccess().getRightCurlyBracketKeyword_4_0_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3346:4: (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) |
| { |
| // InternalEntityMockDSL.g:3346:4: (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) |
| // InternalEntityMockDSL.g:3347:5: otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' |
| { |
| otherlv_13=(Token)match(input,23,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getEntityMockEntityAccess().getResourceKeyword_4_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3351:5: ( (otherlv_14= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3352:6: (otherlv_14= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3352:6: (otherlv_14= RULE_ID ) |
| // InternalEntityMockDSL.g:3353:7: otherlv_14= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| |
| } |
| otherlv_14=(Token)match(input,RULE_ID,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getEntityMockEntityAccess().getByResourceEntityMockResourceCrossReference_4_1_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_15=(Token)match(input,14,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getEntityMockEntityAccess().getLeftCurlyBracketKeyword_4_1_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3368:5: ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) |
| // InternalEntityMockDSL.g:3369:6: ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) |
| { |
| // InternalEntityMockDSL.g:3369:6: ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) |
| // InternalEntityMockDSL.g:3370:7: ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| // InternalEntityMockDSL.g:3373:7: ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) |
| // InternalEntityMockDSL.g:3374:8: ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* |
| { |
| // InternalEntityMockDSL.g:3374:8: ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* |
| loop60: |
| do { |
| int alt60=3; |
| int LA60_0 = input.LA(1); |
| |
| if ( LA60_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0) ) { |
| alt60=1; |
| } |
| else if ( LA60_0 == 68 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1) ) { |
| alt60=2; |
| } |
| |
| |
| switch (alt60) { |
| case 1 : |
| // InternalEntityMockDSL.g:3375:6: ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) |
| { |
| // InternalEntityMockDSL.g:3375:6: ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) |
| // InternalEntityMockDSL.g:3376:7: {...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMockEntity", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0)"); |
| } |
| // InternalEntityMockDSL.g:3376:119: ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) |
| // InternalEntityMockDSL.g:3377:8: ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0); |
| // InternalEntityMockDSL.g:3380:11: ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ |
| int cnt59=0; |
| loop59: |
| do { |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==31) ) { |
| int LA59_2 = input.LA(2); |
| |
| if ( ((true)) ) { |
| alt59=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt59) { |
| case 1 : |
| // InternalEntityMockDSL.g:3380:12: {...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMockEntity", "true"); |
| } |
| // InternalEntityMockDSL.g:3380:21: ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) |
| // InternalEntityMockDSL.g:3380:22: (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) |
| { |
| // InternalEntityMockDSL.g:3380:22: (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) |
| // InternalEntityMockDSL.g:3381:12: lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getByResourceAttributesEntityMockByResourceAttributeParserRuleCall_4_1_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_62); |
| lv_byResourceAttributes_17_0=ruleEntityMockByResourceAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "byResourceAttributes", |
| lv_byResourceAttributes_17_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockByResourceAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt59 >= 1 ) break loop59; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(59, input); |
| throw eee; |
| } |
| cnt59++; |
| } while (true); |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3403:6: ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:3403:6: ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) |
| // InternalEntityMockDSL.g:3404:7: {...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMockEntity", "getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1)"); |
| } |
| // InternalEntityMockDSL.g:3404:119: ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) |
| // InternalEntityMockDSL.g:3405:8: ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1); |
| // InternalEntityMockDSL.g:3408:11: ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) |
| // InternalEntityMockDSL.g:3408:12: {...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleEntityMockEntity", "true"); |
| } |
| // InternalEntityMockDSL.g:3408:21: ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) |
| // InternalEntityMockDSL.g:3408:22: (lv_createBlobMapping_18_0= 'createBlobMapping' ) |
| { |
| // InternalEntityMockDSL.g:3408:22: (lv_createBlobMapping_18_0= 'createBlobMapping' ) |
| // InternalEntityMockDSL.g:3409:12: lv_createBlobMapping_18_0= 'createBlobMapping' |
| { |
| lv_createBlobMapping_18_0=(Token)match(input,68,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_createBlobMapping_18_0, grammarAccess.getEntityMockEntityAccess().getCreateBlobMappingCreateBlobMappingKeyword_4_1_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| setWithLastConsumed(current, "createBlobMapping", true, "createBlobMapping"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop60; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| |
| } |
| |
| otherlv_19=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getEntityMockEntityAccess().getRightCurlyBracketKeyword_4_1_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:3439:4: (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) |
| { |
| // InternalEntityMockDSL.g:3439:4: (otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' ) |
| // InternalEntityMockDSL.g:3440:5: otherlv_20= 'iterate' ( (otherlv_21= RULE_ID ) ) otherlv_22= 'with' ( (lv_iterate_23_0= ruleIIterate ) ) otherlv_24= '{' ( (lv_templates_25_0= ruleEntityMockTemplate ) )* ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* otherlv_28= '}' |
| { |
| otherlv_20=(Token)match(input,69,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getEntityMockEntityAccess().getIterateKeyword_4_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3444:5: ( (otherlv_21= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3445:6: (otherlv_21= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3445:6: (otherlv_21= RULE_ID ) |
| // InternalEntityMockDSL.g:3446:7: otherlv_21= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityRule()); |
| } |
| |
| } |
| otherlv_21=(Token)match(input,RULE_ID,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_21, grammarAccess.getEntityMockEntityAccess().getIteratorLEntityAttributeCrossReference_4_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_22=(Token)match(input,33,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getEntityMockEntityAccess().getWithKeyword_4_2_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3461:5: ( (lv_iterate_23_0= ruleIIterate ) ) |
| // InternalEntityMockDSL.g:3462:6: (lv_iterate_23_0= ruleIIterate ) |
| { |
| // InternalEntityMockDSL.g:3462:6: (lv_iterate_23_0= ruleIIterate ) |
| // InternalEntityMockDSL.g:3463:7: lv_iterate_23_0= ruleIIterate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getIterateIIterateParserRuleCall_4_2_3_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_iterate_23_0=ruleIIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| set( |
| current, |
| "iterate", |
| lv_iterate_23_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.IIterate"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_24=(Token)match(input,14,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_24, grammarAccess.getEntityMockEntityAccess().getLeftCurlyBracketKeyword_4_2_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3484:5: ( (lv_templates_25_0= ruleEntityMockTemplate ) )* |
| loop61: |
| do { |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( (LA61_0==79) ) { |
| alt61=1; |
| } |
| |
| |
| switch (alt61) { |
| case 1 : |
| // InternalEntityMockDSL.g:3485:6: (lv_templates_25_0= ruleEntityMockTemplate ) |
| { |
| // InternalEntityMockDSL.g:3485:6: (lv_templates_25_0= ruleEntityMockTemplate ) |
| // InternalEntityMockDSL.g:3486:7: lv_templates_25_0= ruleEntityMockTemplate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getTemplatesEntityMockTemplateParserRuleCall_4_2_5_0()); |
| |
| } |
| pushFollow(FOLLOW_60); |
| lv_templates_25_0=ruleEntityMockTemplate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "templates", |
| lv_templates_25_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockTemplate"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop61; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3503:5: ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* |
| loop62: |
| do { |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==31) ) { |
| int LA62_1 = input.LA(2); |
| |
| if ( (LA62_1==RULE_ID) ) { |
| int LA62_4 = input.LA(3); |
| |
| if ( (LA62_4==41||LA62_4==78) ) { |
| alt62=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( ((LA62_0>=82 && LA62_0<=83)) ) { |
| alt62=1; |
| } |
| |
| |
| switch (alt62) { |
| case 1 : |
| // InternalEntityMockDSL.g:3504:6: (lv_attributes_26_0= ruleIEntityMockAttribute ) |
| { |
| // InternalEntityMockDSL.g:3504:6: (lv_attributes_26_0= ruleIEntityMockAttribute ) |
| // InternalEntityMockDSL.g:3505:7: lv_attributes_26_0= ruleIEntityMockAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getAttributesIEntityMockAttributeParserRuleCall_4_2_6_0()); |
| |
| } |
| pushFollow(FOLLOW_61); |
| lv_attributes_26_0=ruleIEntityMockAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "attributes", |
| lv_attributes_26_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.IEntityMockAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop62; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3522:5: ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* |
| loop63: |
| do { |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==31) ) { |
| alt63=1; |
| } |
| |
| |
| switch (alt63) { |
| case 1 : |
| // InternalEntityMockDSL.g:3523:6: (lv_calculations_27_0= ruleEntityMockEntityFunction ) |
| { |
| // InternalEntityMockDSL.g:3523:6: (lv_calculations_27_0= ruleEntityMockEntityFunction ) |
| // InternalEntityMockDSL.g:3524:7: lv_calculations_27_0= ruleEntityMockEntityFunction |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getCalculationsEntityMockEntityFunctionParserRuleCall_4_2_7_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_calculations_27_0=ruleEntityMockEntityFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| add( |
| current, |
| "calculations", |
| lv_calculations_27_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntityFunction"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop63; |
| } |
| } while (true); |
| |
| otherlv_28=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_28, grammarAccess.getEntityMockEntityAccess().getRightCurlyBracketKeyword_4_2_8()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntity" |
| |
| |
| // $ANTLR start "entryRuleIIterate" |
| // InternalEntityMockDSL.g:3551:1: entryRuleIIterate returns [EObject current=null] : iv_ruleIIterate= ruleIIterate EOF ; |
| public final EObject entryRuleIIterate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleIIterate = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3551:49: (iv_ruleIIterate= ruleIIterate EOF ) |
| // InternalEntityMockDSL.g:3552:2: iv_ruleIIterate= ruleIIterate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIIterateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIIterate=ruleIIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIIterate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIIterate" |
| |
| |
| // $ANTLR start "ruleIIterate" |
| // InternalEntityMockDSL.g:3558:1: ruleIIterate returns [EObject current=null] : (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) ; |
| public final EObject ruleIIterate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_IntegerIterate_0 = null; |
| |
| EObject this_DateIterate_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3564:2: ( (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) ) |
| // InternalEntityMockDSL.g:3565:2: (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) |
| { |
| // InternalEntityMockDSL.g:3565:2: (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==70) ) { |
| alt65=1; |
| } |
| else if ( (LA65_0==72) ) { |
| alt65=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 65, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt65) { |
| case 1 : |
| // InternalEntityMockDSL.g:3566:3: this_IntegerIterate_0= ruleIntegerIterate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIIterateAccess().getIntegerIterateParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_IntegerIterate_0=ruleIntegerIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_IntegerIterate_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3575:3: this_DateIterate_1= ruleDateIterate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIIterateAccess().getDateIterateParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_DateIterate_1=ruleDateIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_DateIterate_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIIterate" |
| |
| |
| // $ANTLR start "entryRuleIntegerIterate" |
| // InternalEntityMockDSL.g:3587:1: entryRuleIntegerIterate returns [EObject current=null] : iv_ruleIntegerIterate= ruleIntegerIterate EOF ; |
| public final EObject entryRuleIntegerIterate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleIntegerIterate = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3587:55: (iv_ruleIntegerIterate= ruleIntegerIterate EOF ) |
| // InternalEntityMockDSL.g:3588:2: iv_ruleIntegerIterate= ruleIntegerIterate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIntegerIterateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIntegerIterate=ruleIntegerIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIntegerIterate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIntegerIterate" |
| |
| |
| // $ANTLR start "ruleIntegerIterate" |
| // InternalEntityMockDSL.g:3594:1: ruleIntegerIterate returns [EObject current=null] : (otherlv_0= 'integerFrom' ( (lv_from_1_0= ruleSINT ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleSINT ) ) otherlv_4= 'step' ( (lv_step_5_0= RULE_INT ) ) ) ; |
| public final EObject ruleIntegerIterate() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token lv_step_5_0=null; |
| AntlrDatatypeRuleToken lv_from_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_until_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3600:2: ( (otherlv_0= 'integerFrom' ( (lv_from_1_0= ruleSINT ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleSINT ) ) otherlv_4= 'step' ( (lv_step_5_0= RULE_INT ) ) ) ) |
| // InternalEntityMockDSL.g:3601:2: (otherlv_0= 'integerFrom' ( (lv_from_1_0= ruleSINT ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleSINT ) ) otherlv_4= 'step' ( (lv_step_5_0= RULE_INT ) ) ) |
| { |
| // InternalEntityMockDSL.g:3601:2: (otherlv_0= 'integerFrom' ( (lv_from_1_0= ruleSINT ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleSINT ) ) otherlv_4= 'step' ( (lv_step_5_0= RULE_INT ) ) ) |
| // InternalEntityMockDSL.g:3602:3: otherlv_0= 'integerFrom' ( (lv_from_1_0= ruleSINT ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleSINT ) ) otherlv_4= 'step' ( (lv_step_5_0= RULE_INT ) ) |
| { |
| otherlv_0=(Token)match(input,70,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getIntegerIterateAccess().getIntegerFromKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3606:3: ( (lv_from_1_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:3607:4: (lv_from_1_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:3607:4: (lv_from_1_0= ruleSINT ) |
| // InternalEntityMockDSL.g:3608:5: lv_from_1_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIntegerIterateAccess().getFromSINTParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_from_1_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIntegerIterateRule()); |
| } |
| set( |
| current, |
| "from", |
| lv_from_1_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,48,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getIntegerIterateAccess().getUntilKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3629:3: ( (lv_until_3_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:3630:4: (lv_until_3_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:3630:4: (lv_until_3_0= ruleSINT ) |
| // InternalEntityMockDSL.g:3631:5: lv_until_3_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIntegerIterateAccess().getUntilSINTParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_64); |
| lv_until_3_0=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getIntegerIterateRule()); |
| } |
| set( |
| current, |
| "until", |
| lv_until_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.SINT"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,71,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getIntegerIterateAccess().getStepKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3652:3: ( (lv_step_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3653:4: (lv_step_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3653:4: (lv_step_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3654:5: lv_step_5_0= RULE_INT |
| { |
| lv_step_5_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_step_5_0, grammarAccess.getIntegerIterateAccess().getStepINTTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getIntegerIterateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "step", |
| lv_step_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIntegerIterate" |
| |
| |
| // $ANTLR start "entryRuleDateIterate" |
| // InternalEntityMockDSL.g:3674:1: entryRuleDateIterate returns [EObject current=null] : iv_ruleDateIterate= ruleDateIterate EOF ; |
| public final EObject entryRuleDateIterate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDateIterate = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3674:52: (iv_ruleDateIterate= ruleDateIterate EOF ) |
| // InternalEntityMockDSL.g:3675:2: iv_ruleDateIterate= ruleDateIterate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDateIterateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDateIterate=ruleDateIterate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDateIterate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDateIterate" |
| |
| |
| // $ANTLR start "ruleDateIterate" |
| // InternalEntityMockDSL.g:3681:1: ruleDateIterate returns [EObject current=null] : (otherlv_0= 'dateFrom' ( (lv_from_1_0= ruleDate ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleDate ) ) otherlv_4= 'every' ( (lv_stepCount_5_0= RULE_INT ) ) ( (lv_stepType_6_0= ruleEDateStepType ) ) ) ; |
| public final EObject ruleDateIterate() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token lv_stepCount_5_0=null; |
| EObject lv_from_1_0 = null; |
| |
| EObject lv_until_3_0 = null; |
| |
| Enumerator lv_stepType_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3687:2: ( (otherlv_0= 'dateFrom' ( (lv_from_1_0= ruleDate ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleDate ) ) otherlv_4= 'every' ( (lv_stepCount_5_0= RULE_INT ) ) ( (lv_stepType_6_0= ruleEDateStepType ) ) ) ) |
| // InternalEntityMockDSL.g:3688:2: (otherlv_0= 'dateFrom' ( (lv_from_1_0= ruleDate ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleDate ) ) otherlv_4= 'every' ( (lv_stepCount_5_0= RULE_INT ) ) ( (lv_stepType_6_0= ruleEDateStepType ) ) ) |
| { |
| // InternalEntityMockDSL.g:3688:2: (otherlv_0= 'dateFrom' ( (lv_from_1_0= ruleDate ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleDate ) ) otherlv_4= 'every' ( (lv_stepCount_5_0= RULE_INT ) ) ( (lv_stepType_6_0= ruleEDateStepType ) ) ) |
| // InternalEntityMockDSL.g:3689:3: otherlv_0= 'dateFrom' ( (lv_from_1_0= ruleDate ) ) otherlv_2= 'until' ( (lv_until_3_0= ruleDate ) ) otherlv_4= 'every' ( (lv_stepCount_5_0= RULE_INT ) ) ( (lv_stepType_6_0= ruleEDateStepType ) ) |
| { |
| otherlv_0=(Token)match(input,72,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDateIterateAccess().getDateFromKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3693:3: ( (lv_from_1_0= ruleDate ) ) |
| // InternalEntityMockDSL.g:3694:4: (lv_from_1_0= ruleDate ) |
| { |
| // InternalEntityMockDSL.g:3694:4: (lv_from_1_0= ruleDate ) |
| // InternalEntityMockDSL.g:3695:5: lv_from_1_0= ruleDate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDateIterateAccess().getFromDateParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| lv_from_1_0=ruleDate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDateIterateRule()); |
| } |
| set( |
| current, |
| "from", |
| lv_from_1_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.Date"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,48,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDateIterateAccess().getUntilKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3716:3: ( (lv_until_3_0= ruleDate ) ) |
| // InternalEntityMockDSL.g:3717:4: (lv_until_3_0= ruleDate ) |
| { |
| // InternalEntityMockDSL.g:3717:4: (lv_until_3_0= ruleDate ) |
| // InternalEntityMockDSL.g:3718:5: lv_until_3_0= ruleDate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDateIterateAccess().getUntilDateParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_66); |
| lv_until_3_0=ruleDate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDateIterateRule()); |
| } |
| set( |
| current, |
| "until", |
| lv_until_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.Date"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,73,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDateIterateAccess().getEveryKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3739:3: ( (lv_stepCount_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3740:4: (lv_stepCount_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3740:4: (lv_stepCount_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3741:5: lv_stepCount_5_0= RULE_INT |
| { |
| lv_stepCount_5_0=(Token)match(input,RULE_INT,FOLLOW_67); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_stepCount_5_0, grammarAccess.getDateIterateAccess().getStepCountINTTerminalRuleCall_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateIterateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "stepCount", |
| lv_stepCount_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:3757:3: ( (lv_stepType_6_0= ruleEDateStepType ) ) |
| // InternalEntityMockDSL.g:3758:4: (lv_stepType_6_0= ruleEDateStepType ) |
| { |
| // InternalEntityMockDSL.g:3758:4: (lv_stepType_6_0= ruleEDateStepType ) |
| // InternalEntityMockDSL.g:3759:5: lv_stepType_6_0= ruleEDateStepType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDateIterateAccess().getStepTypeEDateStepTypeEnumRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_stepType_6_0=ruleEDateStepType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getDateIterateRule()); |
| } |
| set( |
| current, |
| "stepType", |
| lv_stepType_6_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EDateStepType"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDateIterate" |
| |
| |
| // $ANTLR start "entryRuleDate" |
| // InternalEntityMockDSL.g:3780:1: entryRuleDate returns [EObject current=null] : iv_ruleDate= ruleDate EOF ; |
| public final EObject entryRuleDate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleDate = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3780:45: (iv_ruleDate= ruleDate EOF ) |
| // InternalEntityMockDSL.g:3781:2: iv_ruleDate= ruleDate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getDateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleDate=ruleDate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleDate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleDate" |
| |
| |
| // $ANTLR start "ruleDate" |
| // InternalEntityMockDSL.g:3787:1: ruleDate returns [EObject current=null] : ( ( (lv_yesterday_0_0= 'yesterday' ) ) | ( (lv_today_1_0= 'today' ) ) | ( (lv_tomorrow_2_0= 'tomorrow' ) ) | ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) ) ; |
| public final EObject ruleDate() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_yesterday_0_0=null; |
| Token lv_today_1_0=null; |
| Token lv_tomorrow_2_0=null; |
| Token lv_year_3_0=null; |
| Token otherlv_4=null; |
| Token lv_month_5_0=null; |
| Token otherlv_6=null; |
| Token lv_day_7_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3793:2: ( ( ( (lv_yesterday_0_0= 'yesterday' ) ) | ( (lv_today_1_0= 'today' ) ) | ( (lv_tomorrow_2_0= 'tomorrow' ) ) | ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) ) ) |
| // InternalEntityMockDSL.g:3794:2: ( ( (lv_yesterday_0_0= 'yesterday' ) ) | ( (lv_today_1_0= 'today' ) ) | ( (lv_tomorrow_2_0= 'tomorrow' ) ) | ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:3794:2: ( ( (lv_yesterday_0_0= 'yesterday' ) ) | ( (lv_today_1_0= 'today' ) ) | ( (lv_tomorrow_2_0= 'tomorrow' ) ) | ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) ) |
| int alt66=4; |
| switch ( input.LA(1) ) { |
| case 74: |
| { |
| alt66=1; |
| } |
| break; |
| case 75: |
| { |
| alt66=2; |
| } |
| break; |
| case 76: |
| { |
| alt66=3; |
| } |
| break; |
| case RULE_INT: |
| { |
| alt66=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 66, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt66) { |
| case 1 : |
| // InternalEntityMockDSL.g:3795:3: ( (lv_yesterday_0_0= 'yesterday' ) ) |
| { |
| // InternalEntityMockDSL.g:3795:3: ( (lv_yesterday_0_0= 'yesterday' ) ) |
| // InternalEntityMockDSL.g:3796:4: (lv_yesterday_0_0= 'yesterday' ) |
| { |
| // InternalEntityMockDSL.g:3796:4: (lv_yesterday_0_0= 'yesterday' ) |
| // InternalEntityMockDSL.g:3797:5: lv_yesterday_0_0= 'yesterday' |
| { |
| lv_yesterday_0_0=(Token)match(input,74,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_yesterday_0_0, grammarAccess.getDateAccess().getYesterdayYesterdayKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed(current, "yesterday", true, "yesterday"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3810:3: ( (lv_today_1_0= 'today' ) ) |
| { |
| // InternalEntityMockDSL.g:3810:3: ( (lv_today_1_0= 'today' ) ) |
| // InternalEntityMockDSL.g:3811:4: (lv_today_1_0= 'today' ) |
| { |
| // InternalEntityMockDSL.g:3811:4: (lv_today_1_0= 'today' ) |
| // InternalEntityMockDSL.g:3812:5: lv_today_1_0= 'today' |
| { |
| lv_today_1_0=(Token)match(input,75,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_today_1_0, grammarAccess.getDateAccess().getTodayTodayKeyword_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed(current, "today", true, "today"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:3825:3: ( (lv_tomorrow_2_0= 'tomorrow' ) ) |
| { |
| // InternalEntityMockDSL.g:3825:3: ( (lv_tomorrow_2_0= 'tomorrow' ) ) |
| // InternalEntityMockDSL.g:3826:4: (lv_tomorrow_2_0= 'tomorrow' ) |
| { |
| // InternalEntityMockDSL.g:3826:4: (lv_tomorrow_2_0= 'tomorrow' ) |
| // InternalEntityMockDSL.g:3827:5: lv_tomorrow_2_0= 'tomorrow' |
| { |
| lv_tomorrow_2_0=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_tomorrow_2_0, grammarAccess.getDateAccess().getTomorrowTomorrowKeyword_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed(current, "tomorrow", true, "tomorrow"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:3840:3: ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) |
| { |
| // InternalEntityMockDSL.g:3840:3: ( ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) ) |
| // InternalEntityMockDSL.g:3841:4: ( (lv_year_3_0= RULE_INT ) ) otherlv_4= '-' ( (lv_month_5_0= RULE_INT ) ) otherlv_6= '-' ( (lv_day_7_0= RULE_INT ) ) |
| { |
| // InternalEntityMockDSL.g:3841:4: ( (lv_year_3_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3842:5: (lv_year_3_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3842:5: (lv_year_3_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3843:6: lv_year_3_0= RULE_INT |
| { |
| lv_year_3_0=(Token)match(input,RULE_INT,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_year_3_0, grammarAccess.getDateAccess().getYearINTTerminalRuleCall_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "year", |
| lv_year_3_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,77,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDateAccess().getHyphenMinusKeyword_3_1()); |
| |
| } |
| // InternalEntityMockDSL.g:3863:4: ( (lv_month_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3864:5: (lv_month_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3864:5: (lv_month_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3865:6: lv_month_5_0= RULE_INT |
| { |
| lv_month_5_0=(Token)match(input,RULE_INT,FOLLOW_68); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_month_5_0, grammarAccess.getDateAccess().getMonthINTTerminalRuleCall_3_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "month", |
| lv_month_5_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,77,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDateAccess().getHyphenMinusKeyword_3_3()); |
| |
| } |
| // InternalEntityMockDSL.g:3885:4: ( (lv_day_7_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3886:5: (lv_day_7_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3886:5: (lv_day_7_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3887:6: lv_day_7_0= RULE_INT |
| { |
| lv_day_7_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_day_7_0, grammarAccess.getDateAccess().getDayINTTerminalRuleCall_3_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getDateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "day", |
| lv_day_7_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleDate" |
| |
| |
| // $ANTLR start "entryRuleEntityMockByResourceAttribute" |
| // InternalEntityMockDSL.g:3908:1: entryRuleEntityMockByResourceAttribute returns [EObject current=null] : iv_ruleEntityMockByResourceAttribute= ruleEntityMockByResourceAttribute EOF ; |
| public final EObject entryRuleEntityMockByResourceAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockByResourceAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3908:70: (iv_ruleEntityMockByResourceAttribute= ruleEntityMockByResourceAttribute EOF ) |
| // InternalEntityMockDSL.g:3909:2: iv_ruleEntityMockByResourceAttribute= ruleEntityMockByResourceAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockByResourceAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockByResourceAttribute=ruleEntityMockByResourceAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockByResourceAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockByResourceAttribute" |
| |
| |
| // $ANTLR start "ruleEntityMockByResourceAttribute" |
| // InternalEntityMockDSL.g:3915:1: ruleEntityMockByResourceAttribute returns [EObject current=null] : ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockByResourceAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3921:2: ( ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:3922:2: ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:3922:2: ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:3923:3: () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:3923:3: () |
| // InternalEntityMockDSL.g:3924:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockByResourceAttributeAccess().getEntityMockByResourceAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockByResourceAttributeAccess().getVarKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:3934:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3935:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3935:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:3936:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockByResourceAttributeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockByResourceAttributeAccess().getAttributeRefLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockByResourceAttributeAccess().getAsKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:3951:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3952:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3952:4: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:3953:5: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockByResourceAttributeRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockByResourceAttributeAccess().getResourceAttributeEntityMockResourceAttributeCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockByResourceAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockTemplate" |
| // InternalEntityMockDSL.g:3968:1: entryRuleEntityMockTemplate returns [EObject current=null] : iv_ruleEntityMockTemplate= ruleEntityMockTemplate EOF ; |
| public final EObject entryRuleEntityMockTemplate() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockTemplate = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3968:59: (iv_ruleEntityMockTemplate= ruleEntityMockTemplate EOF ) |
| // InternalEntityMockDSL.g:3969:2: iv_ruleEntityMockTemplate= ruleEntityMockTemplate EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockTemplateRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockTemplate=ruleEntityMockTemplate(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockTemplate; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockTemplate" |
| |
| |
| // $ANTLR start "ruleEntityMockTemplate" |
| // InternalEntityMockDSL.g:3975:1: ruleEntityMockTemplate returns [EObject current=null] : (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockTemplate() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_name_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3981:2: ( (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:3982:2: (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:3982:2: (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:3983:3: otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,79,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockTemplateAccess().getTemplateKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3987:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3988:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3988:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:3989:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_1_0, grammarAccess.getEntityMockTemplateAccess().getNameIDTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockTemplateRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,80,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockTemplateAccess().getByObjectKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4009:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4010:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4010:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:4011:5: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockTemplateRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockTemplateAccess().getObjectEntityMockObjectCrossReference_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockTemplate" |
| |
| |
| // $ANTLR start "entryRuleIEntityMockAttribute" |
| // InternalEntityMockDSL.g:4026:1: entryRuleIEntityMockAttribute returns [EObject current=null] : iv_ruleIEntityMockAttribute= ruleIEntityMockAttribute EOF ; |
| public final EObject entryRuleIEntityMockAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleIEntityMockAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4026:61: (iv_ruleIEntityMockAttribute= ruleIEntityMockAttribute EOF ) |
| // InternalEntityMockDSL.g:4027:2: iv_ruleIEntityMockAttribute= ruleIEntityMockAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIEntityMockAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIEntityMockAttribute=ruleIEntityMockAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIEntityMockAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIEntityMockAttribute" |
| |
| |
| // $ANTLR start "ruleIEntityMockAttribute" |
| // InternalEntityMockDSL.g:4033:1: ruleIEntityMockAttribute returns [EObject current=null] : (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) ; |
| public final EObject ruleIEntityMockAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_EntityMockAttributeByObject_0 = null; |
| |
| EObject this_EntityMockAttributeFiller_1 = null; |
| |
| EObject this_EntityMockAttributeByReference_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4039:2: ( (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) ) |
| // InternalEntityMockDSL.g:4040:2: (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) |
| { |
| // InternalEntityMockDSL.g:4040:2: (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) |
| int alt67=3; |
| switch ( input.LA(1) ) { |
| case 31: |
| { |
| int LA67_1 = input.LA(2); |
| |
| if ( (LA67_1==RULE_ID) ) { |
| int LA67_4 = input.LA(3); |
| |
| if ( (LA67_4==41) ) { |
| alt67=2; |
| } |
| else if ( (LA67_4==78) ) { |
| alt67=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 4, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 82: |
| { |
| alt67=1; |
| } |
| break; |
| case 83: |
| { |
| alt67=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 67, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt67) { |
| case 1 : |
| // InternalEntityMockDSL.g:4041:3: this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockAttributeAccess().getEntityMockAttributeByObjectParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockAttributeByObject_0=ruleEntityMockAttributeByObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockAttributeByObject_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4050:3: this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockAttributeAccess().getEntityMockAttributeFillerParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockAttributeFiller_1=ruleEntityMockAttributeFiller(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockAttributeFiller_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:4059:3: this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIEntityMockAttributeAccess().getEntityMockAttributeByReferenceParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_EntityMockAttributeByReference_2=ruleEntityMockAttributeByReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_EntityMockAttributeByReference_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIEntityMockAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockEntityFunction" |
| // InternalEntityMockDSL.g:4071:1: entryRuleEntityMockEntityFunction returns [EObject current=null] : iv_ruleEntityMockEntityFunction= ruleEntityMockEntityFunction EOF ; |
| public final EObject entryRuleEntityMockEntityFunction() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockEntityFunction = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4071:65: (iv_ruleEntityMockEntityFunction= ruleEntityMockEntityFunction EOF ) |
| // InternalEntityMockDSL.g:4072:2: iv_ruleEntityMockEntityFunction= ruleEntityMockEntityFunction EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockEntityFunction=ruleEntityMockEntityFunction(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockEntityFunction; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockEntityFunction" |
| |
| |
| // $ANTLR start "ruleEntityMockEntityFunction" |
| // InternalEntityMockDSL.g:4078:1: ruleEntityMockEntityFunction returns [EObject current=null] : (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'calculateOn' otherlv_3= '(' ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? otherlv_7= ')' ( (lv_body_8_0= ruleXBlockExpression ) ) ) ; |
| public final EObject ruleEntityMockEntityFunction() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| EObject lv_params_4_0 = null; |
| |
| EObject lv_params_6_0 = null; |
| |
| EObject lv_body_8_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4084:2: ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'calculateOn' otherlv_3= '(' ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? otherlv_7= ')' ( (lv_body_8_0= ruleXBlockExpression ) ) ) ) |
| // InternalEntityMockDSL.g:4085:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'calculateOn' otherlv_3= '(' ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? otherlv_7= ')' ( (lv_body_8_0= ruleXBlockExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:4085:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'calculateOn' otherlv_3= '(' ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? otherlv_7= ')' ( (lv_body_8_0= ruleXBlockExpression ) ) ) |
| // InternalEntityMockDSL.g:4086:3: otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'calculateOn' otherlv_3= '(' ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? otherlv_7= ')' ( (lv_body_8_0= ruleXBlockExpression ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockEntityFunctionAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4090:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4091:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4091:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4092:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_71); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockEntityFunctionAccess().getAttributeRefLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,81,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockEntityFunctionAccess().getCalculateOnKeyword_2()); |
| |
| } |
| otherlv_3=(Token)match(input,25,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockEntityFunctionAccess().getLeftParenthesisKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:4111:3: ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( (LA69_0==RULE_ID) ) { |
| alt69=1; |
| } |
| switch (alt69) { |
| case 1 : |
| // InternalEntityMockDSL.g:4112:4: ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:4112:4: ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) |
| // InternalEntityMockDSL.g:4113:5: (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:4113:5: (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) |
| // InternalEntityMockDSL.g:4114:6: lv_params_4_0= ruleEntityMockEntityFunctionParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionAccess().getParamsEntityMockEntityFunctionParameterParserRuleCall_4_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_params_4_0=ruleEntityMockEntityFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_4_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntityFunctionParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4131:4: (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* |
| loop68: |
| do { |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==26) ) { |
| alt68=1; |
| } |
| |
| |
| switch (alt68) { |
| case 1 : |
| // InternalEntityMockDSL.g:4132:5: otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) |
| { |
| otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockEntityFunctionAccess().getCommaKeyword_4_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4136:5: ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) |
| // InternalEntityMockDSL.g:4137:6: (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:4137:6: (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) |
| // InternalEntityMockDSL.g:4138:7: lv_params_6_0= ruleEntityMockEntityFunctionParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionAccess().getParamsEntityMockEntityFunctionParameterParserRuleCall_4_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_params_6_0=ruleEntityMockEntityFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| add( |
| current, |
| "params", |
| lv_params_6_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntityFunctionParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop68; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_7=(Token)match(input,27,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockEntityFunctionAccess().getRightParenthesisKeyword_5()); |
| |
| } |
| // InternalEntityMockDSL.g:4161:3: ( (lv_body_8_0= ruleXBlockExpression ) ) |
| // InternalEntityMockDSL.g:4162:4: (lv_body_8_0= ruleXBlockExpression ) |
| { |
| // InternalEntityMockDSL.g:4162:4: (lv_body_8_0= ruleXBlockExpression ) |
| // InternalEntityMockDSL.g:4163:5: lv_body_8_0= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionAccess().getBodyXBlockExpressionParserRuleCall_6_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_8_0=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_8_0, |
| "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntityFunction" |
| |
| |
| // $ANTLR start "entryRuleEntityMockEntityFunctionParameter" |
| // InternalEntityMockDSL.g:4184:1: entryRuleEntityMockEntityFunctionParameter returns [EObject current=null] : iv_ruleEntityMockEntityFunctionParameter= ruleEntityMockEntityFunctionParameter EOF ; |
| public final EObject entryRuleEntityMockEntityFunctionParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockEntityFunctionParameter = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4184:74: (iv_ruleEntityMockEntityFunctionParameter= ruleEntityMockEntityFunctionParameter EOF ) |
| // InternalEntityMockDSL.g:4185:2: iv_ruleEntityMockEntityFunctionParameter= ruleEntityMockEntityFunctionParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockEntityFunctionParameter=ruleEntityMockEntityFunctionParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockEntityFunctionParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockEntityFunctionParameter" |
| |
| |
| // $ANTLR start "ruleEntityMockEntityFunctionParameter" |
| // InternalEntityMockDSL.g:4191:1: ruleEntityMockEntityFunctionParameter returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) ; |
| public final EObject ruleEntityMockEntityFunctionParameter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_nestedAttribute_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4197:2: ( ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) ) |
| // InternalEntityMockDSL.g:4198:2: ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) |
| { |
| // InternalEntityMockDSL.g:4198:2: ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==RULE_ID) ) { |
| int LA70_1 = input.LA(2); |
| |
| if ( (LA70_1==34) ) { |
| alt70=2; |
| } |
| else if ( (LA70_1==EOF||(LA70_1>=26 && LA70_1<=27)) ) { |
| alt70=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalEntityMockDSL.g:4199:3: ( (otherlv_0= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4199:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4200:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4200:4: (otherlv_0= RULE_ID ) |
| // InternalEntityMockDSL.g:4201:5: otherlv_0= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityFunctionParameterRule()); |
| } |
| |
| } |
| otherlv_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockEntityFunctionParameterAccess().getAttributeRefLEntityAttributeCrossReference_0_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4213:3: ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) |
| { |
| // InternalEntityMockDSL.g:4213:3: ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) |
| // InternalEntityMockDSL.g:4214:4: (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) |
| { |
| // InternalEntityMockDSL.g:4214:4: (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) |
| // InternalEntityMockDSL.g:4215:5: lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityFunctionParameterAccess().getNestedAttributeEntityMockEntityNestedAttributeParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_nestedAttribute_1_0=ruleEntityMockEntityNestedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityFunctionParameterRule()); |
| } |
| set( |
| current, |
| "nestedAttribute", |
| lv_nestedAttribute_1_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockEntityNestedAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntityFunctionParameter" |
| |
| |
| // $ANTLR start "entryRuleEntityMockEntityNestedAttribute" |
| // InternalEntityMockDSL.g:4236:1: entryRuleEntityMockEntityNestedAttribute returns [EObject current=null] : iv_ruleEntityMockEntityNestedAttribute= ruleEntityMockEntityNestedAttribute EOF ; |
| public final EObject entryRuleEntityMockEntityNestedAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockEntityNestedAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4236:72: (iv_ruleEntityMockEntityNestedAttribute= ruleEntityMockEntityNestedAttribute EOF ) |
| // InternalEntityMockDSL.g:4237:2: iv_ruleEntityMockEntityNestedAttribute= ruleEntityMockEntityNestedAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockEntityNestedAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockEntityNestedAttribute=ruleEntityMockEntityNestedAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockEntityNestedAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockEntityNestedAttribute" |
| |
| |
| // $ANTLR start "ruleEntityMockEntityNestedAttribute" |
| // InternalEntityMockDSL.g:4243:1: ruleEntityMockEntityNestedAttribute returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockEntityNestedAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4249:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4250:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4250:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4251:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4251:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4252:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4252:4: (otherlv_0= RULE_ID ) |
| // InternalEntityMockDSL.g:4253:5: otherlv_0= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityNestedAttributeRule()); |
| } |
| |
| } |
| otherlv_0=(Token)match(input,RULE_ID,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockEntityNestedAttributeAccess().getReferenceLEntityReferenceCrossReference_0_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockEntityNestedAttributeAccess().getFullStopKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:4268:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4269:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4269:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:4270:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityNestedAttributeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockEntityNestedAttributeAccess().getAttributeLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntityNestedAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockReferencedObjectAttribute" |
| // InternalEntityMockDSL.g:4285:1: entryRuleEntityMockReferencedObjectAttribute returns [EObject current=null] : iv_ruleEntityMockReferencedObjectAttribute= ruleEntityMockReferencedObjectAttribute EOF ; |
| public final EObject entryRuleEntityMockReferencedObjectAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockReferencedObjectAttribute = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4285:76: (iv_ruleEntityMockReferencedObjectAttribute= ruleEntityMockReferencedObjectAttribute EOF ) |
| // InternalEntityMockDSL.g:4286:2: iv_ruleEntityMockReferencedObjectAttribute= ruleEntityMockReferencedObjectAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockReferencedObjectAttribute=ruleEntityMockReferencedObjectAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockReferencedObjectAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockReferencedObjectAttribute" |
| |
| |
| // $ANTLR start "ruleEntityMockReferencedObjectAttribute" |
| // InternalEntityMockDSL.g:4292:1: ruleEntityMockReferencedObjectAttribute returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) ; |
| public final EObject ruleEntityMockReferencedObjectAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4298:2: ( ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4299:2: ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4299:2: ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4300:3: () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4300:3: () |
| // InternalEntityMockDSL.g:4301:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockReferencedObjectAttributeAccess().getEntityMockReferencedObjectAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:4307:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4308:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4308:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4309:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getTemplateEntityMockTemplateCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4320:3: ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* |
| loop72: |
| do { |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( (LA72_0==34) ) { |
| int LA72_1 = input.LA(2); |
| |
| if ( (LA72_1==RULE_ID) ) { |
| int LA72_3 = input.LA(3); |
| |
| if ( (LA72_3==RULE_ID||LA72_3==34) ) { |
| alt72=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( (LA72_0==RULE_ID) ) { |
| alt72=1; |
| } |
| |
| |
| switch (alt72) { |
| case 1 : |
| // InternalEntityMockDSL.g:4321:4: (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4321:4: (otherlv_2= '.' )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==34) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalEntityMockDSL.g:4322:5: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getFullStopKeyword_2_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:4327:4: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4328:5: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4328:5: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:4329:6: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getEmbeddedEntityMockObjectEmbedCrossReference_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop72; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getFullStopKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:4345:3: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4346:4: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4346:4: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:4347:5: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getAttributeIEntityMockObjectUsableCrossReference_4_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockReferencedObjectAttribute" |
| |
| |
| // $ANTLR start "entryRuleEntityMockAttributeByObject" |
| // InternalEntityMockDSL.g:4362:1: entryRuleEntityMockAttributeByObject returns [EObject current=null] : iv_ruleEntityMockAttributeByObject= ruleEntityMockAttributeByObject EOF ; |
| public final EObject entryRuleEntityMockAttributeByObject() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockAttributeByObject = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4362:68: (iv_ruleEntityMockAttributeByObject= ruleEntityMockAttributeByObject EOF ) |
| // InternalEntityMockDSL.g:4363:2: iv_ruleEntityMockAttributeByObject= ruleEntityMockAttributeByObject EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockAttributeByObject=ruleEntityMockAttributeByObject(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockAttributeByObject; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockAttributeByObject" |
| |
| |
| // $ANTLR start "ruleEntityMockAttributeByObject" |
| // InternalEntityMockDSL.g:4369:1: ruleEntityMockAttributeByObject returns [EObject current=null] : ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) | (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) ) ; |
| public final EObject ruleEntityMockAttributeByObject() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| EObject lv_reference_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4375:2: ( ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) | (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) ) ) |
| // InternalEntityMockDSL.g:4376:2: ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) | (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:4376:2: ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) | (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) ) |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==31) ) { |
| alt73=1; |
| } |
| else if ( (LA73_0==82) ) { |
| alt73=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 73, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt73) { |
| case 1 : |
| // InternalEntityMockDSL.g:4377:3: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:4377:3: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) |
| // InternalEntityMockDSL.g:4378:4: otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockAttributeByObjectAccess().getVarKeyword_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4382:4: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4383:5: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4383:5: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4384:6: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_69); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockAttributeByObjectAccess().getAttributeRefLEntityAttributeCrossReference_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4395:4: (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) |
| // InternalEntityMockDSL.g:4396:5: otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) |
| { |
| otherlv_2=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockAttributeByObjectAccess().getAsKeyword_0_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4400:5: ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) |
| // InternalEntityMockDSL.g:4401:6: (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) |
| { |
| // InternalEntityMockDSL.g:4401:6: (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) |
| // InternalEntityMockDSL.g:4402:7: lv_reference_3_0= ruleEntityMockReferencedObjectAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAttributeByObjectAccess().getReferenceEntityMockReferencedObjectAttributeParserRuleCall_0_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_reference_3_0=ruleEntityMockReferencedObjectAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| set( |
| current, |
| "reference", |
| lv_reference_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.EntityMockReferencedObjectAttribute"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4422:3: (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4422:3: (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4423:4: otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) |
| { |
| otherlv_4=(Token)match(input,82,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockAttributeByObjectAccess().getUsingKeyword_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4427:4: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4428:5: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4428:5: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:4429:6: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockAttributeByObjectAccess().getResourceEnumEntityMockObjectEnumCrossReference_1_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getEntityMockAttributeByObjectAccess().getFullStopKeyword_1_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4444:4: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4445:5: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4445:5: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:4446:6: otherlv_7= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| |
| } |
| otherlv_7=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockAttributeByObjectAccess().getResourceAttributeEntityMockResourceAttributeCrossReference_1_3_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockAttributeByObject" |
| |
| |
| // $ANTLR start "entryRuleEntityMockAttributeFiller" |
| // InternalEntityMockDSL.g:4462:1: entryRuleEntityMockAttributeFiller returns [EObject current=null] : iv_ruleEntityMockAttributeFiller= ruleEntityMockAttributeFiller EOF ; |
| public final EObject entryRuleEntityMockAttributeFiller() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockAttributeFiller = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4462:66: (iv_ruleEntityMockAttributeFiller= ruleEntityMockAttributeFiller EOF ) |
| // InternalEntityMockDSL.g:4463:2: iv_ruleEntityMockAttributeFiller= ruleEntityMockAttributeFiller EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockAttributeFillerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockAttributeFiller=ruleEntityMockAttributeFiller(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockAttributeFiller; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockAttributeFiller" |
| |
| |
| // $ANTLR start "ruleEntityMockAttributeFiller" |
| // InternalEntityMockDSL.g:4469:1: ruleEntityMockAttributeFiller returns [EObject current=null] : (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ; |
| public final EObject ruleEntityMockAttributeFiller() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| EObject lv_fillerType_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4475:2: ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ) |
| // InternalEntityMockDSL.g:4476:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| { |
| // InternalEntityMockDSL.g:4476:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| // InternalEntityMockDSL.g:4477:3: otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| { |
| otherlv_0=(Token)match(input,31,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockAttributeFillerAccess().getVarKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4481:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4482:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4482:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4483:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeFillerRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockAttributeFillerAccess().getAttributeRefLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,41,FOLLOW_41); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockAttributeFillerAccess().getRandomizeKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4498:3: ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| // InternalEntityMockDSL.g:4499:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| { |
| // InternalEntityMockDSL.g:4499:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| // InternalEntityMockDSL.g:4500:5: lv_fillerType_3_0= rulePropertyFillerType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockAttributeFillerAccess().getFillerTypePropertyFillerTypeParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_fillerType_3_0=rulePropertyFillerType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockAttributeFillerRule()); |
| } |
| set( |
| current, |
| "fillerType", |
| lv_fillerType_3_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.PropertyFillerType"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockAttributeFiller" |
| |
| |
| // $ANTLR start "entryRuleEntityMockAttributeByReference" |
| // InternalEntityMockDSL.g:4521:1: entryRuleEntityMockAttributeByReference returns [EObject current=null] : iv_ruleEntityMockAttributeByReference= ruleEntityMockAttributeByReference EOF ; |
| public final EObject entryRuleEntityMockAttributeByReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEntityMockAttributeByReference = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4521:71: (iv_ruleEntityMockAttributeByReference= ruleEntityMockAttributeByReference EOF ) |
| // InternalEntityMockDSL.g:4522:2: iv_ruleEntityMockAttributeByReference= ruleEntityMockAttributeByReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEntityMockAttributeByReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEntityMockAttributeByReference=ruleEntityMockAttributeByReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEntityMockAttributeByReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEntityMockAttributeByReference" |
| |
| |
| // $ANTLR start "ruleEntityMockAttributeByReference" |
| // InternalEntityMockDSL.g:4528:1: ruleEntityMockAttributeByReference returns [EObject current=null] : (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'to' (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? ) ; |
| public final EObject ruleEntityMockAttributeByReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token lv_optionalFor_6_0=null; |
| Token otherlv_7=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4534:2: ( (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'to' (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? ) ) |
| // InternalEntityMockDSL.g:4535:2: (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'to' (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? ) |
| { |
| // InternalEntityMockDSL.g:4535:2: (otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'to' (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? ) |
| // InternalEntityMockDSL.g:4536:3: otherlv_0= 'ref' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'to' (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? |
| { |
| otherlv_0=(Token)match(input,83,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockAttributeByReferenceAccess().getRefKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4540:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4541:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4541:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4542:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByReferenceRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockAttributeByReferenceAccess().getAttributeRefLEntityReferenceCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,67,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockAttributeByReferenceAccess().getToKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4557:3: (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==84) ) { |
| alt74=1; |
| } |
| else if ( (LA74_0==RULE_ID) ) { |
| alt74=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 74, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt74) { |
| case 1 : |
| // InternalEntityMockDSL.g:4558:4: otherlv_3= 'existingEntities' |
| { |
| otherlv_3=(Token)match(input,84,FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockAttributeByReferenceAccess().getExistingEntitiesKeyword_3_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4563:4: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4563:4: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4564:5: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4564:5: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:4565:6: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByReferenceRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockAttributeByReferenceAccess().getMockedEntityEntityMockEntityCrossReference_3_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:4577:3: (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==85) ) { |
| alt75=1; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalEntityMockDSL.g:4578:4: otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' |
| { |
| otherlv_5=(Token)match(input,85,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockAttributeByReferenceAccess().getOptionalForKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4582:4: ( (lv_optionalFor_6_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:4583:5: (lv_optionalFor_6_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:4583:5: (lv_optionalFor_6_0= RULE_INT ) |
| // InternalEntityMockDSL.g:4584:6: lv_optionalFor_6_0= RULE_INT |
| { |
| lv_optionalFor_6_0=(Token)match(input,RULE_INT,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_optionalFor_6_0, grammarAccess.getEntityMockAttributeByReferenceAccess().getOptionalForINTTerminalRuleCall_4_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByReferenceRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "optionalFor", |
| lv_optionalFor_6_0, |
| "org.eclipse.xtext.xbase.Xbase.INT"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,86,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getEntityMockAttributeByReferenceAccess().getPercentKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockAttributeByReference" |
| |
| |
| // $ANTLR start "entryRuleSignedNumber" |
| // InternalEntityMockDSL.g:4609:1: entryRuleSignedNumber returns [String current=null] : iv_ruleSignedNumber= ruleSignedNumber EOF ; |
| public final String entryRuleSignedNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleSignedNumber = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4609:52: (iv_ruleSignedNumber= ruleSignedNumber EOF ) |
| // InternalEntityMockDSL.g:4610:2: iv_ruleSignedNumber= ruleSignedNumber EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignedNumberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignedNumber=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignedNumber.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignedNumber" |
| |
| |
| // $ANTLR start "ruleSignedNumber" |
| // InternalEntityMockDSL.g:4616:1: ruleSignedNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) ; |
| public final AntlrDatatypeRuleToken ruleSignedNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_UnsignedNumber_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4622:2: ( ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:4623:2: ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:4623:2: ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:4624:3: (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber |
| { |
| // InternalEntityMockDSL.g:4624:3: (kw= '-' )? |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==77) ) { |
| alt76=1; |
| } |
| switch (alt76) { |
| case 1 : |
| // InternalEntityMockDSL.g:4625:4: kw= '-' |
| { |
| kw=(Token)match(input,77,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSignedNumberAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignedNumberAccess().getUnsignedNumberParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_UnsignedNumber_1=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_UnsignedNumber_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignedNumber" |
| |
| |
| // $ANTLR start "entryRuleUnsignedNumber" |
| // InternalEntityMockDSL.g:4645:1: entryRuleUnsignedNumber returns [String current=null] : iv_ruleUnsignedNumber= ruleUnsignedNumber EOF ; |
| public final String entryRuleUnsignedNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleUnsignedNumber = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4645:54: (iv_ruleUnsignedNumber= ruleUnsignedNumber EOF ) |
| // InternalEntityMockDSL.g:4646:2: iv_ruleUnsignedNumber= ruleUnsignedNumber EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getUnsignedNumberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleUnsignedNumber=ruleUnsignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleUnsignedNumber.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleUnsignedNumber" |
| |
| |
| // $ANTLR start "ruleUnsignedNumber" |
| // InternalEntityMockDSL.g:4652:1: ruleUnsignedNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) ; |
| public final AntlrDatatypeRuleToken ruleUnsignedNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_INT_0=null; |
| Token kw=null; |
| Token this_INT_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4658:2: ( (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) ) |
| // InternalEntityMockDSL.g:4659:2: (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) |
| { |
| // InternalEntityMockDSL.g:4659:2: (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) |
| // InternalEntityMockDSL.g:4660:3: this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? |
| { |
| this_INT_0=(Token)match(input,RULE_INT,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_0, grammarAccess.getUnsignedNumberAccess().getINTTerminalRuleCall_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4667:3: (kw= '.' this_INT_2= RULE_INT )? |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==34) ) { |
| alt77=1; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalEntityMockDSL.g:4668:4: kw= '.' this_INT_2= RULE_INT |
| { |
| kw=(Token)match(input,34,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getUnsignedNumberAccess().getFullStopKeyword_1_0()); |
| |
| } |
| this_INT_2=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_2, grammarAccess.getUnsignedNumberAccess().getINTTerminalRuleCall_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleUnsignedNumber" |
| |
| |
| // $ANTLR start "entryRuleSINT" |
| // InternalEntityMockDSL.g:4685:1: entryRuleSINT returns [String current=null] : iv_ruleSINT= ruleSINT EOF ; |
| public final String entryRuleSINT() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleSINT = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4685:44: (iv_ruleSINT= ruleSINT EOF ) |
| // InternalEntityMockDSL.g:4686:2: iv_ruleSINT= ruleSINT EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSINTRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSINT=ruleSINT(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSINT.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSINT" |
| |
| |
| // $ANTLR start "ruleSINT" |
| // InternalEntityMockDSL.g:4692:1: ruleSINT returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_INT_1= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleSINT() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4698:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) |
| // InternalEntityMockDSL.g:4699:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:4699:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| // InternalEntityMockDSL.g:4700:3: (kw= '-' )? this_INT_1= RULE_INT |
| { |
| // InternalEntityMockDSL.g:4700:3: (kw= '-' )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==77) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalEntityMockDSL.g:4701:4: kw= '-' |
| { |
| kw=(Token)match(input,77,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSINTAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getSINTAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSINT" |
| |
| |
| // $ANTLR start "entryRuleXImportDeclaration" |
| // InternalEntityMockDSL.g:4718:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4718:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalEntityMockDSL.g:4719:2: iv_ruleXImportDeclaration= ruleXImportDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportDeclaration=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportDeclaration" |
| |
| |
| // $ANTLR start "ruleXImportDeclaration" |
| // InternalEntityMockDSL.g:4725:1: ruleXImportDeclaration returns [EObject current=null] : ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ; |
| public final EObject ruleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_static_2_0=null; |
| Token lv_extension_3_0=null; |
| Token lv_wildcard_5_0=null; |
| Token lv_fqnImport_9_0=null; |
| Token otherlv_11=null; |
| AntlrDatatypeRuleToken lv_memberName_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedNamespace_8_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedFullyQualifiedName_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4731:2: ( ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) ) |
| // InternalEntityMockDSL.g:4732:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| { |
| // InternalEntityMockDSL.g:4732:2: ( () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? ) |
| // InternalEntityMockDSL.g:4733:3: () otherlv_1= 'import' ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) (otherlv_11= ';' )? |
| { |
| // InternalEntityMockDSL.g:4733:3: () |
| // InternalEntityMockDSL.g:4734:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,87,FOLLOW_77); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:4744:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) ) |
| int alt81=4; |
| alt81 = dfa81.predict(input); |
| switch (alt81) { |
| case 1 : |
| // InternalEntityMockDSL.g:4745:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:4745:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:4746:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4746:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalEntityMockDSL.g:4747:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalEntityMockDSL.g:4747:6: (lv_static_2_0= 'static' ) |
| // InternalEntityMockDSL.g:4748:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,88,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_static_2_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_2_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "static", true, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4760:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==89) ) { |
| alt79=1; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalEntityMockDSL.g:4761:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalEntityMockDSL.g:4761:6: (lv_extension_3_0= 'extension' ) |
| // InternalEntityMockDSL.g:4762:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,89,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_extension_3_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_2_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "extension", true, "extension"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:4774:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalEntityMockDSL.g:4775:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalEntityMockDSL.g:4775:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalEntityMockDSL.g:4776:7: ruleQualifiedNameInStaticImport |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_79); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4790:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==90) ) { |
| alt80=1; |
| } |
| else if ( (LA80_0==RULE_ID) ) { |
| alt80=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 80, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt80) { |
| case 1 : |
| // InternalEntityMockDSL.g:4791:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalEntityMockDSL.g:4791:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalEntityMockDSL.g:4792:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalEntityMockDSL.g:4792:7: (lv_wildcard_5_0= '*' ) |
| // InternalEntityMockDSL.g:4793:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,90,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_wildcard_5_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_2_0_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "wildcard", true, "*"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4806:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:4806:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:4807:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:4807:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalEntityMockDSL.g:4808:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| lv_memberName_6_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "memberName", |
| lv_memberName_6_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4828:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalEntityMockDSL.g:4828:4: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:4829:5: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:4829:5: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:4830:6: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:4845:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalEntityMockDSL.g:4845:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalEntityMockDSL.g:4846:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalEntityMockDSL.g:4846:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalEntityMockDSL.g:4847:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| lv_importedNamespace_8_0=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedNamespace", |
| lv_importedNamespace_8_0, |
| "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:4865:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalEntityMockDSL.g:4865:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalEntityMockDSL.g:4866:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalEntityMockDSL.g:4866:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalEntityMockDSL.g:4867:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalEntityMockDSL.g:4867:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalEntityMockDSL.g:4868:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,91,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fqnImport_9_0, grammarAccess.getXImportDeclarationAccess().getFqnImportNsKeyword_2_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "fqnImport", true, "ns"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4880:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:4881:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:4881:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalEntityMockDSL.g:4882:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_80); |
| lv_importedFullyQualifiedName_10_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); |
| } |
| set( |
| current, |
| "importedFullyQualifiedName", |
| lv_importedFullyQualifiedName_10_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:4901:3: (otherlv_11= ';' )? |
| int alt82=2; |
| int LA82_0 = input.LA(1); |
| |
| if ( (LA82_0==92) ) { |
| alt82=1; |
| } |
| switch (alt82) { |
| case 1 : |
| // InternalEntityMockDSL.g:4902:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXAnnotation" |
| // InternalEntityMockDSL.g:4911:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:4911:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalEntityMockDSL.g:4912:2: iv_ruleXAnnotation= ruleXAnnotation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotation=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotation" |
| |
| |
| // $ANTLR start "ruleXAnnotation" |
| // InternalEntityMockDSL.g:4918:1: ruleXAnnotation returns [EObject current=null] : ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ; |
| public final EObject ruleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_8=null; |
| EObject lv_elementValuePairs_4_0 = null; |
| |
| EObject lv_elementValuePairs_6_0 = null; |
| |
| EObject lv_value_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:4924:2: ( ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) ) |
| // InternalEntityMockDSL.g:4925:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| { |
| // InternalEntityMockDSL.g:4925:2: ( () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? ) |
| // InternalEntityMockDSL.g:4926:3: () otherlv_1= '@' ( ( ruleQualifiedName ) ) ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| { |
| // InternalEntityMockDSL.g:4926:3: () |
| // InternalEntityMockDSL.g:4927:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,93,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:4937:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:4938:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:4938:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:4939:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getAnnotationTypeJvmAnnotationTypeCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_23); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4953:3: ( ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' )? |
| int alt85=2; |
| int LA85_0 = input.LA(1); |
| |
| if ( (LA85_0==25) && (synpred1_InternalEntityMockDSL())) { |
| alt85=1; |
| } |
| switch (alt85) { |
| case 1 : |
| // InternalEntityMockDSL.g:4954:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalEntityMockDSL.g:4954:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalEntityMockDSL.g:4955:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,25,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:4961:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt84=3; |
| alt84 = dfa84.predict(input); |
| switch (alt84) { |
| case 1 : |
| // InternalEntityMockDSL.g:4962:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:4962:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalEntityMockDSL.g:4963:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalEntityMockDSL.g:4963:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalEntityMockDSL.g:4964:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalEntityMockDSL.g:4973:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalEntityMockDSL.g:4974:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_elementValuePairs_4_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_4_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4991:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop83: |
| do { |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==26) ) { |
| alt83=1; |
| } |
| |
| |
| switch (alt83) { |
| case 1 : |
| // InternalEntityMockDSL.g:4992:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4996:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalEntityMockDSL.g:4997:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalEntityMockDSL.g:5006:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalEntityMockDSL.g:5007:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_elementValuePairs_6_0=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| add( |
| current, |
| "elementValuePairs", |
| lv_elementValuePairs_6_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValuePair"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop83; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5027:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalEntityMockDSL.g:5027:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalEntityMockDSL.g:5028:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalEntityMockDSL.g:5028:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalEntityMockDSL.g:5029:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_value_7_0=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_7_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValueOrCommaList"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotation" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValuePair" |
| // InternalEntityMockDSL.g:5056:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5056:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalEntityMockDSL.g:5057:2: iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValuePair=ruleXAnnotationElementValuePair(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValuePair; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValuePair" |
| // InternalEntityMockDSL.g:5063:1: ruleXAnnotationElementValuePair returns [EObject current=null] : ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ; |
| public final EObject ruleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_value_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5069:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalEntityMockDSL.g:5070:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalEntityMockDSL.g:5070:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalEntityMockDSL.g:5071:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalEntityMockDSL.g:5071:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalEntityMockDSL.g:5072:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalEntityMockDSL.g:5081:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalEntityMockDSL.g:5082:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalEntityMockDSL.g:5082:5: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:5083:6: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:5083:6: ( ruleValidID ) |
| // InternalEntityMockDSL.g:5084:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getElementJvmOperationCrossReference_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,94,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5104:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalEntityMockDSL.g:5105:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalEntityMockDSL.g:5105:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalEntityMockDSL.g:5106:5: lv_value_2_0= ruleXAnnotationElementValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValuePairAccess().getValueXAnnotationElementValueParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_2_0=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValuePairRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationElementValue"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValuePair" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValueOrCommaList" |
| // InternalEntityMockDSL.g:5127:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5127:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalEntityMockDSL.g:5128:2: iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValueOrCommaList=ruleXAnnotationElementValueOrCommaList(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValueOrCommaList; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValueOrCommaList" |
| // InternalEntityMockDSL.g:5134:1: ruleXAnnotationElementValueOrCommaList returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ; |
| public final EObject ruleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_9=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| EObject lv_elements_10_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5140:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) ) |
| // InternalEntityMockDSL.g:5141:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| { |
| // InternalEntityMockDSL.g:5141:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) ) |
| int alt90=2; |
| alt90 = dfa90.predict(input); |
| switch (alt90) { |
| case 1 : |
| // InternalEntityMockDSL.g:5142:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:5142:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:5143:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:5143:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalEntityMockDSL.g:5144:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalEntityMockDSL.g:5151:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalEntityMockDSL.g:5152:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalEntityMockDSL.g:5152:6: () |
| // InternalEntityMockDSL.g:5153:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5169:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( ((LA87_0>=RULE_ID && LA87_0<=RULE_DECIMAL)||LA87_0==14||LA87_0==25||LA87_0==77||(LA87_0>=87 && LA87_0<=89)||LA87_0==93||(LA87_0>=95 && LA87_0<=96)||LA87_0==103||LA87_0==119||LA87_0==123||LA87_0==129||LA87_0==131||(LA87_0>=135 && LA87_0<=137)||(LA87_0>=139 && LA87_0<=148)||LA87_0==150) ) { |
| alt87=1; |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalEntityMockDSL.g:5170:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:5170:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5171:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5171:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5172:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5189:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop86: |
| do { |
| int alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==26) ) { |
| alt86=1; |
| } |
| |
| |
| switch (alt86) { |
| case 1 : |
| // InternalEntityMockDSL.g:5190:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5194:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5195:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5195:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5196:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop86; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5221:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalEntityMockDSL.g:5221:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalEntityMockDSL.g:5222:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5230:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==26) ) { |
| alt89=1; |
| } |
| switch (alt89) { |
| case 1 : |
| // InternalEntityMockDSL.g:5231:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalEntityMockDSL.g:5231:5: () |
| // InternalEntityMockDSL.g:5232:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5238:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt88=0; |
| loop88: |
| do { |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( (LA88_0==26) ) { |
| alt88=1; |
| } |
| |
| |
| switch (alt88) { |
| case 1 : |
| // InternalEntityMockDSL.g:5239:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5243:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5244:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5244:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5245:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| lv_elements_10_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueOrCommaListRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_10_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt88 >= 1 ) break loop88; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(88, input); |
| throw eee; |
| } |
| cnt88++; |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValueOrCommaList" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationElementValue" |
| // InternalEntityMockDSL.g:5269:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5269:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalEntityMockDSL.g:5270:2: iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationElementValue=ruleXAnnotationElementValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationElementValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "ruleXAnnotationElementValue" |
| // InternalEntityMockDSL.g:5276:1: ruleXAnnotationElementValue returns [EObject current=null] : ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ; |
| public final EObject ruleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| EObject this_XAnnotationOrExpression_7 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5282:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5283:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5283:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt93=2; |
| alt93 = dfa93.predict(input); |
| switch (alt93) { |
| case 1 : |
| // InternalEntityMockDSL.g:5284:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:5284:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:5285:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:5285:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalEntityMockDSL.g:5286:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalEntityMockDSL.g:5293:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalEntityMockDSL.g:5294:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalEntityMockDSL.g:5294:6: () |
| // InternalEntityMockDSL.g:5295:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5311:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( ((LA92_0>=RULE_ID && LA92_0<=RULE_DECIMAL)||LA92_0==14||LA92_0==25||LA92_0==77||(LA92_0>=87 && LA92_0<=89)||LA92_0==93||(LA92_0>=95 && LA92_0<=96)||LA92_0==103||LA92_0==119||LA92_0==123||LA92_0==129||LA92_0==131||(LA92_0>=135 && LA92_0<=137)||(LA92_0>=139 && LA92_0<=148)||LA92_0==150) ) { |
| alt92=1; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalEntityMockDSL.g:5312:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:5312:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5313:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5313:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5314:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_3_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5331:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop91: |
| do { |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==26) ) { |
| alt91=1; |
| } |
| |
| |
| switch (alt91) { |
| case 1 : |
| // InternalEntityMockDSL.g:5332:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5336:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5337:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5337:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5338:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_5_0=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAnnotationElementValueRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotationOrExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop91; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5363:3: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getXAnnotationOrExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationElementValue" |
| |
| |
| // $ANTLR start "entryRuleXAnnotationOrExpression" |
| // InternalEntityMockDSL.g:5375:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5375:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalEntityMockDSL.g:5376:2: iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAnnotationOrExpression=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAnnotationOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "ruleXAnnotationOrExpression" |
| // InternalEntityMockDSL.g:5382:1: ruleXAnnotationOrExpression returns [EObject current=null] : (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAnnotation_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5388:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:5389:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:5389:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==93) ) { |
| alt94=1; |
| } |
| else if ( ((LA94_0>=RULE_ID && LA94_0<=RULE_DECIMAL)||LA94_0==14||LA94_0==25||LA94_0==77||(LA94_0>=87 && LA94_0<=89)||(LA94_0>=95 && LA94_0<=96)||LA94_0==103||LA94_0==119||LA94_0==123||LA94_0==129||LA94_0==131||(LA94_0>=135 && LA94_0<=137)||(LA94_0>=139 && LA94_0<=148)||LA94_0==150) ) { |
| alt94=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 94, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt94) { |
| case 1 : |
| // InternalEntityMockDSL.g:5390:3: this_XAnnotation_0= ruleXAnnotation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXAnnotationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAnnotation_0=ruleXAnnotation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5399:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationOrExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAnnotationOrExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpression" |
| // InternalEntityMockDSL.g:5411:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5411:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalEntityMockDSL.g:5412:2: iv_ruleXExpression= ruleXExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpression=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpression" |
| |
| |
| // $ANTLR start "ruleXExpression" |
| // InternalEntityMockDSL.g:5418:1: ruleXExpression returns [EObject current=null] : this_XAssignment_0= ruleXAssignment ; |
| public final EObject ruleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAssignment_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5424:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5425:2: this_XAssignment_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XAssignment_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAssignment_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpression" |
| |
| |
| // $ANTLR start "entryRuleXAssignment" |
| // InternalEntityMockDSL.g:5436:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5436:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalEntityMockDSL.g:5437:2: iv_ruleXAssignment= ruleXAssignment EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAssignmentRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAssignment=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAssignment; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAssignment" |
| |
| |
| // $ANTLR start "ruleXAssignment" |
| // InternalEntityMockDSL.g:5443:1: ruleXAssignment returns [EObject current=null] : ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ; |
| public final EObject ruleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_value_3_0 = null; |
| |
| EObject this_XOrExpression_4 = null; |
| |
| EObject lv_rightOperand_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5449:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalEntityMockDSL.g:5450:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalEntityMockDSL.g:5450:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt96=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA96_1 = input.LA(2); |
| |
| if ( (LA96_1==94) ) { |
| alt96=1; |
| } |
| else if ( (LA96_1==EOF||(LA96_1>=RULE_ID && LA96_1<=RULE_DECIMAL)||(LA96_1>=14 && LA96_1<=15)||(LA96_1>=25 && LA96_1<=27)||LA96_1==31||LA96_1==34||(LA96_1>=77 && LA96_1<=78)||(LA96_1>=87 && LA96_1<=90)||LA96_1==92||(LA96_1>=95 && LA96_1<=127)||(LA96_1>=129 && LA96_1<=151)) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 139: |
| { |
| int LA96_2 = input.LA(2); |
| |
| if ( (LA96_2==94) ) { |
| alt96=1; |
| } |
| else if ( (LA96_2==EOF||(LA96_2>=RULE_ID && LA96_2<=RULE_DECIMAL)||(LA96_2>=14 && LA96_2<=15)||(LA96_2>=25 && LA96_2<=27)||LA96_2==31||LA96_2==34||(LA96_2>=77 && LA96_2<=78)||(LA96_2>=87 && LA96_2<=90)||LA96_2==92||(LA96_2>=95 && LA96_2<=127)||(LA96_2>=129 && LA96_2<=151)) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 88: |
| { |
| int LA96_3 = input.LA(2); |
| |
| if ( (LA96_3==94) ) { |
| alt96=1; |
| } |
| else if ( (LA96_3==EOF||(LA96_3>=RULE_ID && LA96_3<=RULE_DECIMAL)||(LA96_3>=14 && LA96_3<=15)||(LA96_3>=25 && LA96_3<=27)||LA96_3==31||LA96_3==34||(LA96_3>=77 && LA96_3<=78)||(LA96_3>=87 && LA96_3<=90)||LA96_3==92||(LA96_3>=95 && LA96_3<=127)||(LA96_3>=129 && LA96_3<=151)) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 87: |
| { |
| int LA96_4 = input.LA(2); |
| |
| if ( (LA96_4==94) ) { |
| alt96=1; |
| } |
| else if ( (LA96_4==EOF||(LA96_4>=RULE_ID && LA96_4<=RULE_DECIMAL)||(LA96_4>=14 && LA96_4<=15)||(LA96_4>=25 && LA96_4<=27)||LA96_4==31||LA96_4==34||(LA96_4>=77 && LA96_4<=78)||(LA96_4>=87 && LA96_4<=90)||LA96_4==92||(LA96_4>=95 && LA96_4<=127)||(LA96_4>=129 && LA96_4<=151)) ) { |
| alt96=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 89: |
| { |
| int LA96_5 = input.LA(2); |
| |
| if ( (LA96_5==EOF||(LA96_5>=RULE_ID && LA96_5<=RULE_DECIMAL)||(LA96_5>=14 && LA96_5<=15)||(LA96_5>=25 && LA96_5<=27)||LA96_5==31||LA96_5==34||(LA96_5>=77 && LA96_5<=78)||(LA96_5>=87 && LA96_5<=90)||LA96_5==92||(LA96_5>=95 && LA96_5<=127)||(LA96_5>=129 && LA96_5<=151)) ) { |
| alt96=2; |
| } |
| else if ( (LA96_5==94) ) { |
| alt96=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 25: |
| case 77: |
| case 95: |
| case 96: |
| case 103: |
| case 119: |
| case 123: |
| case 129: |
| case 131: |
| case 135: |
| case 136: |
| case 137: |
| case 140: |
| case 141: |
| case 142: |
| case 143: |
| case 144: |
| case 145: |
| case 146: |
| case 147: |
| case 148: |
| case 150: |
| { |
| alt96=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 96, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt96) { |
| case 1 : |
| // InternalEntityMockDSL.g:5451:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalEntityMockDSL.g:5451:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalEntityMockDSL.g:5452:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:5452:4: () |
| // InternalEntityMockDSL.g:5453:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5459:4: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:5460:5: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:5460:5: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:5461:6: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5482:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:5483:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:5483:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5484:6: lv_value_3_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_3_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5503:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:5503:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalEntityMockDSL.g:5504:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5512:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt95=2; |
| alt95 = dfa95.predict(input); |
| switch (alt95) { |
| case 1 : |
| // InternalEntityMockDSL.g:5513:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:5513:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalEntityMockDSL.g:5514:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalEntityMockDSL.g:5524:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalEntityMockDSL.g:5525:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalEntityMockDSL.g:5525:7: () |
| // InternalEntityMockDSL.g:5526:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5532:7: ( ( ruleOpMultiAssign ) ) |
| // InternalEntityMockDSL.g:5533:8: ( ruleOpMultiAssign ) |
| { |
| // InternalEntityMockDSL.g:5533:8: ( ruleOpMultiAssign ) |
| // InternalEntityMockDSL.g:5534:9: ruleOpMultiAssign |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAssignmentRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5550:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:5551:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:5551:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5552:7: lv_rightOperand_7_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_rightOperand_7_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAssignmentRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAssignment" |
| |
| |
| // $ANTLR start "entryRuleOpSingleAssign" |
| // InternalEntityMockDSL.g:5575:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5575:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalEntityMockDSL.g:5576:2: iv_ruleOpSingleAssign= ruleOpSingleAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpSingleAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpSingleAssign=ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpSingleAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpSingleAssign" |
| |
| |
| // $ANTLR start "ruleOpSingleAssign" |
| // InternalEntityMockDSL.g:5582:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5588:2: (kw= '=' ) |
| // InternalEntityMockDSL.g:5589:2: kw= '=' |
| { |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpSingleAssign" |
| |
| |
| // $ANTLR start "entryRuleOpMultiAssign" |
| // InternalEntityMockDSL.g:5597:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5597:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalEntityMockDSL.g:5598:2: iv_ruleOpMultiAssign= ruleOpMultiAssign EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiAssignRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMultiAssign=ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMultiAssign.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMultiAssign" |
| |
| |
| // $ANTLR start "ruleOpMultiAssign" |
| // InternalEntityMockDSL.g:5604:1: ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ; |
| public final AntlrDatatypeRuleToken ruleOpMultiAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5610:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalEntityMockDSL.g:5611:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalEntityMockDSL.g:5611:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt98=7; |
| switch ( input.LA(1) ) { |
| case 98: |
| { |
| alt98=1; |
| } |
| break; |
| case 99: |
| { |
| alt98=2; |
| } |
| break; |
| case 100: |
| { |
| alt98=3; |
| } |
| break; |
| case 101: |
| { |
| alt98=4; |
| } |
| break; |
| case 102: |
| { |
| alt98=5; |
| } |
| break; |
| case 103: |
| { |
| alt98=6; |
| } |
| break; |
| case 104: |
| { |
| alt98=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 98, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt98) { |
| case 1 : |
| // InternalEntityMockDSL.g:5612:3: kw= '+=' |
| { |
| kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5618:3: kw= '-=' |
| { |
| kw=(Token)match(input,99,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:5624:3: kw= '*=' |
| { |
| kw=(Token)match(input,100,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:5630:3: kw= '/=' |
| { |
| kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:5636:3: kw= '%=' |
| { |
| kw=(Token)match(input,102,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:5642:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalEntityMockDSL.g:5642:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalEntityMockDSL.g:5643:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,103,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,103,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:5660:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalEntityMockDSL.g:5660:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalEntityMockDSL.g:5661:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,104,FOLLOW_91); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5666:4: (kw= '>' )? |
| int alt97=2; |
| int LA97_0 = input.LA(1); |
| |
| if ( (LA97_0==104) ) { |
| alt97=1; |
| } |
| switch (alt97) { |
| case 1 : |
| // InternalEntityMockDSL.g:5667:5: kw= '>' |
| { |
| kw=(Token)match(input,104,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,105,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMultiAssign" |
| |
| |
| // $ANTLR start "entryRuleXOrExpression" |
| // InternalEntityMockDSL.g:5683:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5683:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalEntityMockDSL.g:5684:2: iv_ruleXOrExpression= ruleXOrExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOrExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOrExpression=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOrExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOrExpression" |
| |
| |
| // $ANTLR start "ruleXOrExpression" |
| // InternalEntityMockDSL.g:5690:1: ruleXOrExpression returns [EObject current=null] : (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ; |
| public final EObject ruleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAndExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5696:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:5697:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5697:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalEntityMockDSL.g:5698:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5706:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop99: |
| do { |
| int alt99=2; |
| int LA99_0 = input.LA(1); |
| |
| if ( (LA99_0==106) ) { |
| int LA99_2 = input.LA(2); |
| |
| if ( (synpred8_InternalEntityMockDSL()) ) { |
| alt99=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt99) { |
| case 1 : |
| // InternalEntityMockDSL.g:5707:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalEntityMockDSL.g:5707:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalEntityMockDSL.g:5708:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalEntityMockDSL.g:5718:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalEntityMockDSL.g:5719:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalEntityMockDSL.g:5719:6: () |
| // InternalEntityMockDSL.g:5720:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5726:6: ( ( ruleOpOr ) ) |
| // InternalEntityMockDSL.g:5727:7: ( ruleOpOr ) |
| { |
| // InternalEntityMockDSL.g:5727:7: ( ruleOpOr ) |
| // InternalEntityMockDSL.g:5728:8: ruleOpOr |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOrExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5744:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalEntityMockDSL.g:5745:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalEntityMockDSL.g:5745:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalEntityMockDSL.g:5746:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| lv_rightOperand_3_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAndExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop99; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalEntityMockDSL.g:5768:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5768:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalEntityMockDSL.g:5769:2: iv_ruleOpOr= ruleOpOr EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOrRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOr=ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOr.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOr" |
| |
| |
| // $ANTLR start "ruleOpOr" |
| // InternalEntityMockDSL.g:5775:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5781:2: (kw= '||' ) |
| // InternalEntityMockDSL.g:5782:2: kw= '||' |
| { |
| kw=(Token)match(input,106,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOr" |
| |
| |
| // $ANTLR start "entryRuleXAndExpression" |
| // InternalEntityMockDSL.g:5790:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5790:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalEntityMockDSL.g:5791:2: iv_ruleXAndExpression= ruleXAndExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAndExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAndExpression=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAndExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAndExpression" |
| |
| |
| // $ANTLR start "ruleXAndExpression" |
| // InternalEntityMockDSL.g:5797:1: ruleXAndExpression returns [EObject current=null] : (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ; |
| public final EObject ruleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XEqualityExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5803:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:5804:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5804:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalEntityMockDSL.g:5805:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5813:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop100: |
| do { |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==107) ) { |
| int LA100_2 = input.LA(2); |
| |
| if ( (synpred9_InternalEntityMockDSL()) ) { |
| alt100=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt100) { |
| case 1 : |
| // InternalEntityMockDSL.g:5814:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalEntityMockDSL.g:5814:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalEntityMockDSL.g:5815:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalEntityMockDSL.g:5825:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalEntityMockDSL.g:5826:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalEntityMockDSL.g:5826:6: () |
| // InternalEntityMockDSL.g:5827:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5833:6: ( ( ruleOpAnd ) ) |
| // InternalEntityMockDSL.g:5834:7: ( ruleOpAnd ) |
| { |
| // InternalEntityMockDSL.g:5834:7: ( ruleOpAnd ) |
| // InternalEntityMockDSL.g:5835:8: ruleOpAnd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAndExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5851:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalEntityMockDSL.g:5852:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalEntityMockDSL.g:5852:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalEntityMockDSL.g:5853:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| lv_rightOperand_3_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop100; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalEntityMockDSL.g:5875:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5875:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalEntityMockDSL.g:5876:2: iv_ruleOpAnd= ruleOpAnd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAndRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAnd=ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAnd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAnd" |
| |
| |
| // $ANTLR start "ruleOpAnd" |
| // InternalEntityMockDSL.g:5882:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5888:2: (kw= '&&' ) |
| // InternalEntityMockDSL.g:5889:2: kw= '&&' |
| { |
| kw=(Token)match(input,107,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAnd" |
| |
| |
| // $ANTLR start "entryRuleXEqualityExpression" |
| // InternalEntityMockDSL.g:5897:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5897:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalEntityMockDSL.g:5898:2: iv_ruleXEqualityExpression= ruleXEqualityExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXEqualityExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXEqualityExpression=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXEqualityExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXEqualityExpression" |
| |
| |
| // $ANTLR start "ruleXEqualityExpression" |
| // InternalEntityMockDSL.g:5904:1: ruleXEqualityExpression returns [EObject current=null] : (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ; |
| public final EObject ruleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XRelationalExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5910:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:5911:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5911:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalEntityMockDSL.g:5912:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5920:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop101: |
| do { |
| int alt101=2; |
| switch ( input.LA(1) ) { |
| case 108: |
| { |
| int LA101_2 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt101=1; |
| } |
| |
| |
| } |
| break; |
| case 109: |
| { |
| int LA101_3 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt101=1; |
| } |
| |
| |
| } |
| break; |
| case 110: |
| { |
| int LA101_4 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt101=1; |
| } |
| |
| |
| } |
| break; |
| case 111: |
| { |
| int LA101_5 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt101=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt101) { |
| case 1 : |
| // InternalEntityMockDSL.g:5921:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalEntityMockDSL.g:5921:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalEntityMockDSL.g:5922:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalEntityMockDSL.g:5932:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalEntityMockDSL.g:5933:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalEntityMockDSL.g:5933:6: () |
| // InternalEntityMockDSL.g:5934:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5940:6: ( ( ruleOpEquality ) ) |
| // InternalEntityMockDSL.g:5941:7: ( ruleOpEquality ) |
| { |
| // InternalEntityMockDSL.g:5941:7: ( ruleOpEquality ) |
| // InternalEntityMockDSL.g:5942:8: ruleOpEquality |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXEqualityExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5958:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalEntityMockDSL.g:5959:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalEntityMockDSL.g:5959:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalEntityMockDSL.g:5960:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| lv_rightOperand_3_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop101; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalEntityMockDSL.g:5982:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:5982:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalEntityMockDSL.g:5983:2: iv_ruleOpEquality= ruleOpEquality EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpEqualityRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpEquality=ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpEquality.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpEquality" |
| |
| |
| // $ANTLR start "ruleOpEquality" |
| // InternalEntityMockDSL.g:5989:1: ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ; |
| public final AntlrDatatypeRuleToken ruleOpEquality() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:5995:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalEntityMockDSL.g:5996:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalEntityMockDSL.g:5996:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt102=4; |
| switch ( input.LA(1) ) { |
| case 108: |
| { |
| alt102=1; |
| } |
| break; |
| case 109: |
| { |
| alt102=2; |
| } |
| break; |
| case 110: |
| { |
| alt102=3; |
| } |
| break; |
| case 111: |
| { |
| alt102=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 102, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt102) { |
| case 1 : |
| // InternalEntityMockDSL.g:5997:3: kw= '==' |
| { |
| kw=(Token)match(input,108,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6003:3: kw= '!=' |
| { |
| kw=(Token)match(input,109,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6009:3: kw= '===' |
| { |
| kw=(Token)match(input,110,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6015:3: kw= '!==' |
| { |
| kw=(Token)match(input,111,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpEquality" |
| |
| |
| // $ANTLR start "entryRuleXRelationalExpression" |
| // InternalEntityMockDSL.g:6024:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6024:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalEntityMockDSL.g:6025:2: iv_ruleXRelationalExpression= ruleXRelationalExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXRelationalExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXRelationalExpression=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXRelationalExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXRelationalExpression" |
| |
| |
| // $ANTLR start "ruleXRelationalExpression" |
| // InternalEntityMockDSL.g:6031:1: ruleXRelationalExpression returns [EObject current=null] : (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ; |
| public final EObject ruleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XOtherOperatorExpression_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| EObject lv_rightOperand_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6037:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalEntityMockDSL.g:6038:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6038:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalEntityMockDSL.g:6039:3: this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6047:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop103: |
| do { |
| int alt103=3; |
| switch ( input.LA(1) ) { |
| case 103: |
| { |
| int LA103_2 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt103=2; |
| } |
| |
| |
| } |
| break; |
| case 104: |
| { |
| int LA103_3 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt103=2; |
| } |
| |
| |
| } |
| break; |
| case 112: |
| { |
| int LA103_4 = input.LA(2); |
| |
| if ( (synpred11_InternalEntityMockDSL()) ) { |
| alt103=1; |
| } |
| |
| |
| } |
| break; |
| case 105: |
| { |
| int LA103_5 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt103=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt103) { |
| case 1 : |
| // InternalEntityMockDSL.g:6048:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:6048:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:6049:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalEntityMockDSL.g:6049:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalEntityMockDSL.g:6050:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalEntityMockDSL.g:6056:6: ( () otherlv_2= 'instanceof' ) |
| // InternalEntityMockDSL.g:6057:7: () otherlv_2= 'instanceof' |
| { |
| // InternalEntityMockDSL.g:6057:7: () |
| // InternalEntityMockDSL.g:6058:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,112,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6070:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:6071:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:6071:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:6072:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6091:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:6091:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalEntityMockDSL.g:6092:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6092:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalEntityMockDSL.g:6093:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalEntityMockDSL.g:6103:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalEntityMockDSL.g:6104:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalEntityMockDSL.g:6104:7: () |
| // InternalEntityMockDSL.g:6105:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6111:7: ( ( ruleOpCompare ) ) |
| // InternalEntityMockDSL.g:6112:8: ( ruleOpCompare ) |
| { |
| // InternalEntityMockDSL.g:6112:8: ( ruleOpCompare ) |
| // InternalEntityMockDSL.g:6113:9: ruleOpCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXRelationalExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6129:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalEntityMockDSL.g:6130:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalEntityMockDSL.g:6130:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalEntityMockDSL.g:6131:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| lv_rightOperand_6_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop103; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalEntityMockDSL.g:6154:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6154:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalEntityMockDSL.g:6155:2: iv_ruleOpCompare= ruleOpCompare EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpCompareRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpCompare=ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpCompare.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpCompare" |
| |
| |
| // $ANTLR start "ruleOpCompare" |
| // InternalEntityMockDSL.g:6161:1: ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ; |
| public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6167:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalEntityMockDSL.g:6168:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalEntityMockDSL.g:6168:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt104=4; |
| switch ( input.LA(1) ) { |
| case 105: |
| { |
| alt104=1; |
| } |
| break; |
| case 103: |
| { |
| int LA104_2 = input.LA(2); |
| |
| if ( (LA104_2==EOF||(LA104_2>=RULE_ID && LA104_2<=RULE_DECIMAL)||LA104_2==14||LA104_2==25||LA104_2==77||(LA104_2>=87 && LA104_2<=89)||(LA104_2>=95 && LA104_2<=96)||LA104_2==103||LA104_2==119||LA104_2==123||LA104_2==129||LA104_2==131||(LA104_2>=135 && LA104_2<=137)||(LA104_2>=139 && LA104_2<=148)||LA104_2==150) ) { |
| alt104=4; |
| } |
| else if ( (LA104_2==94) ) { |
| alt104=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 104, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 104: |
| { |
| alt104=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 104, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt104) { |
| case 1 : |
| // InternalEntityMockDSL.g:6169:3: kw= '>=' |
| { |
| kw=(Token)match(input,105,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6175:3: (kw= '<' kw= '=' ) |
| { |
| // InternalEntityMockDSL.g:6175:3: (kw= '<' kw= '=' ) |
| // InternalEntityMockDSL.g:6176:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,103,FOLLOW_83); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6188:3: kw= '>' |
| { |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6194:3: kw= '<' |
| { |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpCompare" |
| |
| |
| // $ANTLR start "entryRuleXOtherOperatorExpression" |
| // InternalEntityMockDSL.g:6203:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6203:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalEntityMockDSL.g:6204:2: iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXOtherOperatorExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "ruleXOtherOperatorExpression" |
| // InternalEntityMockDSL.g:6210:1: ruleXOtherOperatorExpression returns [EObject current=null] : (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ; |
| public final EObject ruleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XAdditiveExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6216:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:6217:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6217:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalEntityMockDSL.g:6218:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6226:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop105: |
| do { |
| int alt105=2; |
| alt105 = dfa105.predict(input); |
| switch (alt105) { |
| case 1 : |
| // InternalEntityMockDSL.g:6227:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6227:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalEntityMockDSL.g:6228:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalEntityMockDSL.g:6238:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalEntityMockDSL.g:6239:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalEntityMockDSL.g:6239:6: () |
| // InternalEntityMockDSL.g:6240:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6246:6: ( ( ruleOpOther ) ) |
| // InternalEntityMockDSL.g:6247:7: ( ruleOpOther ) |
| { |
| // InternalEntityMockDSL.g:6247:7: ( ruleOpOther ) |
| // InternalEntityMockDSL.g:6248:8: ruleOpOther |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6264:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalEntityMockDSL.g:6265:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalEntityMockDSL.g:6265:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalEntityMockDSL.g:6266:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| lv_rightOperand_3_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop105; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalEntityMockDSL.g:6288:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6288:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalEntityMockDSL.g:6289:2: iv_ruleOpOther= ruleOpOther EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpOtherRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpOther=ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpOther.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpOther" |
| |
| |
| // $ANTLR start "ruleOpOther" |
| // InternalEntityMockDSL.g:6295:1: ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ; |
| public final AntlrDatatypeRuleToken ruleOpOther() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6301:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalEntityMockDSL.g:6302:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalEntityMockDSL.g:6302:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt108=9; |
| alt108 = dfa108.predict(input); |
| switch (alt108) { |
| case 1 : |
| // InternalEntityMockDSL.g:6303:3: kw= '->' |
| { |
| kw=(Token)match(input,113,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6309:3: kw= '..<' |
| { |
| kw=(Token)match(input,114,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6315:3: (kw= '>' kw= '..' ) |
| { |
| // InternalEntityMockDSL.g:6315:3: (kw= '>' kw= '..' ) |
| // InternalEntityMockDSL.g:6316:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,104,FOLLOW_98); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,115,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6328:3: kw= '..' |
| { |
| kw=(Token)match(input,115,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:6334:3: kw= '=>' |
| { |
| kw=(Token)match(input,116,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:6340:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalEntityMockDSL.g:6340:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalEntityMockDSL.g:6341:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,104,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalEntityMockDSL.g:6346:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==104) ) { |
| int LA106_1 = input.LA(2); |
| |
| if ( (LA106_1==EOF||(LA106_1>=RULE_ID && LA106_1<=RULE_DECIMAL)||LA106_1==14||LA106_1==25||LA106_1==77||(LA106_1>=87 && LA106_1<=89)||(LA106_1>=95 && LA106_1<=96)||LA106_1==103||LA106_1==119||LA106_1==123||LA106_1==129||LA106_1==131||(LA106_1>=135 && LA106_1<=137)||(LA106_1>=139 && LA106_1<=148)||LA106_1==150) ) { |
| alt106=2; |
| } |
| else if ( (LA106_1==104) && (synpred14_InternalEntityMockDSL())) { |
| alt106=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 106, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 106, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt106) { |
| case 1 : |
| // InternalEntityMockDSL.g:6347:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalEntityMockDSL.g:6347:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalEntityMockDSL.g:6348:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalEntityMockDSL.g:6353:6: (kw= '>' kw= '>' ) |
| // InternalEntityMockDSL.g:6354:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,104,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6367:5: kw= '>' |
| { |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:6375:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalEntityMockDSL.g:6375:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalEntityMockDSL.g:6376:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,103,FOLLOW_100); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:6381:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt107=3; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==103) ) { |
| int LA107_1 = input.LA(2); |
| |
| if ( (synpred15_InternalEntityMockDSL()) ) { |
| alt107=1; |
| } |
| else if ( (true) ) { |
| alt107=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA107_0==116) ) { |
| alt107=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt107) { |
| case 1 : |
| // InternalEntityMockDSL.g:6382:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalEntityMockDSL.g:6382:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalEntityMockDSL.g:6383:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalEntityMockDSL.g:6388:6: (kw= '<' kw= '<' ) |
| // InternalEntityMockDSL.g:6389:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,103,FOLLOW_90); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); |
| |
| } |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6402:5: kw= '<' |
| { |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6408:5: kw= '=>' |
| { |
| kw=(Token)match(input,116,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 8 : |
| // InternalEntityMockDSL.g:6416:3: kw= '<>' |
| { |
| kw=(Token)match(input,117,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalEntityMockDSL.g:6422:3: kw= '?:' |
| { |
| kw=(Token)match(input,118,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpOther" |
| |
| |
| // $ANTLR start "entryRuleXAdditiveExpression" |
| // InternalEntityMockDSL.g:6431:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6431:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalEntityMockDSL.g:6432:2: iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXAdditiveExpression=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXAdditiveExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXAdditiveExpression" |
| |
| |
| // $ANTLR start "ruleXAdditiveExpression" |
| // InternalEntityMockDSL.g:6438:1: ruleXAdditiveExpression returns [EObject current=null] : (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ; |
| public final EObject ruleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMultiplicativeExpression_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6444:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:6445:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6445:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalEntityMockDSL.g:6446:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6454:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop109: |
| do { |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==119) ) { |
| int LA109_2 = input.LA(2); |
| |
| if ( (synpred16_InternalEntityMockDSL()) ) { |
| alt109=1; |
| } |
| |
| |
| } |
| else if ( (LA109_0==77) ) { |
| int LA109_3 = input.LA(2); |
| |
| if ( (synpred16_InternalEntityMockDSL()) ) { |
| alt109=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt109) { |
| case 1 : |
| // InternalEntityMockDSL.g:6455:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6455:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalEntityMockDSL.g:6456:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalEntityMockDSL.g:6466:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalEntityMockDSL.g:6467:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalEntityMockDSL.g:6467:6: () |
| // InternalEntityMockDSL.g:6468:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6474:6: ( ( ruleOpAdd ) ) |
| // InternalEntityMockDSL.g:6475:7: ( ruleOpAdd ) |
| { |
| // InternalEntityMockDSL.g:6475:7: ( ruleOpAdd ) |
| // InternalEntityMockDSL.g:6476:8: ruleOpAdd |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6492:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalEntityMockDSL.g:6493:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalEntityMockDSL.g:6493:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalEntityMockDSL.g:6494:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_101); |
| lv_rightOperand_3_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop109; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalEntityMockDSL.g:6516:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6516:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalEntityMockDSL.g:6517:2: iv_ruleOpAdd= ruleOpAdd EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpAddRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpAdd=ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpAdd.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpAdd" |
| |
| |
| // $ANTLR start "ruleOpAdd" |
| // InternalEntityMockDSL.g:6523:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6529:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalEntityMockDSL.g:6530:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalEntityMockDSL.g:6530:2: (kw= '+' | kw= '-' ) |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==119) ) { |
| alt110=1; |
| } |
| else if ( (LA110_0==77) ) { |
| alt110=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 110, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt110) { |
| case 1 : |
| // InternalEntityMockDSL.g:6531:3: kw= '+' |
| { |
| kw=(Token)match(input,119,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6537:3: kw= '-' |
| { |
| kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpAdd" |
| |
| |
| // $ANTLR start "entryRuleXMultiplicativeExpression" |
| // InternalEntityMockDSL.g:6546:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6546:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalEntityMockDSL.g:6547:2: iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMultiplicativeExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "ruleXMultiplicativeExpression" |
| // InternalEntityMockDSL.g:6553:1: ruleXMultiplicativeExpression returns [EObject current=null] : (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ; |
| public final EObject ruleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XUnaryOperation_0 = null; |
| |
| EObject lv_rightOperand_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6559:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalEntityMockDSL.g:6560:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6560:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalEntityMockDSL.g:6561:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6569:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop111: |
| do { |
| int alt111=2; |
| switch ( input.LA(1) ) { |
| case 90: |
| { |
| int LA111_2 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt111=1; |
| } |
| |
| |
| } |
| break; |
| case 120: |
| { |
| int LA111_3 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt111=1; |
| } |
| |
| |
| } |
| break; |
| case 121: |
| { |
| int LA111_4 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt111=1; |
| } |
| |
| |
| } |
| break; |
| case 122: |
| { |
| int LA111_5 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt111=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt111) { |
| case 1 : |
| // InternalEntityMockDSL.g:6570:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalEntityMockDSL.g:6570:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalEntityMockDSL.g:6571:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalEntityMockDSL.g:6581:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalEntityMockDSL.g:6582:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalEntityMockDSL.g:6582:6: () |
| // InternalEntityMockDSL.g:6583:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6589:6: ( ( ruleOpMulti ) ) |
| // InternalEntityMockDSL.g:6590:7: ( ruleOpMulti ) |
| { |
| // InternalEntityMockDSL.g:6590:7: ( ruleOpMulti ) |
| // InternalEntityMockDSL.g:6591:8: ruleOpMulti |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6607:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalEntityMockDSL.g:6608:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalEntityMockDSL.g:6608:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalEntityMockDSL.g:6609:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| lv_rightOperand_3_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); |
| } |
| set( |
| current, |
| "rightOperand", |
| lv_rightOperand_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop111; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalEntityMockDSL.g:6631:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6631:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalEntityMockDSL.g:6632:2: iv_ruleOpMulti= ruleOpMulti EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpMultiRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpMulti=ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpMulti.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpMulti" |
| |
| |
| // $ANTLR start "ruleOpMulti" |
| // InternalEntityMockDSL.g:6638:1: ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ; |
| public final AntlrDatatypeRuleToken ruleOpMulti() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6644:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalEntityMockDSL.g:6645:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalEntityMockDSL.g:6645:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt112=4; |
| switch ( input.LA(1) ) { |
| case 90: |
| { |
| alt112=1; |
| } |
| break; |
| case 120: |
| { |
| alt112=2; |
| } |
| break; |
| case 121: |
| { |
| alt112=3; |
| } |
| break; |
| case 122: |
| { |
| alt112=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 112, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt112) { |
| case 1 : |
| // InternalEntityMockDSL.g:6646:3: kw= '*' |
| { |
| kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6652:3: kw= '**' |
| { |
| kw=(Token)match(input,120,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6658:3: kw= '/' |
| { |
| kw=(Token)match(input,121,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6664:3: kw= '%' |
| { |
| kw=(Token)match(input,122,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMulti" |
| |
| |
| // $ANTLR start "entryRuleXUnaryOperation" |
| // InternalEntityMockDSL.g:6673:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6673:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalEntityMockDSL.g:6674:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXUnaryOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXUnaryOperation=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXUnaryOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXUnaryOperation" |
| |
| |
| // $ANTLR start "ruleXUnaryOperation" |
| // InternalEntityMockDSL.g:6680:1: ruleXUnaryOperation returns [EObject current=null] : ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ; |
| public final EObject ruleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_operand_2_0 = null; |
| |
| EObject this_XCastedExpression_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6686:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalEntityMockDSL.g:6687:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalEntityMockDSL.g:6687:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==77||LA113_0==119||LA113_0==123) ) { |
| alt113=1; |
| } |
| else if ( ((LA113_0>=RULE_ID && LA113_0<=RULE_DECIMAL)||LA113_0==14||LA113_0==25||(LA113_0>=87 && LA113_0<=89)||(LA113_0>=95 && LA113_0<=96)||LA113_0==103||LA113_0==129||LA113_0==131||(LA113_0>=135 && LA113_0<=137)||(LA113_0>=139 && LA113_0<=148)||LA113_0==150) ) { |
| alt113=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 113, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt113) { |
| case 1 : |
| // InternalEntityMockDSL.g:6688:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalEntityMockDSL.g:6688:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalEntityMockDSL.g:6689:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalEntityMockDSL.g:6689:4: () |
| // InternalEntityMockDSL.g:6690:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6696:4: ( ( ruleOpUnary ) ) |
| // InternalEntityMockDSL.g:6697:5: ( ruleOpUnary ) |
| { |
| // InternalEntityMockDSL.g:6697:5: ( ruleOpUnary ) |
| // InternalEntityMockDSL.g:6698:6: ruleOpUnary |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXUnaryOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6712:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalEntityMockDSL.g:6713:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalEntityMockDSL.g:6713:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalEntityMockDSL.g:6714:6: lv_operand_2_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_operand_2_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); |
| } |
| set( |
| current, |
| "operand", |
| lv_operand_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6733:3: this_XCastedExpression_3= ruleXCastedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCastedExpression_3=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCastedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXUnaryOperation" |
| |
| |
| // $ANTLR start "entryRuleOpUnary" |
| // InternalEntityMockDSL.g:6745:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6745:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalEntityMockDSL.g:6746:2: iv_ruleOpUnary= ruleOpUnary EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpUnaryRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpUnary=ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpUnary.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpUnary" |
| |
| |
| // $ANTLR start "ruleOpUnary" |
| // InternalEntityMockDSL.g:6752:1: ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '!' | kw= '-' | kw= '+' ) ; |
| public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6758:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalEntityMockDSL.g:6759:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalEntityMockDSL.g:6759:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt114=3; |
| switch ( input.LA(1) ) { |
| case 123: |
| { |
| alt114=1; |
| } |
| break; |
| case 77: |
| { |
| alt114=2; |
| } |
| break; |
| case 119: |
| { |
| alt114=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 114, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt114) { |
| case 1 : |
| // InternalEntityMockDSL.g:6760:3: kw= '!' |
| { |
| kw=(Token)match(input,123,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6766:3: kw= '-' |
| { |
| kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6772:3: kw= '+' |
| { |
| kw=(Token)match(input,119,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpUnary" |
| |
| |
| // $ANTLR start "entryRuleXCastedExpression" |
| // InternalEntityMockDSL.g:6781:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6781:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalEntityMockDSL.g:6782:2: iv_ruleXCastedExpression= ruleXCastedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCastedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCastedExpression=ruleXCastedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCastedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCastedExpression" |
| |
| |
| // $ANTLR start "ruleXCastedExpression" |
| // InternalEntityMockDSL.g:6788:1: ruleXCastedExpression returns [EObject current=null] : (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ; |
| public final EObject ruleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject this_XPostfixOperation_0 = null; |
| |
| EObject lv_type_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6794:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalEntityMockDSL.g:6795:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6795:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalEntityMockDSL.g:6796:3: this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6804:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop115: |
| do { |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==78) ) { |
| int LA115_2 = input.LA(2); |
| |
| if ( (synpred18_InternalEntityMockDSL()) ) { |
| alt115=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt115) { |
| case 1 : |
| // InternalEntityMockDSL.g:6805:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalEntityMockDSL.g:6805:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalEntityMockDSL.g:6806:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalEntityMockDSL.g:6812:5: ( () otherlv_2= 'as' ) |
| // InternalEntityMockDSL.g:6813:6: () otherlv_2= 'as' |
| { |
| // InternalEntityMockDSL.g:6813:6: () |
| // InternalEntityMockDSL.g:6814:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,78,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6826:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:6827:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:6827:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:6828:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop115; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalEntityMockDSL.g:6850:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6850:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalEntityMockDSL.g:6851:2: iv_ruleXPostfixOperation= ruleXPostfixOperation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPostfixOperationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPostfixOperation=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPostfixOperation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPostfixOperation" |
| |
| |
| // $ANTLR start "ruleXPostfixOperation" |
| // InternalEntityMockDSL.g:6857:1: ruleXPostfixOperation returns [EObject current=null] : (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ; |
| public final EObject ruleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XMemberFeatureCall_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6863:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalEntityMockDSL.g:6864:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:6864:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalEntityMockDSL.g:6865:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6873:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( (LA116_0==124) ) { |
| int LA116_1 = input.LA(2); |
| |
| if ( (synpred19_InternalEntityMockDSL()) ) { |
| alt116=1; |
| } |
| } |
| else if ( (LA116_0==125) ) { |
| int LA116_2 = input.LA(2); |
| |
| if ( (synpred19_InternalEntityMockDSL()) ) { |
| alt116=1; |
| } |
| } |
| switch (alt116) { |
| case 1 : |
| // InternalEntityMockDSL.g:6874:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalEntityMockDSL.g:6884:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalEntityMockDSL.g:6885:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalEntityMockDSL.g:6885:5: () |
| // InternalEntityMockDSL.g:6886:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6892:5: ( ( ruleOpPostfix ) ) |
| // InternalEntityMockDSL.g:6893:6: ( ruleOpPostfix ) |
| { |
| // InternalEntityMockDSL.g:6893:6: ( ruleOpPostfix ) |
| // InternalEntityMockDSL.g:6894:7: ruleOpPostfix |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXPostfixOperationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPostfixOperation" |
| |
| |
| // $ANTLR start "entryRuleOpPostfix" |
| // InternalEntityMockDSL.g:6914:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6914:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalEntityMockDSL.g:6915:2: iv_ruleOpPostfix= ruleOpPostfix EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getOpPostfixRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleOpPostfix=ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleOpPostfix.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleOpPostfix" |
| |
| |
| // $ANTLR start "ruleOpPostfix" |
| // InternalEntityMockDSL.g:6921:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6927:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalEntityMockDSL.g:6928:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalEntityMockDSL.g:6928:2: (kw= '++' | kw= '--' ) |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==124) ) { |
| alt117=1; |
| } |
| else if ( (LA117_0==125) ) { |
| alt117=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 117, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt117) { |
| case 1 : |
| // InternalEntityMockDSL.g:6929:3: kw= '++' |
| { |
| kw=(Token)match(input,124,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6935:3: kw= '--' |
| { |
| kw=(Token)match(input,125,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpPostfix" |
| |
| |
| // $ANTLR start "entryRuleXMemberFeatureCall" |
| // InternalEntityMockDSL.g:6944:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:6944:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalEntityMockDSL.g:6945:2: iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXMemberFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "ruleXMemberFeatureCall" |
| // InternalEntityMockDSL.g:6951:1: ruleXMemberFeatureCall returns [EObject current=null] : (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ; |
| public final EObject ruleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitStatic_3_0=null; |
| Token otherlv_8=null; |
| Token lv_nullSafe_9_0=null; |
| Token lv_explicitStatic_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| Token lv_explicitOperationCall_17_0=null; |
| Token otherlv_20=null; |
| Token otherlv_22=null; |
| EObject this_XPrimaryExpression_0 = null; |
| |
| EObject lv_value_6_0 = null; |
| |
| EObject lv_typeArguments_12_0 = null; |
| |
| EObject lv_typeArguments_14_0 = null; |
| |
| EObject lv_memberCallArguments_18_0 = null; |
| |
| EObject lv_memberCallArguments_19_0 = null; |
| |
| EObject lv_memberCallArguments_21_0 = null; |
| |
| EObject lv_memberCallArguments_23_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:6957:2: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ) |
| // InternalEntityMockDSL.g:6958:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| { |
| // InternalEntityMockDSL.g:6958:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) |
| // InternalEntityMockDSL.g:6959:3: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6967:3: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* |
| loop126: |
| do { |
| int alt126=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| int LA126_2 = input.LA(2); |
| |
| if ( (synpred20_InternalEntityMockDSL()) ) { |
| alt126=1; |
| } |
| else if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt126=2; |
| } |
| |
| |
| } |
| break; |
| case 126: |
| { |
| int LA126_3 = input.LA(2); |
| |
| if ( (synpred20_InternalEntityMockDSL()) ) { |
| alt126=1; |
| } |
| else if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt126=2; |
| } |
| |
| |
| } |
| break; |
| case 127: |
| { |
| int LA126_4 = input.LA(2); |
| |
| if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt126=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt126) { |
| case 1 : |
| // InternalEntityMockDSL.g:6968:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalEntityMockDSL.g:6968:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalEntityMockDSL.g:6969:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:6969:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalEntityMockDSL.g:6970:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalEntityMockDSL.g:6990:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalEntityMockDSL.g:6991:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalEntityMockDSL.g:6991:7: () |
| // InternalEntityMockDSL.g:6992:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6998:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==34) ) { |
| alt118=1; |
| } |
| else if ( (LA118_0==126) ) { |
| alt118=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 118, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt118) { |
| case 1 : |
| // InternalEntityMockDSL.g:6999:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,34,FOLLOW_106); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7004:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7004:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalEntityMockDSL.g:7005:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalEntityMockDSL.g:7005:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalEntityMockDSL.g:7006:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,126,FOLLOW_106); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7019:7: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:7020:8: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:7020:8: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:7021:9: ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7044:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:7045:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:7045:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:7046:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| lv_value_6_0=ruleXAssignment(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XAssignment"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7065:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| { |
| // InternalEntityMockDSL.g:7065:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) |
| // InternalEntityMockDSL.g:7066:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| { |
| // InternalEntityMockDSL.g:7066:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalEntityMockDSL.g:7067:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:7087:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalEntityMockDSL.g:7088:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7088:7: () |
| // InternalEntityMockDSL.g:7089:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:7095:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt119=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| alt119=1; |
| } |
| break; |
| case 127: |
| { |
| alt119=2; |
| } |
| break; |
| case 126: |
| { |
| alt119=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 119, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt119) { |
| case 1 : |
| // InternalEntityMockDSL.g:7096:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,34,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7101:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalEntityMockDSL.g:7101:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalEntityMockDSL.g:7102:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalEntityMockDSL.g:7102:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalEntityMockDSL.g:7103:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,127,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "nullSafe", true, "?."); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:7116:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7116:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalEntityMockDSL.g:7117:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalEntityMockDSL.g:7117:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalEntityMockDSL.g:7118:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,126,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitStatic", true, "::"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7133:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==103) ) { |
| alt121=1; |
| } |
| switch (alt121) { |
| case 1 : |
| // InternalEntityMockDSL.g:7134:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,103,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7138:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:7139:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:7139:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:7140:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7157:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop120: |
| do { |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==26) ) { |
| alt120=1; |
| } |
| |
| |
| switch (alt120) { |
| case 1 : |
| // InternalEntityMockDSL.g:7158:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,26,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7162:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:7163:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:7163:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:7164:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_14_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_14_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop120; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,104,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7187:5: ( ( ruleIdOrSuper ) ) |
| // InternalEntityMockDSL.g:7188:6: ( ruleIdOrSuper ) |
| { |
| // InternalEntityMockDSL.g:7188:6: ( ruleIdOrSuper ) |
| // InternalEntityMockDSL.g:7189:7: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7203:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? |
| int alt124=2; |
| alt124 = dfa124.predict(input); |
| switch (alt124) { |
| case 1 : |
| // InternalEntityMockDSL.g:7204:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' |
| { |
| // InternalEntityMockDSL.g:7204:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalEntityMockDSL.g:7205:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:7209:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalEntityMockDSL.g:7210:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,25,FOLLOW_111); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7222:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt123=3; |
| alt123 = dfa123.predict(input); |
| switch (alt123) { |
| case 1 : |
| // InternalEntityMockDSL.g:7223:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:7223:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:7224:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:7249:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:7250:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_memberCallArguments_18_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_18_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7268:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:7268:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:7269:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7269:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7270:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7270:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7271:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_memberCallArguments_19_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_19_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7288:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop122: |
| do { |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==26) ) { |
| alt122=1; |
| } |
| |
| |
| switch (alt122) { |
| case 1 : |
| // InternalEntityMockDSL.g:7289:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7293:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7294:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7294:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7295:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_memberCallArguments_21_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_21_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop122; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,27,FOLLOW_112); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7320:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt125=2; |
| alt125 = dfa125.predict(input); |
| switch (alt125) { |
| case 1 : |
| // InternalEntityMockDSL.g:7321:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:7327:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:7328:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| lv_memberCallArguments_23_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); |
| } |
| add( |
| current, |
| "memberCallArguments", |
| lv_memberCallArguments_23_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop126; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalEntityMockDSL.g:7351:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7351:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalEntityMockDSL.g:7352:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXPrimaryExpression=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXPrimaryExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXPrimaryExpression" |
| |
| |
| // $ANTLR start "ruleXPrimaryExpression" |
| // InternalEntityMockDSL.g:7358:1: ruleXPrimaryExpression returns [EObject current=null] : (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ; |
| public final EObject ruleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XConstructorCall_0 = null; |
| |
| EObject this_XBlockExpression_1 = null; |
| |
| EObject this_XSwitchExpression_2 = null; |
| |
| EObject this_XSynchronizedExpression_3 = null; |
| |
| EObject this_XFeatureCall_4 = null; |
| |
| EObject this_XLiteral_5 = null; |
| |
| EObject this_XIfExpression_6 = null; |
| |
| EObject this_XForLoopExpression_7 = null; |
| |
| EObject this_XBasicForLoopExpression_8 = null; |
| |
| EObject this_XWhileExpression_9 = null; |
| |
| EObject this_XDoWhileExpression_10 = null; |
| |
| EObject this_XThrowExpression_11 = null; |
| |
| EObject this_XReturnExpression_12 = null; |
| |
| EObject this_XTryCatchFinallyExpression_13 = null; |
| |
| EObject this_XParenthesizedExpression_14 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7364:2: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ) |
| // InternalEntityMockDSL.g:7365:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| { |
| // InternalEntityMockDSL.g:7365:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) |
| int alt127=15; |
| alt127 = dfa127.predict(input); |
| switch (alt127) { |
| case 1 : |
| // InternalEntityMockDSL.g:7366:3: this_XConstructorCall_0= ruleXConstructorCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XConstructorCall_0=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XConstructorCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7375:3: this_XBlockExpression_1= ruleXBlockExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBlockExpression_1=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBlockExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:7384:3: this_XSwitchExpression_2= ruleXSwitchExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSwitchExpression_2=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSwitchExpression_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:7393:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalEntityMockDSL.g:7393:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalEntityMockDSL.g:7394:4: ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSynchronizedExpression_3=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSynchronizedExpression_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:7411:3: this_XFeatureCall_4= ruleXFeatureCall |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFeatureCall_4=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFeatureCall_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:7420:3: this_XLiteral_5= ruleXLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XLiteral_5=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:7429:3: this_XIfExpression_6= ruleXIfExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XIfExpression_6=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XIfExpression_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalEntityMockDSL.g:7438:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalEntityMockDSL.g:7438:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalEntityMockDSL.g:7439:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XForLoopExpression_7=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XForLoopExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 9 : |
| // InternalEntityMockDSL.g:7462:3: this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBasicForLoopExpression_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalEntityMockDSL.g:7471:3: this_XWhileExpression_9= ruleXWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XWhileExpression_9=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XWhileExpression_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalEntityMockDSL.g:7480:3: this_XDoWhileExpression_10= ruleXDoWhileExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XDoWhileExpression_10=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XDoWhileExpression_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalEntityMockDSL.g:7489:3: this_XThrowExpression_11= ruleXThrowExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XThrowExpression_11=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XThrowExpression_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalEntityMockDSL.g:7498:3: this_XReturnExpression_12= ruleXReturnExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XReturnExpression_12=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XReturnExpression_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalEntityMockDSL.g:7507:3: this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTryCatchFinallyExpression_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 15 : |
| // InternalEntityMockDSL.g:7516:3: this_XParenthesizedExpression_14= ruleXParenthesizedExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XParenthesizedExpression_14=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XParenthesizedExpression_14; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXPrimaryExpression" |
| |
| |
| // $ANTLR start "entryRuleXLiteral" |
| // InternalEntityMockDSL.g:7528:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7528:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalEntityMockDSL.g:7529:2: iv_ruleXLiteral= ruleXLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXLiteral=ruleXLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXLiteral" |
| |
| |
| // $ANTLR start "ruleXLiteral" |
| // InternalEntityMockDSL.g:7535:1: ruleXLiteral returns [EObject current=null] : (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ; |
| public final EObject ruleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XCollectionLiteral_0 = null; |
| |
| EObject this_XClosure_1 = null; |
| |
| EObject this_XBooleanLiteral_2 = null; |
| |
| EObject this_XNumberLiteral_3 = null; |
| |
| EObject this_XNullLiteral_4 = null; |
| |
| EObject this_XStringLiteral_5 = null; |
| |
| EObject this_XTypeLiteral_6 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7541:2: ( (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ) |
| // InternalEntityMockDSL.g:7542:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| { |
| // InternalEntityMockDSL.g:7542:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) |
| int alt128=7; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==95) ) { |
| alt128=1; |
| } |
| else if ( (LA128_0==96) && (synpred27_InternalEntityMockDSL())) { |
| alt128=2; |
| } |
| else if ( ((LA128_0>=142 && LA128_0<=143)) ) { |
| alt128=3; |
| } |
| else if ( ((LA128_0>=RULE_INT && LA128_0<=RULE_DECIMAL)) ) { |
| alt128=4; |
| } |
| else if ( (LA128_0==144) ) { |
| alt128=5; |
| } |
| else if ( (LA128_0==RULE_STRING) ) { |
| alt128=6; |
| } |
| else if ( (LA128_0==145) ) { |
| alt128=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 128, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt128) { |
| case 1 : |
| // InternalEntityMockDSL.g:7543:3: this_XCollectionLiteral_0= ruleXCollectionLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XCollectionLiteral_0=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XCollectionLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7552:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:7552:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalEntityMockDSL.g:7553:4: ( ( () '[' ) )=>this_XClosure_1= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XClosure_1=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XClosure_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:7569:3: this_XBooleanLiteral_2= ruleXBooleanLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XBooleanLiteral_2=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XBooleanLiteral_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:7578:3: this_XNumberLiteral_3= ruleXNumberLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNumberLiteral_3=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNumberLiteral_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:7587:3: this_XNullLiteral_4= ruleXNullLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XNullLiteral_4=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XNullLiteral_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:7596:3: this_XStringLiteral_5= ruleXStringLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XStringLiteral_5=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XStringLiteral_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:7605:3: this_XTypeLiteral_6= ruleXTypeLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XTypeLiteral_6=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XTypeLiteral_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXLiteral" |
| |
| |
| // $ANTLR start "entryRuleXCollectionLiteral" |
| // InternalEntityMockDSL.g:7617:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7617:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalEntityMockDSL.g:7618:2: iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCollectionLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCollectionLiteral=ruleXCollectionLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCollectionLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCollectionLiteral" |
| |
| |
| // $ANTLR start "ruleXCollectionLiteral" |
| // InternalEntityMockDSL.g:7624:1: ruleXCollectionLiteral returns [EObject current=null] : (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ; |
| public final EObject ruleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XSetLiteral_0 = null; |
| |
| EObject this_XListLiteral_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7630:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalEntityMockDSL.g:7631:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalEntityMockDSL.g:7631:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==95) ) { |
| int LA129_1 = input.LA(2); |
| |
| if ( (LA129_1==96) ) { |
| alt129=2; |
| } |
| else if ( (LA129_1==14) ) { |
| alt129=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 129, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 129, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt129) { |
| case 1 : |
| // InternalEntityMockDSL.g:7632:3: this_XSetLiteral_0= ruleXSetLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XSetLiteral_0=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XSetLiteral_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7641:3: this_XListLiteral_1= ruleXListLiteral |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XListLiteral_1=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XListLiteral_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCollectionLiteral" |
| |
| |
| // $ANTLR start "entryRuleXSetLiteral" |
| // InternalEntityMockDSL.g:7653:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7653:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalEntityMockDSL.g:7654:2: iv_ruleXSetLiteral= ruleXSetLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSetLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSetLiteral=ruleXSetLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSetLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSetLiteral" |
| |
| |
| // $ANTLR start "ruleXSetLiteral" |
| // InternalEntityMockDSL.g:7660:1: ruleXSetLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ; |
| public final EObject ruleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7666:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalEntityMockDSL.g:7667:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalEntityMockDSL.g:7667:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalEntityMockDSL.g:7668:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalEntityMockDSL.g:7668:3: () |
| // InternalEntityMockDSL.g:7669:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,14,FOLLOW_113); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:7683:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( ((LA131_0>=RULE_ID && LA131_0<=RULE_DECIMAL)||LA131_0==14||LA131_0==25||LA131_0==77||(LA131_0>=87 && LA131_0<=89)||(LA131_0>=95 && LA131_0<=96)||LA131_0==103||LA131_0==119||LA131_0==123||LA131_0==129||LA131_0==131||(LA131_0>=135 && LA131_0<=137)||(LA131_0>=139 && LA131_0<=148)||LA131_0==150) ) { |
| alt131=1; |
| } |
| switch (alt131) { |
| case 1 : |
| // InternalEntityMockDSL.g:7684:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7684:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7685:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7685:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7686:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7703:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop130: |
| do { |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==26) ) { |
| alt130=1; |
| } |
| |
| |
| switch (alt130) { |
| case 1 : |
| // InternalEntityMockDSL.g:7704:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7708:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7709:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7709:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7710:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop130; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSetLiteral" |
| |
| |
| // $ANTLR start "entryRuleXListLiteral" |
| // InternalEntityMockDSL.g:7737:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7737:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalEntityMockDSL.g:7738:2: iv_ruleXListLiteral= ruleXListLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXListLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXListLiteral=ruleXListLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXListLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXListLiteral" |
| |
| |
| // $ANTLR start "ruleXListLiteral" |
| // InternalEntityMockDSL.g:7744:1: ruleXListLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ; |
| public final EObject ruleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_elements_3_0 = null; |
| |
| EObject lv_elements_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7750:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalEntityMockDSL.g:7751:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:7751:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:7752:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:7752:3: () |
| // InternalEntityMockDSL.g:7753:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:7767:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( ((LA133_0>=RULE_ID && LA133_0<=RULE_DECIMAL)||LA133_0==14||LA133_0==25||LA133_0==77||(LA133_0>=87 && LA133_0<=89)||(LA133_0>=95 && LA133_0<=96)||LA133_0==103||LA133_0==119||LA133_0==123||LA133_0==129||LA133_0==131||(LA133_0>=135 && LA133_0<=137)||(LA133_0>=139 && LA133_0<=148)||LA133_0==150) ) { |
| alt133=1; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalEntityMockDSL.g:7768:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7768:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7769:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7769:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7770:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7787:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop132: |
| do { |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==26) ) { |
| alt132=1; |
| } |
| |
| |
| switch (alt132) { |
| case 1 : |
| // InternalEntityMockDSL.g:7788:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7792:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7793:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7793:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7794:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_87); |
| lv_elements_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXListLiteralRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop132; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXListLiteral" |
| |
| |
| // $ANTLR start "entryRuleXClosure" |
| // InternalEntityMockDSL.g:7821:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7821:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalEntityMockDSL.g:7822:2: iv_ruleXClosure= ruleXClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXClosure=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXClosure" |
| |
| |
| // $ANTLR start "ruleXClosure" |
| // InternalEntityMockDSL.g:7828:1: ruleXClosure returns [EObject current=null] : ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ; |
| public final EObject ruleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token lv_explicitSyntax_5_0=null; |
| Token otherlv_7=null; |
| EObject lv_declaredFormalParameters_2_0 = null; |
| |
| EObject lv_declaredFormalParameters_4_0 = null; |
| |
| EObject lv_expression_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7834:2: ( ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ) |
| // InternalEntityMockDSL.g:7835:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| { |
| // InternalEntityMockDSL.g:7835:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) |
| // InternalEntityMockDSL.g:7836:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' |
| { |
| // InternalEntityMockDSL.g:7836:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalEntityMockDSL.g:7837:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalEntityMockDSL.g:7843:4: ( () otherlv_1= '[' ) |
| // InternalEntityMockDSL.g:7844:5: () otherlv_1= '[' |
| { |
| // InternalEntityMockDSL.g:7844:5: () |
| // InternalEntityMockDSL.g:7845:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_115); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7857:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt136=2; |
| alt136 = dfa136.predict(input); |
| switch (alt136) { |
| case 1 : |
| // InternalEntityMockDSL.g:7858:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7881:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalEntityMockDSL.g:7882:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7882:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==RULE_ID||LA135_0==25||LA135_0==116) ) { |
| alt135=1; |
| } |
| switch (alt135) { |
| case 1 : |
| // InternalEntityMockDSL.g:7883:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7883:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7884:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7884:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7885:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| lv_declaredFormalParameters_2_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_2_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7902:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop134: |
| do { |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==26) ) { |
| alt134=1; |
| } |
| |
| |
| switch (alt134) { |
| case 1 : |
| // InternalEntityMockDSL.g:7903:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,26,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7907:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7908:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7908:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7909:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| lv_declaredFormalParameters_4_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_4_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop134; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7928:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalEntityMockDSL.g:7929:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalEntityMockDSL.g:7929:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalEntityMockDSL.g:7930:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,128,FOLLOW_117); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7944:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalEntityMockDSL.g:7945:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalEntityMockDSL.g:7945:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalEntityMockDSL.g:7946:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_118); |
| lv_expression_6_0=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_6_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXClosure" |
| |
| |
| // $ANTLR start "entryRuleXExpressionInClosure" |
| // InternalEntityMockDSL.g:7971:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:7971:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalEntityMockDSL.g:7972:2: iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionInClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionInClosure=ruleXExpressionInClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionInClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionInClosure" |
| |
| |
| // $ANTLR start "ruleXExpressionInClosure" |
| // InternalEntityMockDSL.g:7978:1: ruleXExpressionInClosure returns [EObject current=null] : ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ; |
| public final EObject ruleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| EObject lv_expressions_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:7984:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalEntityMockDSL.g:7985:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalEntityMockDSL.g:7985:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalEntityMockDSL.g:7986:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalEntityMockDSL.g:7986:3: () |
| // InternalEntityMockDSL.g:7987:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:7993:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop138: |
| do { |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( ((LA138_0>=RULE_ID && LA138_0<=RULE_DECIMAL)||LA138_0==14||LA138_0==25||LA138_0==31||LA138_0==77||(LA138_0>=87 && LA138_0<=89)||(LA138_0>=95 && LA138_0<=96)||LA138_0==103||LA138_0==119||LA138_0==123||LA138_0==129||LA138_0==131||(LA138_0>=135 && LA138_0<=148)||LA138_0==150) ) { |
| alt138=1; |
| } |
| |
| |
| switch (alt138) { |
| case 1 : |
| // InternalEntityMockDSL.g:7994:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalEntityMockDSL.g:7994:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:7995:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:7995:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:7996:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| lv_expressions_1_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_1_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8013:4: (otherlv_2= ';' )? |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==92) ) { |
| alt137=1; |
| } |
| switch (alt137) { |
| case 1 : |
| // InternalEntityMockDSL.g:8014:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,92,FOLLOW_120); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop138; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalEntityMockDSL.g:8024:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8024:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalEntityMockDSL.g:8025:2: iv_ruleXShortClosure= ruleXShortClosure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXShortClosureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXShortClosure=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXShortClosure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXShortClosure" |
| |
| |
| // $ANTLR start "ruleXShortClosure" |
| // InternalEntityMockDSL.g:8031:1: ruleXShortClosure returns [EObject current=null] : ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token lv_explicitSyntax_4_0=null; |
| EObject lv_declaredFormalParameters_1_0 = null; |
| |
| EObject lv_declaredFormalParameters_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8037:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:8038:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8038:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8039:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8039:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalEntityMockDSL.g:8040:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:8065:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalEntityMockDSL.g:8066:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalEntityMockDSL.g:8066:5: () |
| // InternalEntityMockDSL.g:8067:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8073:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==RULE_ID||LA140_0==25||LA140_0==116) ) { |
| alt140=1; |
| } |
| switch (alt140) { |
| case 1 : |
| // InternalEntityMockDSL.g:8074:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:8074:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8075:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8075:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8076:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| lv_declaredFormalParameters_1_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_1_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8093:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop139: |
| do { |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( (LA139_0==26) ) { |
| alt139=1; |
| } |
| |
| |
| switch (alt139) { |
| case 1 : |
| // InternalEntityMockDSL.g:8094:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,26,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8098:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8099:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8099:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8100:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| lv_declaredFormalParameters_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| add( |
| current, |
| "declaredFormalParameters", |
| lv_declaredFormalParameters_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop139; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8119:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalEntityMockDSL.g:8120:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalEntityMockDSL.g:8120:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalEntityMockDSL.g:8121:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,128,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXShortClosureRule()); |
| } |
| setWithLastConsumed(current, "explicitSyntax", true, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8135:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8136:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8136:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8137:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXShortClosureRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXShortClosure" |
| |
| |
| // $ANTLR start "entryRuleXParenthesizedExpression" |
| // InternalEntityMockDSL.g:8158:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8158:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalEntityMockDSL.g:8159:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXParenthesizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "ruleXParenthesizedExpression" |
| // InternalEntityMockDSL.g:8165:1: ruleXParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ; |
| public final EObject ruleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8171:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalEntityMockDSL.g:8172:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalEntityMockDSL.g:8172:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalEntityMockDSL.g:8173:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| otherlv_2=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXParenthesizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXIfExpression" |
| // InternalEntityMockDSL.g:8193:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8193:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalEntityMockDSL.g:8194:2: iv_ruleXIfExpression= ruleXIfExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXIfExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXIfExpression=ruleXIfExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXIfExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXIfExpression" |
| |
| |
| // $ANTLR start "ruleXIfExpression" |
| // InternalEntityMockDSL.g:8200:1: ruleXIfExpression returns [EObject current=null] : ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_if_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| EObject lv_else_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8206:2: ( ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ) |
| // InternalEntityMockDSL.g:8207:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:8207:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) |
| // InternalEntityMockDSL.g:8208:3: () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| { |
| // InternalEntityMockDSL.g:8208:3: () |
| // InternalEntityMockDSL.g:8209:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,129,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8223:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8224:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8224:4: (lv_if_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8225:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_if_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "if", |
| lv_if_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:8246:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8247:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8247:4: (lv_then_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8248:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_121); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8265:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( (LA141_0==130) ) { |
| int LA141_1 = input.LA(2); |
| |
| if ( (synpred31_InternalEntityMockDSL()) ) { |
| alt141=1; |
| } |
| } |
| switch (alt141) { |
| case 1 : |
| // InternalEntityMockDSL.g:8266:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8266:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalEntityMockDSL.g:8267:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,130,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8273:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8274:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8274:5: (lv_else_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8275:6: lv_else_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_else_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); |
| } |
| set( |
| current, |
| "else", |
| lv_else_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXIfExpression" |
| |
| |
| // $ANTLR start "entryRuleXSwitchExpression" |
| // InternalEntityMockDSL.g:8297:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8297:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalEntityMockDSL.g:8298:2: iv_ruleXSwitchExpression= ruleXSwitchExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSwitchExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSwitchExpression=ruleXSwitchExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSwitchExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSwitchExpression" |
| |
| |
| // $ANTLR start "ruleXSwitchExpression" |
| // InternalEntityMockDSL.g:8304:1: ruleXSwitchExpression returns [EObject current=null] : ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ; |
| public final EObject ruleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_15=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_switch_5_0 = null; |
| |
| EObject lv_declaredParam_7_0 = null; |
| |
| EObject lv_switch_9_0 = null; |
| |
| EObject lv_cases_11_0 = null; |
| |
| EObject lv_default_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8310:2: ( ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ) |
| // InternalEntityMockDSL.g:8311:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| { |
| // InternalEntityMockDSL.g:8311:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) |
| // InternalEntityMockDSL.g:8312:3: () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' |
| { |
| // InternalEntityMockDSL.g:8312:3: () |
| // InternalEntityMockDSL.g:8313:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,131,FOLLOW_122); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:8323:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) |
| int alt143=2; |
| alt143 = dfa143.predict(input); |
| switch (alt143) { |
| case 1 : |
| // InternalEntityMockDSL.g:8324:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalEntityMockDSL.g:8324:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalEntityMockDSL.g:8325:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalEntityMockDSL.g:8325:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalEntityMockDSL.g:8326:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalEntityMockDSL.g:8336:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalEntityMockDSL.g:8337:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,25,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8341:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8342:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8342:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8343:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,132,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8366:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8367:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8367:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8368:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_switch_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,27,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:8391:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8391:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8392:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8392:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt142=2; |
| alt142 = dfa142.predict(input); |
| switch (alt142) { |
| case 1 : |
| // InternalEntityMockDSL.g:8393:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalEntityMockDSL.g:8402:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalEntityMockDSL.g:8403:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalEntityMockDSL.g:8403:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8404:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8404:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8405:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| lv_declaredParam_7_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_7_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,132,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8428:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8429:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8429:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8430:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_switch_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "switch", |
| lv_switch_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,14,FOLLOW_124); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:8453:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop144: |
| do { |
| int alt144=2; |
| int LA144_0 = input.LA(1); |
| |
| if ( (LA144_0==RULE_ID||(LA144_0>=25 && LA144_0<=26)||LA144_0==116||LA144_0==132||LA144_0==134) ) { |
| alt144=1; |
| } |
| |
| |
| switch (alt144) { |
| case 1 : |
| // InternalEntityMockDSL.g:8454:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalEntityMockDSL.g:8454:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalEntityMockDSL.g:8455:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| lv_cases_11_0=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| add( |
| current, |
| "cases", |
| lv_cases_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XCasePart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop144; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:8472:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==133) ) { |
| alt145=1; |
| } |
| switch (alt145) { |
| case 1 : |
| // InternalEntityMockDSL.g:8473:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,133,FOLLOW_123); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,132,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalEntityMockDSL.g:8481:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8482:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8482:5: (lv_default_14_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8483:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| lv_default_14_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "default", |
| lv_default_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_15=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSwitchExpression" |
| |
| |
| // $ANTLR start "entryRuleXCasePart" |
| // InternalEntityMockDSL.g:8509:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8509:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalEntityMockDSL.g:8510:2: iv_ruleXCasePart= ruleXCasePart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCasePartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCasePart=ruleXCasePart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCasePart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCasePart" |
| |
| |
| // $ANTLR start "ruleXCasePart" |
| // InternalEntityMockDSL.g:8516:1: ruleXCasePart returns [EObject current=null] : ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ; |
| public final EObject ruleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token lv_fallThrough_6_0=null; |
| EObject lv_typeGuard_1_0 = null; |
| |
| EObject lv_case_3_0 = null; |
| |
| EObject lv_then_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8522:2: ( ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ) |
| // InternalEntityMockDSL.g:8523:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:8523:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) |
| // InternalEntityMockDSL.g:8524:3: () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| { |
| // InternalEntityMockDSL.g:8524:3: () |
| // InternalEntityMockDSL.g:8525:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8531:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==RULE_ID||LA146_0==25||LA146_0==116) ) { |
| alt146=1; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalEntityMockDSL.g:8532:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:8532:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:8533:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| lv_typeGuard_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "typeGuard", |
| lv_typeGuard_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8550:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==134) ) { |
| alt147=1; |
| } |
| switch (alt147) { |
| case 1 : |
| // InternalEntityMockDSL.g:8551:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,134,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8555:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8556:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8556:5: (lv_case_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8557:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_126); |
| lv_case_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "case", |
| lv_case_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8575:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==132) ) { |
| alt148=1; |
| } |
| else if ( (LA148_0==26) ) { |
| alt148=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 148, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt148) { |
| case 1 : |
| // InternalEntityMockDSL.g:8576:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8576:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8577:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,132,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8581:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8582:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8582:6: (lv_then_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8583:7: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_then_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCasePartRule()); |
| } |
| set( |
| current, |
| "then", |
| lv_then_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:8602:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalEntityMockDSL.g:8602:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalEntityMockDSL.g:8603:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalEntityMockDSL.g:8603:5: (lv_fallThrough_6_0= ',' ) |
| // InternalEntityMockDSL.g:8604:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,26,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXCasePartRule()); |
| } |
| setWithLastConsumed(current, "fallThrough", true, ","); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCasePart" |
| |
| |
| // $ANTLR start "entryRuleXForLoopExpression" |
| // InternalEntityMockDSL.g:8621:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8621:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalEntityMockDSL.g:8622:2: iv_ruleXForLoopExpression= ruleXForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXForLoopExpression=ruleXForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXForLoopExpression" |
| // InternalEntityMockDSL.g:8628:1: ruleXForLoopExpression returns [EObject current=null] : ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_declaredParam_3_0 = null; |
| |
| EObject lv_forExpression_5_0 = null; |
| |
| EObject lv_eachExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8634:2: ( ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:8635:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8635:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8636:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8636:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalEntityMockDSL.g:8637:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalEntityMockDSL.g:8650:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalEntityMockDSL.g:8651:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalEntityMockDSL.g:8651:5: () |
| // InternalEntityMockDSL.g:8652:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,135,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8666:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8667:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8667:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8668:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,132,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8691:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8692:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8692:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8693:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_forExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "forExpression", |
| lv_forExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8714:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8715:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8715:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8716:5: lv_eachExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXBasicForLoopExpression" |
| // InternalEntityMockDSL.g:8737:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8737:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalEntityMockDSL.g:8738:2: iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBasicForLoopExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "ruleXBasicForLoopExpression" |
| // InternalEntityMockDSL.g:8744:1: ruleXBasicForLoopExpression returns [EObject current=null] : ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_initExpressions_3_0 = null; |
| |
| EObject lv_initExpressions_5_0 = null; |
| |
| EObject lv_expression_7_0 = null; |
| |
| EObject lv_updateExpressions_9_0 = null; |
| |
| EObject lv_updateExpressions_11_0 = null; |
| |
| EObject lv_eachExpression_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8750:2: ( ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:8751:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8751:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8752:3: () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8752:3: () |
| // InternalEntityMockDSL.g:8753:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,135,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_127); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8767:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( ((LA150_0>=RULE_ID && LA150_0<=RULE_DECIMAL)||LA150_0==14||LA150_0==25||LA150_0==31||LA150_0==77||(LA150_0>=87 && LA150_0<=89)||(LA150_0>=95 && LA150_0<=96)||LA150_0==103||LA150_0==119||LA150_0==123||LA150_0==129||LA150_0==131||(LA150_0>=135 && LA150_0<=148)||LA150_0==150) ) { |
| alt150=1; |
| } |
| switch (alt150) { |
| case 1 : |
| // InternalEntityMockDSL.g:8768:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalEntityMockDSL.g:8768:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:8769:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:8769:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:8770:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_128); |
| lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8787:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop149: |
| do { |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==26) ) { |
| alt149=1; |
| } |
| |
| |
| switch (alt149) { |
| case 1 : |
| // InternalEntityMockDSL.g:8788:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_129); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8792:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:8793:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:8793:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:8794:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_128); |
| lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "initExpressions", |
| lv_initExpressions_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop149; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,92,FOLLOW_130); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:8817:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt151=2; |
| int LA151_0 = input.LA(1); |
| |
| if ( ((LA151_0>=RULE_ID && LA151_0<=RULE_DECIMAL)||LA151_0==14||LA151_0==25||LA151_0==77||(LA151_0>=87 && LA151_0<=89)||(LA151_0>=95 && LA151_0<=96)||LA151_0==103||LA151_0==119||LA151_0==123||LA151_0==129||LA151_0==131||(LA151_0>=135 && LA151_0<=137)||(LA151_0>=139 && LA151_0<=148)||LA151_0==150) ) { |
| alt151=1; |
| } |
| switch (alt151) { |
| case 1 : |
| // InternalEntityMockDSL.g:8818:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8818:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8819:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_131); |
| lv_expression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_8=(Token)match(input,92,FOLLOW_81); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalEntityMockDSL.g:8840:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( ((LA153_0>=RULE_ID && LA153_0<=RULE_DECIMAL)||LA153_0==14||LA153_0==25||LA153_0==77||(LA153_0>=87 && LA153_0<=89)||(LA153_0>=95 && LA153_0<=96)||LA153_0==103||LA153_0==119||LA153_0==123||LA153_0==129||LA153_0==131||(LA153_0>=135 && LA153_0<=137)||(LA153_0>=139 && LA153_0<=148)||LA153_0==150) ) { |
| alt153=1; |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalEntityMockDSL.g:8841:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:8841:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8842:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8842:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8843:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_updateExpressions_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8860:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop152: |
| do { |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==26) ) { |
| alt152=1; |
| } |
| |
| |
| switch (alt152) { |
| case 1 : |
| // InternalEntityMockDSL.g:8861:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8865:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8866:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8866:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8867:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_updateExpressions_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| add( |
| current, |
| "updateExpressions", |
| lv_updateExpressions_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop152; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalEntityMockDSL.g:8890:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8891:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8891:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8892:5: lv_eachExpression_13_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_eachExpression_13_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "eachExpression", |
| lv_eachExpression_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBasicForLoopExpression" |
| |
| |
| // $ANTLR start "entryRuleXWhileExpression" |
| // InternalEntityMockDSL.g:8913:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8913:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalEntityMockDSL.g:8914:2: iv_ruleXWhileExpression= ruleXWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXWhileExpression=ruleXWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXWhileExpression" |
| |
| |
| // $ANTLR start "ruleXWhileExpression" |
| // InternalEntityMockDSL.g:8920:1: ruleXWhileExpression returns [EObject current=null] : ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_predicate_3_0 = null; |
| |
| EObject lv_body_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:8926:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:8927:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8927:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8928:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8928:3: () |
| // InternalEntityMockDSL.g:8929:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,136,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8943:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8944:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8944:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8945:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_predicate_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:8966:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8967:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8967:4: (lv_body_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8968:5: lv_body_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_body_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXDoWhileExpression" |
| // InternalEntityMockDSL.g:8989:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:8989:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalEntityMockDSL.g:8990:2: iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXDoWhileExpression=ruleXDoWhileExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXDoWhileExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXDoWhileExpression" |
| |
| |
| // $ANTLR start "ruleXDoWhileExpression" |
| // InternalEntityMockDSL.g:8996:1: ruleXDoWhileExpression returns [EObject current=null] : ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ; |
| public final EObject ruleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_body_2_0 = null; |
| |
| EObject lv_predicate_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9002:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalEntityMockDSL.g:9003:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalEntityMockDSL.g:9003:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalEntityMockDSL.g:9004:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalEntityMockDSL.g:9004:3: () |
| // InternalEntityMockDSL.g:9005:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,137,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9015:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9016:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9016:4: (lv_body_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9017:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| lv_body_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "body", |
| lv_body_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,136,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,25,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:9042:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9043:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9043:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9044:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_predicate_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); |
| } |
| set( |
| current, |
| "predicate", |
| lv_predicate_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_6=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXDoWhileExpression" |
| |
| |
| // $ANTLR start "entryRuleXBlockExpression" |
| // InternalEntityMockDSL.g:9069:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9069:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalEntityMockDSL.g:9070:2: iv_ruleXBlockExpression= ruleXBlockExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBlockExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBlockExpression=ruleXBlockExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBlockExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBlockExpression" |
| |
| |
| // $ANTLR start "ruleXBlockExpression" |
| // InternalEntityMockDSL.g:9076:1: ruleXBlockExpression returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ; |
| public final EObject ruleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| EObject lv_expressions_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9082:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:9083:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:9083:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:9084:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:9084:3: () |
| // InternalEntityMockDSL.g:9085:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9095:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop155: |
| do { |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( ((LA155_0>=RULE_ID && LA155_0<=RULE_DECIMAL)||LA155_0==14||LA155_0==25||LA155_0==31||LA155_0==77||(LA155_0>=87 && LA155_0<=89)||(LA155_0>=95 && LA155_0<=96)||LA155_0==103||LA155_0==119||LA155_0==123||LA155_0==129||LA155_0==131||(LA155_0>=135 && LA155_0<=148)||LA155_0==150) ) { |
| alt155=1; |
| } |
| |
| |
| switch (alt155) { |
| case 1 : |
| // InternalEntityMockDSL.g:9096:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalEntityMockDSL.g:9096:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:9097:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:9097:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:9098:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_134); |
| lv_expressions_2_0=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); |
| } |
| add( |
| current, |
| "expressions", |
| lv_expressions_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9115:4: (otherlv_3= ';' )? |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==92) ) { |
| alt154=1; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalEntityMockDSL.g:9116:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,92,FOLLOW_133); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop155; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBlockExpression" |
| |
| |
| // $ANTLR start "entryRuleXExpressionOrVarDeclaration" |
| // InternalEntityMockDSL.g:9130:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9130:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalEntityMockDSL.g:9131:2: iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXExpressionOrVarDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "ruleXExpressionOrVarDeclaration" |
| // InternalEntityMockDSL.g:9137:1: ruleXExpressionOrVarDeclaration returns [EObject current=null] : (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ; |
| public final EObject ruleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_XVariableDeclaration_0 = null; |
| |
| EObject this_XExpression_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9143:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9144:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9144:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( (LA156_0==31||LA156_0==138) ) { |
| alt156=1; |
| } |
| else if ( ((LA156_0>=RULE_ID && LA156_0<=RULE_DECIMAL)||LA156_0==14||LA156_0==25||LA156_0==77||(LA156_0>=87 && LA156_0<=89)||(LA156_0>=95 && LA156_0<=96)||LA156_0==103||LA156_0==119||LA156_0==123||LA156_0==129||LA156_0==131||(LA156_0>=135 && LA156_0<=137)||(LA156_0>=139 && LA156_0<=148)||LA156_0==150) ) { |
| alt156=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 156, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt156) { |
| case 1 : |
| // InternalEntityMockDSL.g:9145:3: this_XVariableDeclaration_0= ruleXVariableDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XVariableDeclaration_0=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XVariableDeclaration_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9154:3: this_XExpression_1= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XExpression_1=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XExpression_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionOrVarDeclaration" |
| |
| |
| // $ANTLR start "entryRuleXVariableDeclaration" |
| // InternalEntityMockDSL.g:9166:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9166:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalEntityMockDSL.g:9167:2: iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXVariableDeclarationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXVariableDeclaration=ruleXVariableDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXVariableDeclaration; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXVariableDeclaration" |
| |
| |
| // $ANTLR start "ruleXVariableDeclaration" |
| // InternalEntityMockDSL.g:9173:1: ruleXVariableDeclaration returns [EObject current=null] : ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ; |
| public final EObject ruleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_writeable_1_0=null; |
| Token otherlv_2=null; |
| Token otherlv_6=null; |
| EObject lv_type_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_4_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_5_0 = null; |
| |
| EObject lv_right_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9179:2: ( ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ) |
| // InternalEntityMockDSL.g:9180:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:9180:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) |
| // InternalEntityMockDSL.g:9181:3: () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| { |
| // InternalEntityMockDSL.g:9181:3: () |
| // InternalEntityMockDSL.g:9182:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9188:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==31) ) { |
| alt157=1; |
| } |
| else if ( (LA157_0==138) ) { |
| alt157=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 157, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt157) { |
| case 1 : |
| // InternalEntityMockDSL.g:9189:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalEntityMockDSL.g:9189:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalEntityMockDSL.g:9190:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalEntityMockDSL.g:9190:5: (lv_writeable_1_0= 'var' ) |
| // InternalEntityMockDSL.g:9191:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,31,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXVariableDeclarationRule()); |
| } |
| setWithLastConsumed(current, "writeable", true, "var"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9204:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,138,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9209:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( (LA158_0==RULE_ID) ) { |
| int LA158_1 = input.LA(2); |
| |
| if ( (synpred35_InternalEntityMockDSL()) ) { |
| alt158=1; |
| } |
| else if ( (true) ) { |
| alt158=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 158, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA158_0==25) && (synpred35_InternalEntityMockDSL())) { |
| alt158=1; |
| } |
| else if ( (LA158_0==116) && (synpred35_InternalEntityMockDSL())) { |
| alt158=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 158, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt158) { |
| case 1 : |
| // InternalEntityMockDSL.g:9210:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:9210:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9211:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9224:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9225:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9225:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9226:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9226:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9227:8: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_type_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "type", |
| lv_type_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9244:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9245:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9245:7: (lv_name_4_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9246:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_135); |
| lv_name_4_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9266:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9266:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9267:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9267:5: (lv_name_5_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9268:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_135); |
| lv_name_5_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_5_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9286:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( (LA159_0==94) ) { |
| alt159=1; |
| } |
| switch (alt159) { |
| case 1 : |
| // InternalEntityMockDSL.g:9287:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,94,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9291:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9292:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9292:5: (lv_right_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9293:6: lv_right_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_right_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); |
| } |
| set( |
| current, |
| "right", |
| lv_right_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXVariableDeclaration" |
| |
| |
| // $ANTLR start "entryRuleJvmFormalParameter" |
| // InternalEntityMockDSL.g:9315:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9315:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalEntityMockDSL.g:9316:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmFormalParameter=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleJvmFormalParameter" |
| // InternalEntityMockDSL.g:9322:1: ruleJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9328:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9329:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9329:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9330:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9330:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==RULE_ID) ) { |
| int LA160_1 = input.LA(2); |
| |
| if ( (LA160_1==RULE_ID||LA160_1==34||LA160_1==96||LA160_1==103) ) { |
| alt160=1; |
| } |
| } |
| else if ( (LA160_0==25||LA160_0==116) ) { |
| alt160=1; |
| } |
| switch (alt160) { |
| case 1 : |
| // InternalEntityMockDSL.g:9331:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9331:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9332:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9349:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9350:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9350:4: (lv_name_1_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9351:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleFullJvmFormalParameter" |
| // InternalEntityMockDSL.g:9372:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9372:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalEntityMockDSL.g:9373:2: iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFullJvmFormalParameter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "ruleFullJvmFormalParameter" |
| // InternalEntityMockDSL.g:9379:1: ruleFullJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ; |
| public final EObject ruleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_parameterType_0_0 = null; |
| |
| AntlrDatatypeRuleToken lv_name_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9385:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9386:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9386:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9387:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9387:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9388:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9388:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9389:5: lv_parameterType_0_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_parameterType_0_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "parameterType", |
| lv_parameterType_0_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9406:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9407:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9407:4: (lv_name_1_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9408:5: lv_name_1_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_name_1_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_1_0, |
| "org.eclipse.xtext.xbase.Xtype.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFullJvmFormalParameter" |
| |
| |
| // $ANTLR start "entryRuleXFeatureCall" |
| // InternalEntityMockDSL.g:9429:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9429:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalEntityMockDSL.g:9430:2: iv_ruleXFeatureCall= ruleXFeatureCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFeatureCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFeatureCall=ruleXFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFeatureCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFeatureCall" |
| |
| |
| // $ANTLR start "ruleXFeatureCall" |
| // InternalEntityMockDSL.g:9436:1: ruleXFeatureCall returns [EObject current=null] : ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token lv_explicitOperationCall_7_0=null; |
| Token otherlv_10=null; |
| Token otherlv_12=null; |
| EObject lv_typeArguments_2_0 = null; |
| |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_featureCallArguments_8_0 = null; |
| |
| EObject lv_featureCallArguments_9_0 = null; |
| |
| EObject lv_featureCallArguments_11_0 = null; |
| |
| EObject lv_featureCallArguments_13_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9442:2: ( ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ) |
| // InternalEntityMockDSL.g:9443:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| { |
| // InternalEntityMockDSL.g:9443:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) |
| // InternalEntityMockDSL.g:9444:3: () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| { |
| // InternalEntityMockDSL.g:9444:3: () |
| // InternalEntityMockDSL.g:9445:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9451:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==103) ) { |
| alt162=1; |
| } |
| switch (alt162) { |
| case 1 : |
| // InternalEntityMockDSL.g:9452:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,103,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9456:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9457:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9457:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9458:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9475:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop161: |
| do { |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==26) ) { |
| alt161=1; |
| } |
| |
| |
| switch (alt161) { |
| case 1 : |
| // InternalEntityMockDSL.g:9476:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,26,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9480:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9481:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9481:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9482:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop161; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,104,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9505:3: ( ( ruleIdOrSuper ) ) |
| // InternalEntityMockDSL.g:9506:4: ( ruleIdOrSuper ) |
| { |
| // InternalEntityMockDSL.g:9506:4: ( ruleIdOrSuper ) |
| // InternalEntityMockDSL.g:9507:5: ruleIdOrSuper |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9521:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? |
| int alt165=2; |
| alt165 = dfa165.predict(input); |
| switch (alt165) { |
| case 1 : |
| // InternalEntityMockDSL.g:9522:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' |
| { |
| // InternalEntityMockDSL.g:9522:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalEntityMockDSL.g:9523:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:9527:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalEntityMockDSL.g:9528:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,25,FOLLOW_111); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXFeatureCallRule()); |
| } |
| setWithLastConsumed(current, "explicitOperationCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9540:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt164=3; |
| alt164 = dfa164.predict(input); |
| switch (alt164) { |
| case 1 : |
| // InternalEntityMockDSL.g:9541:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:9541:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:9542:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:9567:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:9568:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_featureCallArguments_8_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_8_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9586:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:9586:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:9587:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:9587:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9588:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9588:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9589:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_featureCallArguments_9_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9606:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop163: |
| do { |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==26) ) { |
| alt163=1; |
| } |
| |
| |
| switch (alt163) { |
| case 1 : |
| // InternalEntityMockDSL.g:9607:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9611:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9612:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9612:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9613:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_featureCallArguments_11_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_11_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop163; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,27,FOLLOW_137); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9638:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt166=2; |
| alt166 = dfa166.predict(input); |
| switch (alt166) { |
| case 1 : |
| // InternalEntityMockDSL.g:9639:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:9645:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:9646:5: lv_featureCallArguments_13_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_featureCallArguments_13_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); |
| } |
| add( |
| current, |
| "featureCallArguments", |
| lv_featureCallArguments_13_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleFeatureCallID" |
| // InternalEntityMockDSL.g:9667:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9667:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalEntityMockDSL.g:9668:2: iv_ruleFeatureCallID= ruleFeatureCallID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getFeatureCallIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleFeatureCallID=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleFeatureCallID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleFeatureCallID" |
| |
| |
| // $ANTLR start "ruleFeatureCallID" |
| // InternalEntityMockDSL.g:9674:1: ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ; |
| public final AntlrDatatypeRuleToken ruleFeatureCallID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9680:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalEntityMockDSL.g:9681:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalEntityMockDSL.g:9681:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt167=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt167=1; |
| } |
| break; |
| case 139: |
| { |
| alt167=2; |
| } |
| break; |
| case 88: |
| { |
| alt167=3; |
| } |
| break; |
| case 87: |
| { |
| alt167=4; |
| } |
| break; |
| case 89: |
| { |
| alt167=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 167, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt167) { |
| case 1 : |
| // InternalEntityMockDSL.g:9682:3: this_ValidID_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9693:3: kw= 'extends' |
| { |
| kw=(Token)match(input,139,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:9699:3: kw= 'static' |
| { |
| kw=(Token)match(input,88,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:9705:3: kw= 'import' |
| { |
| kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:9711:3: kw= 'extension' |
| { |
| kw=(Token)match(input,89,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleFeatureCallID" |
| |
| |
| // $ANTLR start "entryRuleIdOrSuper" |
| // InternalEntityMockDSL.g:9720:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9720:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalEntityMockDSL.g:9721:2: iv_ruleIdOrSuper= ruleIdOrSuper EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getIdOrSuperRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleIdOrSuper=ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleIdOrSuper.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleIdOrSuper" |
| |
| |
| // $ANTLR start "ruleIdOrSuper" |
| // InternalEntityMockDSL.g:9727:1: ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ; |
| public final AntlrDatatypeRuleToken ruleIdOrSuper() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_FeatureCallID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9733:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalEntityMockDSL.g:9734:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalEntityMockDSL.g:9734:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt168=2; |
| int LA168_0 = input.LA(1); |
| |
| if ( (LA168_0==RULE_ID||(LA168_0>=87 && LA168_0<=89)||LA168_0==139) ) { |
| alt168=1; |
| } |
| else if ( (LA168_0==140) ) { |
| alt168=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 168, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt168) { |
| case 1 : |
| // InternalEntityMockDSL.g:9735:3: this_FeatureCallID_0= ruleFeatureCallID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_FeatureCallID_0=ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_FeatureCallID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9746:3: kw= 'super' |
| { |
| kw=(Token)match(input,140,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleIdOrSuper" |
| |
| |
| // $ANTLR start "entryRuleXConstructorCall" |
| // InternalEntityMockDSL.g:9755:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:9755:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalEntityMockDSL.g:9756:2: iv_ruleXConstructorCall= ruleXConstructorCall EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXConstructorCallRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXConstructorCall=ruleXConstructorCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXConstructorCall; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXConstructorCall" |
| |
| |
| // $ANTLR start "ruleXConstructorCall" |
| // InternalEntityMockDSL.g:9762:1: ruleXConstructorCall returns [EObject current=null] : ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ; |
| public final EObject ruleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token lv_explicitConstructorCall_8_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_typeArguments_4_0 = null; |
| |
| EObject lv_typeArguments_6_0 = null; |
| |
| EObject lv_arguments_9_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| EObject lv_arguments_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:9768:2: ( ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ) |
| // InternalEntityMockDSL.g:9769:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| { |
| // InternalEntityMockDSL.g:9769:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) |
| // InternalEntityMockDSL.g:9770:3: () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| { |
| // InternalEntityMockDSL.g:9770:3: () |
| // InternalEntityMockDSL.g:9771:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,141,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9781:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:9782:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:9782:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:9783:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); |
| |
| } |
| pushFollow(FOLLOW_138); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9797:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt170=2; |
| alt170 = dfa170.predict(input); |
| switch (alt170) { |
| case 1 : |
| // InternalEntityMockDSL.g:9798:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalEntityMockDSL.g:9798:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalEntityMockDSL.g:9799:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,103,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9805:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9806:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9806:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9807:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9824:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop169: |
| do { |
| int alt169=2; |
| int LA169_0 = input.LA(1); |
| |
| if ( (LA169_0==26) ) { |
| alt169=1; |
| } |
| |
| |
| switch (alt169) { |
| case 1 : |
| // InternalEntityMockDSL.g:9825:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,26,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9829:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9830:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9830:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9831:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_typeArguments_6_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "typeArguments", |
| lv_typeArguments_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop169; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,104,FOLLOW_136); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9854:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? |
| int alt173=2; |
| alt173 = dfa173.predict(input); |
| switch (alt173) { |
| case 1 : |
| // InternalEntityMockDSL.g:9855:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' |
| { |
| // InternalEntityMockDSL.g:9855:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalEntityMockDSL.g:9856:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:9860:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalEntityMockDSL.g:9861:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,25,FOLLOW_111); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXConstructorCallRule()); |
| } |
| setWithLastConsumed(current, "explicitConstructorCall", true, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9873:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt172=3; |
| alt172 = dfa172.predict(input); |
| switch (alt172) { |
| case 1 : |
| // InternalEntityMockDSL.g:9874:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:9874:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:9875:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:9900:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:9901:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_arguments_9_0=ruleXShortClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_9_0, |
| "org.eclipse.xtext.xbase.Xbase.XShortClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:9919:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:9919:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:9920:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:9920:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9921:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9921:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9922:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_arguments_10_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9939:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop171: |
| do { |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==26) ) { |
| alt171=1; |
| } |
| |
| |
| switch (alt171) { |
| case 1 : |
| // InternalEntityMockDSL.g:9940:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,26,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9944:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9945:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9945:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9946:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_arguments_12_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop171; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,27,FOLLOW_137); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9971:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt174=2; |
| alt174 = dfa174.predict(input); |
| switch (alt174) { |
| case 1 : |
| // InternalEntityMockDSL.g:9972:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:9978:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:9979:5: lv_arguments_14_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_arguments_14_0=ruleXClosure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_14_0, |
| "org.eclipse.xtext.xbase.Xbase.XClosure"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXConstructorCall" |
| |
| |
| // $ANTLR start "entryRuleXBooleanLiteral" |
| // InternalEntityMockDSL.g:10000:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10000:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalEntityMockDSL.g:10001:2: iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXBooleanLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXBooleanLiteral=ruleXBooleanLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXBooleanLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXBooleanLiteral" |
| |
| |
| // $ANTLR start "ruleXBooleanLiteral" |
| // InternalEntityMockDSL.g:10007:1: ruleXBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; |
| public final EObject ruleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_isTrue_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10013:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalEntityMockDSL.g:10014:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:10014:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalEntityMockDSL.g:10015:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalEntityMockDSL.g:10015:3: () |
| // InternalEntityMockDSL.g:10016:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10022:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt175=2; |
| int LA175_0 = input.LA(1); |
| |
| if ( (LA175_0==142) ) { |
| alt175=1; |
| } |
| else if ( (LA175_0==143) ) { |
| alt175=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 175, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt175) { |
| case 1 : |
| // InternalEntityMockDSL.g:10023:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,142,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10028:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalEntityMockDSL.g:10028:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalEntityMockDSL.g:10029:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalEntityMockDSL.g:10029:5: (lv_isTrue_2_0= 'true' ) |
| // InternalEntityMockDSL.g:10030:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,143,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXBooleanLiteralRule()); |
| } |
| setWithLastConsumed(current, "isTrue", true, "true"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXBooleanLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNullLiteral" |
| // InternalEntityMockDSL.g:10047:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10047:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalEntityMockDSL.g:10048:2: iv_ruleXNullLiteral= ruleXNullLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNullLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNullLiteral=ruleXNullLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNullLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNullLiteral" |
| |
| |
| // $ANTLR start "ruleXNullLiteral" |
| // InternalEntityMockDSL.g:10054:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10060:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalEntityMockDSL.g:10061:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalEntityMockDSL.g:10061:2: ( () otherlv_1= 'null' ) |
| // InternalEntityMockDSL.g:10062:3: () otherlv_1= 'null' |
| { |
| // InternalEntityMockDSL.g:10062:3: () |
| // InternalEntityMockDSL.g:10063:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,144,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNullLiteral" |
| |
| |
| // $ANTLR start "entryRuleXNumberLiteral" |
| // InternalEntityMockDSL.g:10077:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10077:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalEntityMockDSL.g:10078:2: iv_ruleXNumberLiteral= ruleXNumberLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXNumberLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXNumberLiteral=ruleXNumberLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXNumberLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXNumberLiteral" |
| |
| |
| // $ANTLR start "ruleXNumberLiteral" |
| // InternalEntityMockDSL.g:10084:1: ruleXNumberLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleNumber ) ) ) ; |
| public final EObject ruleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| AntlrDatatypeRuleToken lv_value_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10090:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalEntityMockDSL.g:10091:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalEntityMockDSL.g:10091:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalEntityMockDSL.g:10092:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalEntityMockDSL.g:10092:3: () |
| // InternalEntityMockDSL.g:10093:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10099:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalEntityMockDSL.g:10100:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalEntityMockDSL.g:10100:4: (lv_value_1_0= ruleNumber ) |
| // InternalEntityMockDSL.g:10101:5: lv_value_1_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_value_1_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXNumberLiteral" |
| |
| |
| // $ANTLR start "entryRuleXStringLiteral" |
| // InternalEntityMockDSL.g:10122:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10122:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalEntityMockDSL.g:10123:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXStringLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXStringLiteral=ruleXStringLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXStringLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXStringLiteral" |
| |
| |
| // $ANTLR start "ruleXStringLiteral" |
| // InternalEntityMockDSL.g:10129:1: ruleXStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_value_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10135:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalEntityMockDSL.g:10136:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalEntityMockDSL.g:10136:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalEntityMockDSL.g:10137:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:10137:3: () |
| // InternalEntityMockDSL.g:10138:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10144:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:10145:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:10145:4: (lv_value_1_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:10146:5: lv_value_1_0= RULE_STRING |
| { |
| lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXStringLiteralRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_1_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXStringLiteral" |
| |
| |
| // $ANTLR start "entryRuleXTypeLiteral" |
| // InternalEntityMockDSL.g:10166:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10166:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalEntityMockDSL.g:10167:2: iv_ruleXTypeLiteral= ruleXTypeLiteral EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTypeLiteralRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTypeLiteral=ruleXTypeLiteral(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTypeLiteral; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTypeLiteral" |
| |
| |
| // $ANTLR start "ruleXTypeLiteral" |
| // InternalEntityMockDSL.g:10173:1: ruleXTypeLiteral returns [EObject current=null] : ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ; |
| public final EObject ruleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_arrayDimensions_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10179:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:10180:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:10180:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:10181:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalEntityMockDSL.g:10181:3: () |
| // InternalEntityMockDSL.g:10182:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,145,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:10196:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:10197:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:10197:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:10198:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXTypeLiteralRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); |
| |
| } |
| pushFollow(FOLLOW_139); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10212:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop176: |
| do { |
| int alt176=2; |
| int LA176_0 = input.LA(1); |
| |
| if ( (LA176_0==96) ) { |
| alt176=1; |
| } |
| |
| |
| switch (alt176) { |
| case 1 : |
| // InternalEntityMockDSL.g:10213:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10213:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10214:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_139); |
| lv_arrayDimensions_4_0=ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); |
| } |
| add( |
| current, |
| "arrayDimensions", |
| lv_arrayDimensions_4_0, |
| "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop176; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTypeLiteral" |
| |
| |
| // $ANTLR start "entryRuleXThrowExpression" |
| // InternalEntityMockDSL.g:10239:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10239:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalEntityMockDSL.g:10240:2: iv_ruleXThrowExpression= ruleXThrowExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXThrowExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXThrowExpression=ruleXThrowExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXThrowExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXThrowExpression" |
| |
| |
| // $ANTLR start "ruleXThrowExpression" |
| // InternalEntityMockDSL.g:10246:1: ruleXThrowExpression returns [EObject current=null] : ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10252:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10253:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10253:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10254:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10254:3: () |
| // InternalEntityMockDSL.g:10255:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,146,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10265:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10266:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10266:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10267:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXThrowExpression" |
| |
| |
| // $ANTLR start "entryRuleXReturnExpression" |
| // InternalEntityMockDSL.g:10288:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10288:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalEntityMockDSL.g:10289:2: iv_ruleXReturnExpression= ruleXReturnExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXReturnExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXReturnExpression=ruleXReturnExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXReturnExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXReturnExpression" |
| |
| |
| // $ANTLR start "ruleXReturnExpression" |
| // InternalEntityMockDSL.g:10295:1: ruleXReturnExpression returns [EObject current=null] : ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ; |
| public final EObject ruleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_expression_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10301:2: ( ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ) |
| // InternalEntityMockDSL.g:10302:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| { |
| // InternalEntityMockDSL.g:10302:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) |
| // InternalEntityMockDSL.g:10303:3: () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| { |
| // InternalEntityMockDSL.g:10303:3: () |
| // InternalEntityMockDSL.g:10304:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,147,FOLLOW_140); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10314:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? |
| int alt177=2; |
| alt177 = dfa177.predict(input); |
| switch (alt177) { |
| case 1 : |
| // InternalEntityMockDSL.g:10315:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10316:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10317:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXReturnExpression" |
| |
| |
| // $ANTLR start "entryRuleXTryCatchFinallyExpression" |
| // InternalEntityMockDSL.g:10338:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10338:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalEntityMockDSL.g:10339:2: iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXTryCatchFinallyExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "ruleXTryCatchFinallyExpression" |
| // InternalEntityMockDSL.g:10345:1: ruleXTryCatchFinallyExpression returns [EObject current=null] : ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ; |
| public final EObject ruleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_expression_2_0 = null; |
| |
| EObject lv_catchClauses_3_0 = null; |
| |
| EObject lv_finallyExpression_5_0 = null; |
| |
| EObject lv_finallyExpression_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10351:2: ( ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ) |
| // InternalEntityMockDSL.g:10352:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:10352:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) |
| // InternalEntityMockDSL.g:10353:3: () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:10353:3: () |
| // InternalEntityMockDSL.g:10354:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,148,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10364:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10365:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10365:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10366:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_141); |
| lv_expression_2_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_2_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10383:3: ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) |
| int alt180=2; |
| int LA180_0 = input.LA(1); |
| |
| if ( (LA180_0==151) ) { |
| alt180=1; |
| } |
| else if ( (LA180_0==149) ) { |
| alt180=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 180, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt180) { |
| case 1 : |
| // InternalEntityMockDSL.g:10384:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:10384:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalEntityMockDSL.g:10385:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalEntityMockDSL.g:10385:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt178=0; |
| loop178: |
| do { |
| int alt178=2; |
| int LA178_0 = input.LA(1); |
| |
| if ( (LA178_0==151) ) { |
| int LA178_2 = input.LA(2); |
| |
| if ( (synpred44_InternalEntityMockDSL()) ) { |
| alt178=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt178) { |
| case 1 : |
| // InternalEntityMockDSL.g:10386:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalEntityMockDSL.g:10387:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalEntityMockDSL.g:10388:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_142); |
| lv_catchClauses_3_0=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| add( |
| current, |
| "catchClauses", |
| lv_catchClauses_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XCatchClause"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt178 >= 1 ) break loop178; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(178, input); |
| throw eee; |
| } |
| cnt178++; |
| } while (true); |
| |
| // InternalEntityMockDSL.g:10405:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==149) ) { |
| int LA179_1 = input.LA(2); |
| |
| if ( (synpred45_InternalEntityMockDSL()) ) { |
| alt179=1; |
| } |
| } |
| switch (alt179) { |
| case 1 : |
| // InternalEntityMockDSL.g:10406:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10406:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalEntityMockDSL.g:10407:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,149,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10413:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10414:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10414:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10415:8: lv_finallyExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10435:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10435:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10436:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,149,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10440:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10441:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10441:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10442:7: lv_finallyExpression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_finallyExpression_7_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); |
| } |
| set( |
| current, |
| "finallyExpression", |
| lv_finallyExpression_7_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXTryCatchFinallyExpression" |
| |
| |
| // $ANTLR start "entryRuleXSynchronizedExpression" |
| // InternalEntityMockDSL.g:10465:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10465:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalEntityMockDSL.g:10466:2: iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXSynchronizedExpression; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "ruleXSynchronizedExpression" |
| // InternalEntityMockDSL.g:10472:1: ruleXSynchronizedExpression returns [EObject current=null] : ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_param_3_0 = null; |
| |
| EObject lv_expression_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10478:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10479:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10479:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10480:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10480:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalEntityMockDSL.g:10481:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalEntityMockDSL.g:10488:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalEntityMockDSL.g:10489:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalEntityMockDSL.g:10489:5: () |
| // InternalEntityMockDSL.g:10490:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,150,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,25,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10506:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10507:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10507:4: (lv_param_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10508:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_param_3_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "param", |
| lv_param_3_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:10529:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10530:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10530:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10531:5: lv_expression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_5_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_5_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXSynchronizedExpression" |
| |
| |
| // $ANTLR start "entryRuleXCatchClause" |
| // InternalEntityMockDSL.g:10552:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10552:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalEntityMockDSL.g:10553:2: iv_ruleXCatchClause= ruleXCatchClause EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXCatchClauseRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXCatchClause=ruleXCatchClause(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXCatchClause; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXCatchClause" |
| |
| |
| // $ANTLR start "ruleXCatchClause" |
| // InternalEntityMockDSL.g:10559:1: ruleXCatchClause returns [EObject current=null] : ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ; |
| public final EObject ruleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_declaredParam_2_0 = null; |
| |
| EObject lv_expression_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10565:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10566:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10566:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10567:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10567:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalEntityMockDSL.g:10568:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,151,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,25,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10578:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:10579:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:10579:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalEntityMockDSL.g:10580:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| lv_declaredParam_2_0=ruleFullJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_2_0, |
| "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,27,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:10601:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10602:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10602:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10603:5: lv_expression_4_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_expression_4_0=ruleXExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); |
| } |
| set( |
| current, |
| "expression", |
| lv_expression_4_0, |
| "org.eclipse.xtext.xbase.Xbase.XExpression"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCatchClause" |
| |
| |
| // $ANTLR start "entryRuleQualifiedName" |
| // InternalEntityMockDSL.g:10624:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10624:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalEntityMockDSL.g:10625:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedName=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedName.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedName" |
| |
| |
| // $ANTLR start "ruleQualifiedName" |
| // InternalEntityMockDSL.g:10631:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| AntlrDatatypeRuleToken this_ValidID_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10637:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalEntityMockDSL.g:10638:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalEntityMockDSL.g:10638:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalEntityMockDSL.g:10639:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:10649:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop181: |
| do { |
| int alt181=2; |
| int LA181_0 = input.LA(1); |
| |
| if ( (LA181_0==34) ) { |
| int LA181_2 = input.LA(2); |
| |
| if ( (LA181_2==RULE_ID) ) { |
| int LA181_3 = input.LA(3); |
| |
| if ( (synpred48_InternalEntityMockDSL()) ) { |
| alt181=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt181) { |
| case 1 : |
| // InternalEntityMockDSL.g:10650:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalEntityMockDSL.g:10650:4: ( ( '.' )=>kw= '.' ) |
| // InternalEntityMockDSL.g:10651:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); |
| |
| } |
| pushFollow(FOLLOW_31); |
| this_ValidID_2=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| break loop181; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalEntityMockDSL.g:10673:1: entryRuleNumber returns [String current=null] : iv_ruleNumber= ruleNumber EOF ; |
| public final String entryRuleNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleNumber = null; |
| |
| |
| |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalEntityMockDSL.g:10675:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalEntityMockDSL.g:10676:2: iv_ruleNumber= ruleNumber EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNumberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNumber=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNumber.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| |
| myHiddenTokenState.restore(); |
| |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNumber" |
| |
| |
| // $ANTLR start "ruleNumber" |
| // InternalEntityMockDSL.g:10685:1: ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ; |
| public final AntlrDatatypeRuleToken ruleNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_HEX_0=null; |
| Token this_INT_1=null; |
| Token this_DECIMAL_2=null; |
| Token kw=null; |
| Token this_INT_4=null; |
| Token this_DECIMAL_5=null; |
| |
| |
| enterRule(); |
| HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); |
| |
| try { |
| // InternalEntityMockDSL.g:10692:2: ( (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ) |
| // InternalEntityMockDSL.g:10693:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| { |
| // InternalEntityMockDSL.g:10693:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) |
| int alt185=2; |
| int LA185_0 = input.LA(1); |
| |
| if ( (LA185_0==RULE_HEX) ) { |
| alt185=1; |
| } |
| else if ( (LA185_0==RULE_INT||LA185_0==RULE_DECIMAL) ) { |
| alt185=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 185, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt185) { |
| case 1 : |
| // InternalEntityMockDSL.g:10694:3: this_HEX_0= RULE_HEX |
| { |
| this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_HEX_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10702:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalEntityMockDSL.g:10702:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalEntityMockDSL.g:10703:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalEntityMockDSL.g:10703:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==RULE_INT) ) { |
| alt182=1; |
| } |
| else if ( (LA182_0==RULE_DECIMAL) ) { |
| alt182=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 182, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt182) { |
| case 1 : |
| // InternalEntityMockDSL.g:10704:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10712:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:10720:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt184=2; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==34) ) { |
| int LA184_1 = input.LA(2); |
| |
| if ( (LA184_1==RULE_INT||LA184_1==RULE_DECIMAL) ) { |
| alt184=1; |
| } |
| } |
| switch (alt184) { |
| case 1 : |
| // InternalEntityMockDSL.g:10721:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,34,FOLLOW_143); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10726:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt183=2; |
| int LA183_0 = input.LA(1); |
| |
| if ( (LA183_0==RULE_INT) ) { |
| alt183=1; |
| } |
| else if ( (LA183_0==RULE_DECIMAL) ) { |
| alt183=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 183, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt183) { |
| case 1 : |
| // InternalEntityMockDSL.g:10727:6: this_INT_4= RULE_INT |
| { |
| this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_4); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10735:6: this_DECIMAL_5= RULE_DECIMAL |
| { |
| this_DECIMAL_5=(Token)match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_DECIMAL_5); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| |
| myHiddenTokenState.restore(); |
| |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumber" |
| |
| |
| // $ANTLR start "entryRuleJvmTypeReference" |
| // InternalEntityMockDSL.g:10752:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10752:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalEntityMockDSL.g:10753:2: iv_ruleJvmTypeReference= ruleJvmTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmTypeReference=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmTypeReference" |
| // InternalEntityMockDSL.g:10759:1: ruleJvmTypeReference returns [EObject current=null] : ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ; |
| public final EObject ruleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmParameterizedTypeReference_0 = null; |
| |
| EObject this_XFunctionTypeRef_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10765:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalEntityMockDSL.g:10766:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalEntityMockDSL.g:10766:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt187=2; |
| int LA187_0 = input.LA(1); |
| |
| if ( (LA187_0==RULE_ID) ) { |
| alt187=1; |
| } |
| else if ( (LA187_0==25||LA187_0==116) ) { |
| alt187=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 187, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt187) { |
| case 1 : |
| // InternalEntityMockDSL.g:10767:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalEntityMockDSL.g:10767:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalEntityMockDSL.g:10768:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_137); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:10776:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop186: |
| do { |
| int alt186=2; |
| int LA186_0 = input.LA(1); |
| |
| if ( (LA186_0==96) ) { |
| int LA186_2 = input.LA(2); |
| |
| if ( (LA186_2==97) ) { |
| int LA186_3 = input.LA(3); |
| |
| if ( (synpred49_InternalEntityMockDSL()) ) { |
| alt186=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt186) { |
| case 1 : |
| // InternalEntityMockDSL.g:10777:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10783:5: ( () ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10784:6: () ruleArrayBrackets |
| { |
| // InternalEntityMockDSL.g:10784:6: () |
| // InternalEntityMockDSL.g:10785:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); |
| |
| } |
| pushFollow(FOLLOW_137); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop186; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10802:3: this_XFunctionTypeRef_3= ruleXFunctionTypeRef |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_XFunctionTypeRef_3=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XFunctionTypeRef_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmTypeReference" |
| |
| |
| // $ANTLR start "entryRuleArrayBrackets" |
| // InternalEntityMockDSL.g:10814:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10814:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalEntityMockDSL.g:10815:2: iv_ruleArrayBrackets= ruleArrayBrackets EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getArrayBracketsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleArrayBrackets=ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleArrayBrackets.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleArrayBrackets" |
| |
| |
| // $ANTLR start "ruleArrayBrackets" |
| // InternalEntityMockDSL.g:10821:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10827:2: ( (kw= '[' kw= ']' ) ) |
| // InternalEntityMockDSL.g:10828:2: (kw= '[' kw= ']' ) |
| { |
| // InternalEntityMockDSL.g:10828:2: (kw= '[' kw= ']' ) |
| // InternalEntityMockDSL.g:10829:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,96,FOLLOW_118); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleArrayBrackets" |
| |
| |
| // $ANTLR start "entryRuleXFunctionTypeRef" |
| // InternalEntityMockDSL.g:10843:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10843:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalEntityMockDSL.g:10844:2: iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXFunctionTypeRef; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "ruleXFunctionTypeRef" |
| // InternalEntityMockDSL.g:10850:1: ruleXFunctionTypeRef returns [EObject current=null] : ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| EObject lv_paramTypes_1_0 = null; |
| |
| EObject lv_paramTypes_3_0 = null; |
| |
| EObject lv_returnType_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10856:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:10857:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:10857:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:10858:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalEntityMockDSL.g:10858:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==25) ) { |
| alt190=1; |
| } |
| switch (alt190) { |
| case 1 : |
| // InternalEntityMockDSL.g:10859:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10863:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==RULE_ID||LA189_0==25||LA189_0==116) ) { |
| alt189=1; |
| } |
| switch (alt189) { |
| case 1 : |
| // InternalEntityMockDSL.g:10864:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalEntityMockDSL.g:10864:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:10865:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10865:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:10866:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_paramTypes_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10883:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop188: |
| do { |
| int alt188=2; |
| int LA188_0 = input.LA(1); |
| |
| if ( (LA188_0==26) ) { |
| alt188=1; |
| } |
| |
| |
| switch (alt188) { |
| case 1 : |
| // InternalEntityMockDSL.g:10884:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,26,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10888:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:10889:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10889:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:10890:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_paramTypes_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| add( |
| current, |
| "paramTypes", |
| lv_paramTypes_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop188; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,27,FOLLOW_144); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,116,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10918:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:10919:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10919:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:10920:5: lv_returnType_6_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_returnType_6_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); |
| } |
| set( |
| current, |
| "returnType", |
| lv_returnType_6_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXFunctionTypeRef" |
| |
| |
| // $ANTLR start "entryRuleJvmParameterizedTypeReference" |
| // InternalEntityMockDSL.g:10941:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:10941:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalEntityMockDSL.g:10942:2: iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmParameterizedTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmParameterizedTypeReference" |
| // InternalEntityMockDSL.g:10948:1: ruleJvmParameterizedTypeReference returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ; |
| public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_5=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| EObject lv_arguments_2_0 = null; |
| |
| EObject lv_arguments_4_0 = null; |
| |
| EObject lv_arguments_10_0 = null; |
| |
| EObject lv_arguments_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:10954:2: ( ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ) |
| // InternalEntityMockDSL.g:10955:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| { |
| // InternalEntityMockDSL.g:10955:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) |
| // InternalEntityMockDSL.g:10956:3: ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| { |
| // InternalEntityMockDSL.g:10956:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:10957:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:10957:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:10958:5: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); |
| |
| } |
| pushFollow(FOLLOW_145); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10972:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? |
| int alt195=2; |
| alt195 = dfa195.predict(input); |
| switch (alt195) { |
| case 1 : |
| // InternalEntityMockDSL.g:10973:4: ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| { |
| // InternalEntityMockDSL.g:10973:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalEntityMockDSL.g:10974:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,103,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10980:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:10981:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10981:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:10982:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_arguments_2_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10999:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop191: |
| do { |
| int alt191=2; |
| int LA191_0 = input.LA(1); |
| |
| if ( (LA191_0==26) ) { |
| alt191=1; |
| } |
| |
| |
| switch (alt191) { |
| case 1 : |
| // InternalEntityMockDSL.g:11000:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,26,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11004:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11005:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11005:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11006:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_arguments_4_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop191; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,104,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalEntityMockDSL.g:11028:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop194: |
| do { |
| int alt194=2; |
| int LA194_0 = input.LA(1); |
| |
| if ( (LA194_0==34) ) { |
| int LA194_2 = input.LA(2); |
| |
| if ( (LA194_2==RULE_ID) ) { |
| int LA194_3 = input.LA(3); |
| |
| if ( (synpred51_InternalEntityMockDSL()) ) { |
| alt194=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt194) { |
| case 1 : |
| // InternalEntityMockDSL.g:11029:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalEntityMockDSL.g:11029:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalEntityMockDSL.g:11030:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalEntityMockDSL.g:11036:6: ( () otherlv_7= '.' ) |
| // InternalEntityMockDSL.g:11037:7: () otherlv_7= '.' |
| { |
| // InternalEntityMockDSL.g:11037:7: () |
| // InternalEntityMockDSL.g:11038:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,34,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11050:5: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:11051:6: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:11051:6: ( ruleValidID ) |
| // InternalEntityMockDSL.g:11052:7: ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_146); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11066:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt193=2; |
| alt193 = dfa193.predict(input); |
| switch (alt193) { |
| case 1 : |
| // InternalEntityMockDSL.g:11067:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalEntityMockDSL.g:11067:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalEntityMockDSL.g:11068:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,103,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:11074:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11075:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11075:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11076:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_arguments_10_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_10_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11093:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop192: |
| do { |
| int alt192=2; |
| int LA192_0 = input.LA(1); |
| |
| if ( (LA192_0==26) ) { |
| alt192=1; |
| } |
| |
| |
| switch (alt192) { |
| case 1 : |
| // InternalEntityMockDSL.g:11094:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,26,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11098:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11099:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11099:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11100:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_109); |
| lv_arguments_12_0=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); |
| } |
| add( |
| current, |
| "arguments", |
| lv_arguments_12_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop192; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,104,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop194; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalEntityMockDSL.g:11129:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11129:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalEntityMockDSL.g:11130:2: iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmArgumentTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmArgumentTypeReference" |
| // InternalEntityMockDSL.g:11136:1: ruleJvmArgumentTypeReference returns [EObject current=null] : (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ; |
| public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_JvmTypeReference_0 = null; |
| |
| EObject this_JvmWildcardTypeReference_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11142:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalEntityMockDSL.g:11143:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11143:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt196=2; |
| int LA196_0 = input.LA(1); |
| |
| if ( (LA196_0==RULE_ID||LA196_0==25||LA196_0==116) ) { |
| alt196=1; |
| } |
| else if ( (LA196_0==152) ) { |
| alt196=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 196, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt196) { |
| case 1 : |
| // InternalEntityMockDSL.g:11144:3: this_JvmTypeReference_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmTypeReference_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:11153:3: this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmWildcardTypeReference_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmArgumentTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmWildcardTypeReference" |
| // InternalEntityMockDSL.g:11165:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11165:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalEntityMockDSL.g:11166:2: iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmWildcardTypeReference; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "ruleJvmWildcardTypeReference" |
| // InternalEntityMockDSL.g:11172:1: ruleJvmWildcardTypeReference returns [EObject current=null] : ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ; |
| public final EObject ruleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_constraints_2_0 = null; |
| |
| EObject lv_constraints_3_0 = null; |
| |
| EObject lv_constraints_4_0 = null; |
| |
| EObject lv_constraints_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11178:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalEntityMockDSL.g:11179:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalEntityMockDSL.g:11179:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalEntityMockDSL.g:11180:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalEntityMockDSL.g:11180:3: () |
| // InternalEntityMockDSL.g:11181:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,152,FOLLOW_147); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:11191:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt199=3; |
| int LA199_0 = input.LA(1); |
| |
| if ( (LA199_0==139) ) { |
| alt199=1; |
| } |
| else if ( (LA199_0==140) ) { |
| alt199=2; |
| } |
| switch (alt199) { |
| case 1 : |
| // InternalEntityMockDSL.g:11192:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalEntityMockDSL.g:11192:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalEntityMockDSL.g:11193:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalEntityMockDSL.g:11193:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalEntityMockDSL.g:11194:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalEntityMockDSL.g:11194:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalEntityMockDSL.g:11195:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| lv_constraints_2_0=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_2_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11212:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop197: |
| do { |
| int alt197=2; |
| int LA197_0 = input.LA(1); |
| |
| if ( (LA197_0==153) ) { |
| alt197=1; |
| } |
| |
| |
| switch (alt197) { |
| case 1 : |
| // InternalEntityMockDSL.g:11213:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalEntityMockDSL.g:11213:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalEntityMockDSL.g:11214:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| lv_constraints_3_0=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop197; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:11233:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalEntityMockDSL.g:11233:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalEntityMockDSL.g:11234:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalEntityMockDSL.g:11234:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalEntityMockDSL.g:11235:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalEntityMockDSL.g:11235:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalEntityMockDSL.g:11236:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| lv_constraints_4_0=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_4_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11253:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop198: |
| do { |
| int alt198=2; |
| int LA198_0 = input.LA(1); |
| |
| if ( (LA198_0==153) ) { |
| alt198=1; |
| } |
| |
| |
| switch (alt198) { |
| case 1 : |
| // InternalEntityMockDSL.g:11254:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalEntityMockDSL.g:11254:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalEntityMockDSL.g:11255:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_148); |
| lv_constraints_5_0=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); |
| } |
| add( |
| current, |
| "constraints", |
| lv_constraints_5_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop198; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalEntityMockDSL.g:11278:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11278:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalEntityMockDSL.g:11279:2: iv_ruleJvmUpperBound= ruleJvmUpperBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBound=ruleJvmUpperBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBound" |
| |
| |
| // $ANTLR start "ruleJvmUpperBound" |
| // InternalEntityMockDSL.g:11285:1: ruleJvmUpperBound returns [EObject current=null] : (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11291:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11292:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11292:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11293:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,139,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11297:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11298:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11298:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11299:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBound" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBoundAnded" |
| // InternalEntityMockDSL.g:11320:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11320:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalEntityMockDSL.g:11321:2: iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmUpperBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmUpperBoundAnded" |
| // InternalEntityMockDSL.g:11327:1: ruleJvmUpperBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11333:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11334:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11334:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11335:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,153,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11339:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11340:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11340:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11341:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmUpperBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBound" |
| // InternalEntityMockDSL.g:11362:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11362:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalEntityMockDSL.g:11363:2: iv_ruleJvmLowerBound= ruleJvmLowerBound EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBound=ruleJvmLowerBound(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBound; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBound" |
| |
| |
| // $ANTLR start "ruleJvmLowerBound" |
| // InternalEntityMockDSL.g:11369:1: ruleJvmLowerBound returns [EObject current=null] : (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11375:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11376:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11376:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11377:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,140,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11381:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11382:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11382:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11383:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBound" |
| |
| |
| // $ANTLR start "entryRuleJvmLowerBoundAnded" |
| // InternalEntityMockDSL.g:11404:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11404:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalEntityMockDSL.g:11405:2: iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleJvmLowerBoundAnded; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "ruleJvmLowerBoundAnded" |
| // InternalEntityMockDSL.g:11411:1: ruleJvmLowerBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; |
| public final EObject ruleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_typeReference_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11417:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11418:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11418:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11419:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,153,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11423:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11424:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11424:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11425:5: lv_typeReference_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_typeReference_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); |
| } |
| set( |
| current, |
| "typeReference", |
| lv_typeReference_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmLowerBoundAnded" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
| // InternalEntityMockDSL.g:11446:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11446:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalEntityMockDSL.g:11447:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameWithWildcard.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "ruleQualifiedNameWithWildcard" |
| // InternalEntityMockDSL.g:11453:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_QualifiedName_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11459:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalEntityMockDSL.g:11460:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalEntityMockDSL.g:11460:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalEntityMockDSL.g:11461:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| this_QualifiedName_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_QualifiedName_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,34,FOLLOW_149); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameWithWildcard" |
| |
| |
| // $ANTLR start "entryRuleValidID" |
| // InternalEntityMockDSL.g:11485:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11485:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalEntityMockDSL.g:11486:2: iv_ruleValidID= ruleValidID EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getValidIDRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleValidID=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleValidID.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleValidID" |
| |
| |
| // $ANTLR start "ruleValidID" |
| // InternalEntityMockDSL.g:11492:1: ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; |
| public final AntlrDatatypeRuleToken ruleValidID() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_ID_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11498:2: (this_ID_0= RULE_ID ) |
| // InternalEntityMockDSL.g:11499:2: this_ID_0= RULE_ID |
| { |
| this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleValidID" |
| |
| |
| // $ANTLR start "entryRuleXImportSection" |
| // InternalEntityMockDSL.g:11509:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11509:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalEntityMockDSL.g:11510:2: iv_ruleXImportSection= ruleXImportSection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getXImportSectionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleXImportSection=ruleXImportSection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleXImportSection; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleXImportSection" |
| |
| |
| // $ANTLR start "ruleXImportSection" |
| // InternalEntityMockDSL.g:11516:1: ruleXImportSection returns [EObject current=null] : ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ; |
| public final EObject ruleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importDeclarations_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11522:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalEntityMockDSL.g:11523:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalEntityMockDSL.g:11523:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt200=0; |
| loop200: |
| do { |
| int alt200=2; |
| int LA200_0 = input.LA(1); |
| |
| if ( (LA200_0==87) ) { |
| alt200=1; |
| } |
| |
| |
| switch (alt200) { |
| case 1 : |
| // InternalEntityMockDSL.g:11524:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalEntityMockDSL.g:11524:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalEntityMockDSL.g:11525:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_150); |
| lv_importDeclarations_0_0=ruleXImportDeclaration(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXImportSectionRule()); |
| } |
| add( |
| current, |
| "importDeclarations", |
| lv_importDeclarations_0_0, |
| "org.eclipse.osbp.xtext.oxtype.OXtype.XImportDeclaration"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| if ( cnt200 >= 1 ) break loop200; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(200, input); |
| throw eee; |
| } |
| cnt200++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalEntityMockDSL.g:11545:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:11545:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalEntityMockDSL.g:11546:2: iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleQualifiedNameInStaticImport.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleQualifiedNameInStaticImport" |
| // InternalEntityMockDSL.g:11552:1: ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID kw= '.' )+ ; |
| public final AntlrDatatypeRuleToken ruleQualifiedNameInStaticImport() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_ValidID_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11558:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalEntityMockDSL.g:11559:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalEntityMockDSL.g:11559:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt201=0; |
| loop201: |
| do { |
| int alt201=2; |
| int LA201_0 = input.LA(1); |
| |
| if ( (LA201_0==RULE_ID) ) { |
| int LA201_2 = input.LA(2); |
| |
| if ( (LA201_2==34) ) { |
| alt201=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt201) { |
| case 1 : |
| // InternalEntityMockDSL.g:11560:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_72); |
| this_ValidID_0=ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_ValidID_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| kw=(Token)match(input,34,FOLLOW_151); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt201 >= 1 ) break loop201; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(201, input); |
| throw eee; |
| } |
| cnt201++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleEDateStepType" |
| // InternalEntityMockDSL.g:11579:1: ruleEDateStepType returns [Enumerator current=null] : ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) ; |
| public final Enumerator ruleEDateStepType() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:11585:2: ( ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) ) |
| // InternalEntityMockDSL.g:11586:2: ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) |
| { |
| // InternalEntityMockDSL.g:11586:2: ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) |
| int alt202=4; |
| switch ( input.LA(1) ) { |
| case 154: |
| { |
| alt202=1; |
| } |
| break; |
| case 155: |
| { |
| alt202=2; |
| } |
| break; |
| case 156: |
| { |
| alt202=3; |
| } |
| break; |
| case 43: |
| { |
| alt202=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 202, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt202) { |
| case 1 : |
| // InternalEntityMockDSL.g:11587:3: (enumLiteral_0= 'days' ) |
| { |
| // InternalEntityMockDSL.g:11587:3: (enumLiteral_0= 'days' ) |
| // InternalEntityMockDSL.g:11588:4: enumLiteral_0= 'days' |
| { |
| enumLiteral_0=(Token)match(input,154,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEDateStepTypeAccess().getDAYSEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getEDateStepTypeAccess().getDAYSEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:11595:3: (enumLiteral_1= 'weeks' ) |
| { |
| // InternalEntityMockDSL.g:11595:3: (enumLiteral_1= 'weeks' ) |
| // InternalEntityMockDSL.g:11596:4: enumLiteral_1= 'weeks' |
| { |
| enumLiteral_1=(Token)match(input,155,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEDateStepTypeAccess().getWEEKSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getEDateStepTypeAccess().getWEEKSEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:11603:3: (enumLiteral_2= 'months' ) |
| { |
| // InternalEntityMockDSL.g:11603:3: (enumLiteral_2= 'months' ) |
| // InternalEntityMockDSL.g:11604:4: enumLiteral_2= 'months' |
| { |
| enumLiteral_2=(Token)match(input,156,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEDateStepTypeAccess().getMONTHSEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getEDateStepTypeAccess().getMONTHSEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:11611:3: (enumLiteral_3= 'years' ) |
| { |
| // InternalEntityMockDSL.g:11611:3: (enumLiteral_3= 'years' ) |
| // InternalEntityMockDSL.g:11612:4: enumLiteral_3= 'years' |
| { |
| enumLiteral_3=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getEDateStepTypeAccess().getYEARSEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getEDateStepTypeAccess().getYEARSEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEDateStepType" |
| |
| // $ANTLR start synpred1_InternalEntityMockDSL |
| public final void synpred1_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:4955:5: ( '(' ) |
| // InternalEntityMockDSL.g:4955:6: '(' |
| { |
| match(input,25,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalEntityMockDSL |
| |
| // $ANTLR start synpred2_InternalEntityMockDSL |
| public final void synpred2_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:4964:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalEntityMockDSL.g:4964:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalEntityMockDSL.g:4964:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalEntityMockDSL.g:4965:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalEntityMockDSL.g:4965:8: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:4966:9: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:4966:9: ( ruleValidID ) |
| // InternalEntityMockDSL.g:4967:10: ruleValidID |
| { |
| pushFollow(FOLLOW_83); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,94,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalEntityMockDSL |
| |
| // $ANTLR start synpred5_InternalEntityMockDSL |
| public final void synpred5_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5144:5: ( ( () '#' '[' ) ) |
| // InternalEntityMockDSL.g:5144:6: ( () '#' '[' ) |
| { |
| // InternalEntityMockDSL.g:5144:6: ( () '#' '[' ) |
| // InternalEntityMockDSL.g:5145:6: () '#' '[' |
| { |
| // InternalEntityMockDSL.g:5145:6: () |
| // InternalEntityMockDSL.g:5146:6: |
| { |
| } |
| |
| match(input,95,FOLLOW_85); if (state.failed) return ; |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalEntityMockDSL |
| |
| // $ANTLR start synpred6_InternalEntityMockDSL |
| public final void synpred6_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5286:5: ( ( () '#' '[' ) ) |
| // InternalEntityMockDSL.g:5286:6: ( () '#' '[' ) |
| { |
| // InternalEntityMockDSL.g:5286:6: ( () '#' '[' ) |
| // InternalEntityMockDSL.g:5287:6: () '#' '[' |
| { |
| // InternalEntityMockDSL.g:5287:6: () |
| // InternalEntityMockDSL.g:5288:6: |
| { |
| } |
| |
| match(input,95,FOLLOW_85); if (state.failed) return ; |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalEntityMockDSL |
| |
| // $ANTLR start synpred7_InternalEntityMockDSL |
| public final void synpred7_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5514:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalEntityMockDSL.g:5514:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalEntityMockDSL.g:5514:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalEntityMockDSL.g:5515:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalEntityMockDSL.g:5515:7: () |
| // InternalEntityMockDSL.g:5516:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5517:7: ( ( ruleOpMultiAssign ) ) |
| // InternalEntityMockDSL.g:5518:8: ( ruleOpMultiAssign ) |
| { |
| // InternalEntityMockDSL.g:5518:8: ( ruleOpMultiAssign ) |
| // InternalEntityMockDSL.g:5519:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalEntityMockDSL |
| |
| // $ANTLR start synpred8_InternalEntityMockDSL |
| public final void synpred8_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5708:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalEntityMockDSL.g:5708:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalEntityMockDSL.g:5708:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalEntityMockDSL.g:5709:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalEntityMockDSL.g:5709:6: () |
| // InternalEntityMockDSL.g:5710:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5711:6: ( ( ruleOpOr ) ) |
| // InternalEntityMockDSL.g:5712:7: ( ruleOpOr ) |
| { |
| // InternalEntityMockDSL.g:5712:7: ( ruleOpOr ) |
| // InternalEntityMockDSL.g:5713:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalEntityMockDSL |
| |
| // $ANTLR start synpred9_InternalEntityMockDSL |
| public final void synpred9_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5815:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalEntityMockDSL.g:5815:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalEntityMockDSL.g:5815:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalEntityMockDSL.g:5816:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalEntityMockDSL.g:5816:6: () |
| // InternalEntityMockDSL.g:5817:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5818:6: ( ( ruleOpAnd ) ) |
| // InternalEntityMockDSL.g:5819:7: ( ruleOpAnd ) |
| { |
| // InternalEntityMockDSL.g:5819:7: ( ruleOpAnd ) |
| // InternalEntityMockDSL.g:5820:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalEntityMockDSL |
| |
| // $ANTLR start synpred10_InternalEntityMockDSL |
| public final void synpred10_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5922:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalEntityMockDSL.g:5922:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalEntityMockDSL.g:5922:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalEntityMockDSL.g:5923:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalEntityMockDSL.g:5923:6: () |
| // InternalEntityMockDSL.g:5924:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5925:6: ( ( ruleOpEquality ) ) |
| // InternalEntityMockDSL.g:5926:7: ( ruleOpEquality ) |
| { |
| // InternalEntityMockDSL.g:5926:7: ( ruleOpEquality ) |
| // InternalEntityMockDSL.g:5927:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalEntityMockDSL |
| |
| // $ANTLR start synpred11_InternalEntityMockDSL |
| public final void synpred11_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6050:6: ( ( () 'instanceof' ) ) |
| // InternalEntityMockDSL.g:6050:7: ( () 'instanceof' ) |
| { |
| // InternalEntityMockDSL.g:6050:7: ( () 'instanceof' ) |
| // InternalEntityMockDSL.g:6051:7: () 'instanceof' |
| { |
| // InternalEntityMockDSL.g:6051:7: () |
| // InternalEntityMockDSL.g:6052:7: |
| { |
| } |
| |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalEntityMockDSL |
| |
| // $ANTLR start synpred12_InternalEntityMockDSL |
| public final void synpred12_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6093:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalEntityMockDSL.g:6093:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalEntityMockDSL.g:6093:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalEntityMockDSL.g:6094:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalEntityMockDSL.g:6094:7: () |
| // InternalEntityMockDSL.g:6095:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6096:7: ( ( ruleOpCompare ) ) |
| // InternalEntityMockDSL.g:6097:8: ( ruleOpCompare ) |
| { |
| // InternalEntityMockDSL.g:6097:8: ( ruleOpCompare ) |
| // InternalEntityMockDSL.g:6098:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalEntityMockDSL |
| |
| // $ANTLR start synpred13_InternalEntityMockDSL |
| public final void synpred13_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6228:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalEntityMockDSL.g:6228:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalEntityMockDSL.g:6228:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalEntityMockDSL.g:6229:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalEntityMockDSL.g:6229:6: () |
| // InternalEntityMockDSL.g:6230:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6231:6: ( ( ruleOpOther ) ) |
| // InternalEntityMockDSL.g:6232:7: ( ruleOpOther ) |
| { |
| // InternalEntityMockDSL.g:6232:7: ( ruleOpOther ) |
| // InternalEntityMockDSL.g:6233:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalEntityMockDSL |
| |
| // $ANTLR start synpred14_InternalEntityMockDSL |
| public final void synpred14_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6348:6: ( ( '>' '>' ) ) |
| // InternalEntityMockDSL.g:6348:7: ( '>' '>' ) |
| { |
| // InternalEntityMockDSL.g:6348:7: ( '>' '>' ) |
| // InternalEntityMockDSL.g:6349:7: '>' '>' |
| { |
| match(input,104,FOLLOW_99); if (state.failed) return ; |
| match(input,104,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalEntityMockDSL |
| |
| // $ANTLR start synpred15_InternalEntityMockDSL |
| public final void synpred15_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6383:6: ( ( '<' '<' ) ) |
| // InternalEntityMockDSL.g:6383:7: ( '<' '<' ) |
| { |
| // InternalEntityMockDSL.g:6383:7: ( '<' '<' ) |
| // InternalEntityMockDSL.g:6384:7: '<' '<' |
| { |
| match(input,103,FOLLOW_90); if (state.failed) return ; |
| match(input,103,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalEntityMockDSL |
| |
| // $ANTLR start synpred16_InternalEntityMockDSL |
| public final void synpred16_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6456:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalEntityMockDSL.g:6456:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalEntityMockDSL.g:6456:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalEntityMockDSL.g:6457:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalEntityMockDSL.g:6457:6: () |
| // InternalEntityMockDSL.g:6458:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6459:6: ( ( ruleOpAdd ) ) |
| // InternalEntityMockDSL.g:6460:7: ( ruleOpAdd ) |
| { |
| // InternalEntityMockDSL.g:6460:7: ( ruleOpAdd ) |
| // InternalEntityMockDSL.g:6461:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalEntityMockDSL |
| |
| // $ANTLR start synpred17_InternalEntityMockDSL |
| public final void synpred17_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6571:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalEntityMockDSL.g:6571:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalEntityMockDSL.g:6571:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalEntityMockDSL.g:6572:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalEntityMockDSL.g:6572:6: () |
| // InternalEntityMockDSL.g:6573:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6574:6: ( ( ruleOpMulti ) ) |
| // InternalEntityMockDSL.g:6575:7: ( ruleOpMulti ) |
| { |
| // InternalEntityMockDSL.g:6575:7: ( ruleOpMulti ) |
| // InternalEntityMockDSL.g:6576:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalEntityMockDSL |
| |
| // $ANTLR start synpred18_InternalEntityMockDSL |
| public final void synpred18_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6806:5: ( ( () 'as' ) ) |
| // InternalEntityMockDSL.g:6806:6: ( () 'as' ) |
| { |
| // InternalEntityMockDSL.g:6806:6: ( () 'as' ) |
| // InternalEntityMockDSL.g:6807:6: () 'as' |
| { |
| // InternalEntityMockDSL.g:6807:6: () |
| // InternalEntityMockDSL.g:6808:6: |
| { |
| } |
| |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalEntityMockDSL |
| |
| // $ANTLR start synpred19_InternalEntityMockDSL |
| public final void synpred19_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6874:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalEntityMockDSL.g:6874:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalEntityMockDSL.g:6874:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalEntityMockDSL.g:6875:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalEntityMockDSL.g:6875:5: () |
| // InternalEntityMockDSL.g:6876:5: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6877:5: ( ( ruleOpPostfix ) ) |
| // InternalEntityMockDSL.g:6878:6: ( ruleOpPostfix ) |
| { |
| // InternalEntityMockDSL.g:6878:6: ( ruleOpPostfix ) |
| // InternalEntityMockDSL.g:6879:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalEntityMockDSL |
| |
| // $ANTLR start synpred20_InternalEntityMockDSL |
| public final void synpred20_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6970:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalEntityMockDSL.g:6970:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalEntityMockDSL.g:6970:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalEntityMockDSL.g:6971:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalEntityMockDSL.g:6971:7: () |
| // InternalEntityMockDSL.g:6972:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6973:7: ( '.' | ( ( '::' ) ) ) |
| int alt203=2; |
| int LA203_0 = input.LA(1); |
| |
| if ( (LA203_0==34) ) { |
| alt203=1; |
| } |
| else if ( (LA203_0==126) ) { |
| alt203=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 203, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt203) { |
| case 1 : |
| // InternalEntityMockDSL.g:6974:8: '.' |
| { |
| match(input,34,FOLLOW_106); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6976:8: ( ( '::' ) ) |
| { |
| // InternalEntityMockDSL.g:6976:8: ( ( '::' ) ) |
| // InternalEntityMockDSL.g:6977:9: ( '::' ) |
| { |
| // InternalEntityMockDSL.g:6977:9: ( '::' ) |
| // InternalEntityMockDSL.g:6978:10: '::' |
| { |
| match(input,126,FOLLOW_106); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:6982:7: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:6983:8: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:6983:8: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:6984:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_83); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalEntityMockDSL |
| |
| // $ANTLR start synpred21_InternalEntityMockDSL |
| public final void synpred21_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7067:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalEntityMockDSL.g:7067:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:7067:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalEntityMockDSL.g:7068:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7068:7: () |
| // InternalEntityMockDSL.g:7069:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:7070:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt204=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| alt204=1; |
| } |
| break; |
| case 127: |
| { |
| alt204=2; |
| } |
| break; |
| case 126: |
| { |
| alt204=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 204, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt204) { |
| case 1 : |
| // InternalEntityMockDSL.g:7071:8: '.' |
| { |
| match(input,34,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7073:8: ( ( '?.' ) ) |
| { |
| // InternalEntityMockDSL.g:7073:8: ( ( '?.' ) ) |
| // InternalEntityMockDSL.g:7074:9: ( '?.' ) |
| { |
| // InternalEntityMockDSL.g:7074:9: ( '?.' ) |
| // InternalEntityMockDSL.g:7075:10: '?.' |
| { |
| match(input,127,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:7079:8: ( ( '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7079:8: ( ( '::' ) ) |
| // InternalEntityMockDSL.g:7080:9: ( '::' ) |
| { |
| // InternalEntityMockDSL.g:7080:9: ( '::' ) |
| // InternalEntityMockDSL.g:7081:10: '::' |
| { |
| match(input,126,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalEntityMockDSL |
| |
| // $ANTLR start synpred22_InternalEntityMockDSL |
| public final void synpred22_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7205:7: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:7205:8: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:7205:8: ( '(' ) |
| // InternalEntityMockDSL.g:7206:8: '(' |
| { |
| match(input,25,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalEntityMockDSL |
| |
| // $ANTLR start synpred23_InternalEntityMockDSL |
| public final void synpred23_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7224:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:7224:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7224:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:7225:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7225:9: () |
| // InternalEntityMockDSL.g:7226:9: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:7227:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt206=2; |
| int LA206_0 = input.LA(1); |
| |
| if ( (LA206_0==RULE_ID||LA206_0==25||LA206_0==116) ) { |
| alt206=1; |
| } |
| switch (alt206) { |
| case 1 : |
| // InternalEntityMockDSL.g:7228:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7228:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7229:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7229:11: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7230:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7233:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop205: |
| do { |
| int alt205=2; |
| int LA205_0 = input.LA(1); |
| |
| if ( (LA205_0==26) ) { |
| alt205=1; |
| } |
| |
| |
| switch (alt205) { |
| case 1 : |
| // InternalEntityMockDSL.g:7234:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7235:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7236:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7236:12: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7237:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop205; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7242:9: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:7243:10: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:7243:10: ( '|' ) |
| // InternalEntityMockDSL.g:7244:11: '|' |
| { |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalEntityMockDSL |
| |
| // $ANTLR start synpred24_InternalEntityMockDSL |
| public final void synpred24_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7321:6: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:7321:7: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:7321:7: ( () '[' ) |
| // InternalEntityMockDSL.g:7322:7: () '[' |
| { |
| // InternalEntityMockDSL.g:7322:7: () |
| // InternalEntityMockDSL.g:7323:7: |
| { |
| } |
| |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalEntityMockDSL |
| |
| // $ANTLR start synpred25_InternalEntityMockDSL |
| public final void synpred25_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7394:4: ( ( () 'synchronized' '(' ) ) |
| // InternalEntityMockDSL.g:7394:5: ( () 'synchronized' '(' ) |
| { |
| // InternalEntityMockDSL.g:7394:5: ( () 'synchronized' '(' ) |
| // InternalEntityMockDSL.g:7395:5: () 'synchronized' '(' |
| { |
| // InternalEntityMockDSL.g:7395:5: () |
| // InternalEntityMockDSL.g:7396:5: |
| { |
| } |
| |
| match(input,150,FOLLOW_17); if (state.failed) return ; |
| match(input,25,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalEntityMockDSL |
| |
| // $ANTLR start synpred26_InternalEntityMockDSL |
| public final void synpred26_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7439:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:7439:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:7439:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:7440:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalEntityMockDSL.g:7440:5: () |
| // InternalEntityMockDSL.g:7441:5: |
| { |
| } |
| |
| match(input,135,FOLLOW_17); if (state.failed) return ; |
| match(input,25,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7444:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7445:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7445:6: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7446:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_123); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,132,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalEntityMockDSL |
| |
| // $ANTLR start synpred27_InternalEntityMockDSL |
| public final void synpred27_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7553:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:7553:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:7553:5: ( () '[' ) |
| // InternalEntityMockDSL.g:7554:5: () '[' |
| { |
| // InternalEntityMockDSL.g:7554:5: () |
| // InternalEntityMockDSL.g:7555:5: |
| { |
| } |
| |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalEntityMockDSL |
| |
| // $ANTLR start synpred29_InternalEntityMockDSL |
| public final void synpred29_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7858:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:7858:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7858:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:7859:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7859:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt208=2; |
| int LA208_0 = input.LA(1); |
| |
| if ( (LA208_0==RULE_ID||LA208_0==25||LA208_0==116) ) { |
| alt208=1; |
| } |
| switch (alt208) { |
| case 1 : |
| // InternalEntityMockDSL.g:7860:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7860:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7861:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7861:7: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7862:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7865:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop207: |
| do { |
| int alt207=2; |
| int LA207_0 = input.LA(1); |
| |
| if ( (LA207_0==26) ) { |
| alt207=1; |
| } |
| |
| |
| switch (alt207) { |
| case 1 : |
| // InternalEntityMockDSL.g:7866:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7867:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7868:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7868:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7869:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop207; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7874:5: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:7875:6: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:7875:6: ( '|' ) |
| // InternalEntityMockDSL.g:7876:7: '|' |
| { |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalEntityMockDSL |
| |
| // $ANTLR start synpred31_InternalEntityMockDSL |
| public final void synpred31_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8267:5: ( 'else' ) |
| // InternalEntityMockDSL.g:8267:6: 'else' |
| { |
| match(input,130,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalEntityMockDSL |
| |
| // $ANTLR start synpred32_InternalEntityMockDSL |
| public final void synpred32_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8326:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:8326:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:8326:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:8327:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,25,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:8328:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8329:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8329:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8330:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_123); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,132,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalEntityMockDSL |
| |
| // $ANTLR start synpred33_InternalEntityMockDSL |
| public final void synpred33_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8393:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:8393:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:8393:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:8394:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalEntityMockDSL.g:8394:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8395:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8395:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8396:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_123); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,132,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalEntityMockDSL |
| |
| // $ANTLR start synpred35_InternalEntityMockDSL |
| public final void synpred35_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9211:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9211:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9211:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9212:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9212:6: ( ( ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9213:7: ( ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9213:7: ( ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9214:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9217:6: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:9218:7: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9218:7: ( ruleValidID ) |
| // InternalEntityMockDSL.g:9219:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalEntityMockDSL |
| |
| // $ANTLR start synpred36_InternalEntityMockDSL |
| public final void synpred36_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9523:5: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:9523:6: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:9523:6: ( '(' ) |
| // InternalEntityMockDSL.g:9524:6: '(' |
| { |
| match(input,25,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalEntityMockDSL |
| |
| // $ANTLR start synpred37_InternalEntityMockDSL |
| public final void synpred37_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9542:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:9542:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:9542:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:9543:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:9543:7: () |
| // InternalEntityMockDSL.g:9544:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:9545:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt212=2; |
| int LA212_0 = input.LA(1); |
| |
| if ( (LA212_0==RULE_ID||LA212_0==25||LA212_0==116) ) { |
| alt212=1; |
| } |
| switch (alt212) { |
| case 1 : |
| // InternalEntityMockDSL.g:9546:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:9546:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9547:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9547:9: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9548:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9551:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop211: |
| do { |
| int alt211=2; |
| int LA211_0 = input.LA(1); |
| |
| if ( (LA211_0==26) ) { |
| alt211=1; |
| } |
| |
| |
| switch (alt211) { |
| case 1 : |
| // InternalEntityMockDSL.g:9552:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:9553:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9554:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9554:10: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9555:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop211; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9560:7: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:9561:8: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:9561:8: ( '|' ) |
| // InternalEntityMockDSL.g:9562:9: '|' |
| { |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalEntityMockDSL |
| |
| // $ANTLR start synpred38_InternalEntityMockDSL |
| public final void synpred38_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9639:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:9639:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:9639:5: ( () '[' ) |
| // InternalEntityMockDSL.g:9640:5: () '[' |
| { |
| // InternalEntityMockDSL.g:9640:5: () |
| // InternalEntityMockDSL.g:9641:5: |
| { |
| } |
| |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalEntityMockDSL |
| |
| // $ANTLR start synpred39_InternalEntityMockDSL |
| public final void synpred39_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9799:5: ( '<' ) |
| // InternalEntityMockDSL.g:9799:6: '<' |
| { |
| match(input,103,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalEntityMockDSL |
| |
| // $ANTLR start synpred40_InternalEntityMockDSL |
| public final void synpred40_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9856:5: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:9856:6: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:9856:6: ( '(' ) |
| // InternalEntityMockDSL.g:9857:6: '(' |
| { |
| match(input,25,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalEntityMockDSL |
| |
| // $ANTLR start synpred41_InternalEntityMockDSL |
| public final void synpred41_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9875:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:9875:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:9875:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:9876:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:9876:7: () |
| // InternalEntityMockDSL.g:9877:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:9878:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt214=2; |
| int LA214_0 = input.LA(1); |
| |
| if ( (LA214_0==RULE_ID||LA214_0==25||LA214_0==116) ) { |
| alt214=1; |
| } |
| switch (alt214) { |
| case 1 : |
| // InternalEntityMockDSL.g:9879:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:9879:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9880:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9880:9: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9881:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9884:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop213: |
| do { |
| int alt213=2; |
| int LA213_0 = input.LA(1); |
| |
| if ( (LA213_0==26) ) { |
| alt213=1; |
| } |
| |
| |
| switch (alt213) { |
| case 1 : |
| // InternalEntityMockDSL.g:9885:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:9886:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9887:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9887:10: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9888:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_116); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop213; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9893:7: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:9894:8: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:9894:8: ( '|' ) |
| // InternalEntityMockDSL.g:9895:9: '|' |
| { |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalEntityMockDSL |
| |
| // $ANTLR start synpred42_InternalEntityMockDSL |
| public final void synpred42_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9972:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:9972:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:9972:5: ( () '[' ) |
| // InternalEntityMockDSL.g:9973:5: () '[' |
| { |
| // InternalEntityMockDSL.g:9973:5: () |
| // InternalEntityMockDSL.g:9974:5: |
| { |
| } |
| |
| match(input,96,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalEntityMockDSL |
| |
| // $ANTLR start synpred43_InternalEntityMockDSL |
| public final void synpred43_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10315:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING ) |
| // InternalEntityMockDSL.g: |
| { |
| if ( (input.LA(1)>=RULE_ID && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||input.LA(1)==25||input.LA(1)==77||(input.LA(1)>=87 && input.LA(1)<=89)||(input.LA(1)>=95 && input.LA(1)<=96)||input.LA(1)==103||input.LA(1)==119||input.LA(1)==123||input.LA(1)==129||input.LA(1)==131||(input.LA(1)>=135 && input.LA(1)<=137)||(input.LA(1)>=139 && input.LA(1)<=148)||input.LA(1)==150 ) { |
| input.consume(); |
| state.errorRecovery=false;state.failed=false; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| MismatchedSetException mse = new MismatchedSetException(null,input); |
| throw mse; |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred43_InternalEntityMockDSL |
| |
| // $ANTLR start synpred44_InternalEntityMockDSL |
| public final void synpred44_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10386:6: ( 'catch' ) |
| // InternalEntityMockDSL.g:10386:7: 'catch' |
| { |
| match(input,151,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalEntityMockDSL |
| |
| // $ANTLR start synpred45_InternalEntityMockDSL |
| public final void synpred45_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10407:7: ( 'finally' ) |
| // InternalEntityMockDSL.g:10407:8: 'finally' |
| { |
| match(input,149,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalEntityMockDSL |
| |
| // $ANTLR start synpred48_InternalEntityMockDSL |
| public final void synpred48_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10651:5: ( '.' ) |
| // InternalEntityMockDSL.g:10651:6: '.' |
| { |
| match(input,34,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalEntityMockDSL |
| |
| // $ANTLR start synpred49_InternalEntityMockDSL |
| public final void synpred49_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10777:5: ( ( () ruleArrayBrackets ) ) |
| // InternalEntityMockDSL.g:10777:6: ( () ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10777:6: ( () ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10778:6: () ruleArrayBrackets |
| { |
| // InternalEntityMockDSL.g:10778:6: () |
| // InternalEntityMockDSL.g:10779:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalEntityMockDSL |
| |
| // $ANTLR start synpred50_InternalEntityMockDSL |
| public final void synpred50_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10974:5: ( '<' ) |
| // InternalEntityMockDSL.g:10974:6: '<' |
| { |
| match(input,103,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalEntityMockDSL |
| |
| // $ANTLR start synpred51_InternalEntityMockDSL |
| public final void synpred51_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:11030:6: ( ( () '.' ) ) |
| // InternalEntityMockDSL.g:11030:7: ( () '.' ) |
| { |
| // InternalEntityMockDSL.g:11030:7: ( () '.' ) |
| // InternalEntityMockDSL.g:11031:7: () '.' |
| { |
| // InternalEntityMockDSL.g:11031:7: () |
| // InternalEntityMockDSL.g:11032:7: |
| { |
| } |
| |
| match(input,34,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalEntityMockDSL |
| |
| // $ANTLR start synpred52_InternalEntityMockDSL |
| public final void synpred52_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:11068:7: ( '<' ) |
| // InternalEntityMockDSL.g:11068:8: '<' |
| { |
| match(input,103,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalEntityMockDSL |
| |
| // Delegated rules |
| |
| public final boolean synpred12_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred20_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred45_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred16_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred36_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred2_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred5_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred9_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred41_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred48_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred33_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred13_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred15_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred21_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred42_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred50_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred27_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred19_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred22_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred8_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred39_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred14_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred10_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred26_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred43_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred35_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred38_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred51_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred31_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred18_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred7_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred23_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred11_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred17_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred25_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred37_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred40_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred6_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred44_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred24_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred49_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred32_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred1_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred52_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred29_InternalEntityMockDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalEntityMockDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| |
| |
| protected DFA81 dfa81 = new DFA81(this); |
| protected DFA84 dfa84 = new DFA84(this); |
| protected DFA90 dfa90 = new DFA90(this); |
| protected DFA93 dfa93 = new DFA93(this); |
| protected DFA95 dfa95 = new DFA95(this); |
| protected DFA105 dfa105 = new DFA105(this); |
| protected DFA108 dfa108 = new DFA108(this); |
| protected DFA124 dfa124 = new DFA124(this); |
| protected DFA123 dfa123 = new DFA123(this); |
| protected DFA125 dfa125 = new DFA125(this); |
| protected DFA127 dfa127 = new DFA127(this); |
| protected DFA136 dfa136 = new DFA136(this); |
| protected DFA143 dfa143 = new DFA143(this); |
| protected DFA142 dfa142 = new DFA142(this); |
| protected DFA165 dfa165 = new DFA165(this); |
| protected DFA164 dfa164 = new DFA164(this); |
| protected DFA166 dfa166 = new DFA166(this); |
| protected DFA170 dfa170 = new DFA170(this); |
| protected DFA173 dfa173 = new DFA173(this); |
| protected DFA172 dfa172 = new DFA172(this); |
| protected DFA174 dfa174 = new DFA174(this); |
| protected DFA177 dfa177 = new DFA177(this); |
| protected DFA195 dfa195 = new DFA195(this); |
| protected DFA193 dfa193 = new DFA193(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\4\uffff\1\5"; |
| static final String dfa_3s = "\1\4\1\uffff\1\15\1\uffff\1\4\2\uffff\1\15"; |
| static final String dfa_4s = "\1\133\1\uffff\1\134\1\uffff\1\132\2\uffff\1\134"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\3\1\uffff"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\123\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\24\uffff\1\4\64\uffff\1\5\4\uffff\1\5", |
| "", |
| "\1\7\125\uffff\1\6", |
| "", |
| "", |
| "\1\5\24\uffff\1\4\64\uffff\1\5\4\uffff\1\5" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); |
| static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); |
| |
| class DFA81 extends DFA { |
| |
| public DFA81(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 81; |
| this.eot = dfa_1; |
| this.eof = dfa_2; |
| this.min = dfa_3; |
| this.max = dfa_4; |
| this.accept = dfa_5; |
| this.special = dfa_6; |
| this.transition = dfa_7; |
| } |
| public String getDescription() { |
| return "4744:3: ( ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) | ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) )"; |
| } |
| } |
| static final String dfa_8s = "\44\uffff"; |
| static final String dfa_9s = "\1\4\1\0\42\uffff"; |
| static final String dfa_10s = "\1\u0096\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\1\1\4\2\5\uffff\1\2\12\uffff\1\2\1\uffff\1\42\61\uffff\1\2\11\uffff\3\2\3\uffff\1\2\1\uffff\2\2\6\uffff\1\2\17\uffff\1\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\3\2\1\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); |
| static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); |
| static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); |
| static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); |
| static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); |
| static final short[][] dfa_13 = unpackEncodedStringArray(dfa_13s); |
| |
| class DFA84 extends DFA { |
| |
| public DFA84(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 84; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_9; |
| this.max = dfa_10; |
| this.accept = dfa_11; |
| this.special = dfa_12; |
| this.transition = dfa_13; |
| } |
| public String getDescription() { |
| return "4961:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA84_1 = input.LA(1); |
| |
| |
| int index84_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalEntityMockDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index84_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 84, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_14s = "\43\uffff"; |
| static final String dfa_15s = "\1\4\1\0\41\uffff"; |
| static final String dfa_16s = "\1\u0096\1\0\41\uffff"; |
| static final String dfa_17s = "\2\uffff\1\2\37\uffff\1\1"; |
| static final String dfa_18s = "\1\uffff\1\0\41\uffff}>"; |
| static final String[] dfa_19s = { |
| "\5\2\5\uffff\1\2\12\uffff\1\2\63\uffff\1\2\11\uffff\3\2\3\uffff\1\2\1\uffff\1\1\1\2\6\uffff\1\2\17\uffff\1\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\3\2\1\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_14 = DFA.unpackEncodedString(dfa_14s); |
| static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); |
| static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); |
| static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); |
| static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); |
| static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); |
| |
| class DFA90 extends DFA { |
| |
| public DFA90(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 90; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "5141:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA90_1 = input.LA(1); |
| |
| |
| int index90_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index90_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 90, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA93 extends DFA { |
| |
| public DFA93(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 93; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "5283:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA93_1 = input.LA(1); |
| |
| |
| int index93_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index93_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 93, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_20s = "\12\uffff"; |
| static final String dfa_21s = "\1\10\11\uffff"; |
| static final String dfa_22s = "\1\4\7\0\2\uffff"; |
| static final String dfa_23s = "\1\u0097\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\2\1\3\1\4\1\5\1\6\1\1\1\0\2\uffff}>"; |
| static final String[] dfa_26s = { |
| "\5\10\5\uffff\2\10\11\uffff\3\10\3\uffff\1\10\2\uffff\1\10\52\uffff\2\10\10\uffff\4\10\1\uffff\1\10\2\uffff\3\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\27\10\1\uffff\27\10", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); |
| static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s); |
| static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); |
| static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s); |
| static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); |
| static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s); |
| static final short[][] dfa_26 = unpackEncodedStringArray(dfa_26s); |
| |
| class DFA95 extends DFA { |
| |
| public DFA95(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 95; |
| this.eot = dfa_20; |
| this.eof = dfa_21; |
| this.min = dfa_22; |
| this.max = dfa_23; |
| this.accept = dfa_24; |
| this.special = dfa_25; |
| this.transition = dfa_26; |
| } |
| public String getDescription() { |
| return "5512:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA95_7 = input.LA(1); |
| |
| |
| int index95_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_7); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA95_6 = input.LA(1); |
| |
| |
| int index95_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_6); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA95_1 = input.LA(1); |
| |
| |
| int index95_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_1); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA95_2 = input.LA(1); |
| |
| |
| int index95_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_2); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA95_3 = input.LA(1); |
| |
| |
| int index95_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_3); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA95_4 = input.LA(1); |
| |
| |
| int index95_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_4); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA95_5 = input.LA(1); |
| |
| |
| int index95_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index95_5); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 95, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_27s = "\13\uffff"; |
| static final String dfa_28s = "\1\1\12\uffff"; |
| static final String dfa_29s = "\1\4\1\uffff\10\0\1\uffff"; |
| static final String dfa_30s = "\1\u0097\1\uffff\10\0\1\uffff"; |
| static final String dfa_31s = "\1\uffff\1\2\10\uffff\1\1"; |
| static final String dfa_32s = "\2\uffff\1\7\1\3\1\0\1\1\1\2\1\4\1\5\1\6\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\5\1\5\uffff\2\1\11\uffff\3\1\3\uffff\1\1\2\uffff\1\1\52\uffff\2\1\10\uffff\4\1\1\uffff\1\1\2\uffff\10\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\11\1\1\uffff\27\1", |
| "", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "" |
| }; |
| |
| static final short[] dfa_27 = DFA.unpackEncodedString(dfa_27s); |
| static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s); |
| static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s); |
| static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s); |
| static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); |
| static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s); |
| static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s); |
| |
| class DFA105 extends DFA { |
| |
| public DFA105(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 105; |
| this.eot = dfa_27; |
| this.eof = dfa_28; |
| this.min = dfa_29; |
| this.max = dfa_30; |
| this.accept = dfa_31; |
| this.special = dfa_32; |
| this.transition = dfa_33; |
| } |
| public String getDescription() { |
| return "()* loopback of 6226:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA105_4 = input.LA(1); |
| |
| |
| int index105_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_4); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA105_5 = input.LA(1); |
| |
| |
| int index105_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_5); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA105_6 = input.LA(1); |
| |
| |
| int index105_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_6); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA105_3 = input.LA(1); |
| |
| |
| int index105_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_3); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA105_7 = input.LA(1); |
| |
| |
| int index105_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_7); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA105_8 = input.LA(1); |
| |
| |
| int index105_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_8); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA105_9 = input.LA(1); |
| |
| |
| int index105_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_9); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA105_2 = input.LA(1); |
| |
| |
| int index105_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index105_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 105, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\147\2\uffff\1\150\7\uffff"; |
| static final String dfa_35s = "\1\166\2\uffff\1\163\7\uffff"; |
| static final String dfa_36s = "\1\uffff\1\1\1\2\1\uffff\1\4\1\5\1\7\1\10\1\11\1\3\1\6"; |
| static final String dfa_37s = "\13\uffff}>"; |
| static final String[] dfa_38s = { |
| "\1\6\1\3\10\uffff\1\1\1\2\1\4\1\5\1\7\1\10", |
| "", |
| "", |
| "\1\12\12\uffff\1\11", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_34 = DFA.unpackEncodedStringToUnsignedChars(dfa_34s); |
| static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s); |
| static final short[] dfa_36 = DFA.unpackEncodedString(dfa_36s); |
| static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s); |
| static final short[][] dfa_38 = unpackEncodedStringArray(dfa_38s); |
| |
| class DFA108 extends DFA { |
| |
| public DFA108(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 108; |
| this.eot = dfa_27; |
| this.eof = dfa_27; |
| this.min = dfa_34; |
| this.max = dfa_35; |
| this.accept = dfa_36; |
| this.special = dfa_37; |
| this.transition = dfa_38; |
| } |
| public String getDescription() { |
| return "6302:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )"; |
| } |
| } |
| static final String dfa_39s = "\116\uffff"; |
| static final String dfa_40s = "\1\2\115\uffff"; |
| static final String dfa_41s = "\1\4\1\0\114\uffff"; |
| static final String dfa_42s = "\1\u0097\1\0\114\uffff"; |
| static final String dfa_43s = "\2\uffff\1\2\112\uffff\1\1"; |
| static final String dfa_44s = "\1\uffff\1\0\114\uffff}>"; |
| static final String[] dfa_45s = { |
| "\5\2\5\uffff\2\2\11\uffff\1\1\2\2\3\uffff\1\2\2\uffff\1\2\52\uffff\2\2\10\uffff\4\2\1\uffff\1\2\2\uffff\41\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_39 = DFA.unpackEncodedString(dfa_39s); |
| static final short[] dfa_40 = DFA.unpackEncodedString(dfa_40s); |
| static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s); |
| static final char[] dfa_42 = DFA.unpackEncodedStringToUnsignedChars(dfa_42s); |
| static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s); |
| static final short[] dfa_44 = DFA.unpackEncodedString(dfa_44s); |
| static final short[][] dfa_45 = unpackEncodedStringArray(dfa_45s); |
| |
| class DFA124 extends DFA { |
| |
| public DFA124(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 124; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "7203:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA124_1 = input.LA(1); |
| |
| |
| int index124_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index124_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 124, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u0096\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\1\1\4\5\5\uffff\1\5\12\uffff\1\2\1\uffff\1\43\61\uffff\1\5\11\uffff\3\5\5\uffff\2\5\6\uffff\1\5\14\uffff\1\3\2\uffff\1\5\3\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\uffff\3\5\1\uffff\12\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s); |
| static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); |
| static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s); |
| static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); |
| static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s); |
| |
| class DFA123 extends DFA { |
| |
| public DFA123(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 123; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "7222:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA123_0 = input.LA(1); |
| |
| |
| int index123_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA123_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA123_0==25) ) {s = 2;} |
| |
| else if ( (LA123_0==116) && (synpred23_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA123_0==128) && (synpred23_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA123_0>=RULE_STRING && LA123_0<=RULE_DECIMAL)||LA123_0==14||LA123_0==77||(LA123_0>=87 && LA123_0<=89)||(LA123_0>=95 && LA123_0<=96)||LA123_0==103||LA123_0==119||LA123_0==123||LA123_0==129||LA123_0==131||(LA123_0>=135 && LA123_0<=137)||(LA123_0>=139 && LA123_0<=148)||LA123_0==150) ) {s = 5;} |
| |
| else if ( (LA123_0==27) ) {s = 35;} |
| |
| |
| input.seek(index123_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA123_1 = input.LA(1); |
| |
| |
| int index123_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index123_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA123_2 = input.LA(1); |
| |
| |
| int index123_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index123_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 123, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\5\2\5\uffff\2\2\11\uffff\3\2\3\uffff\1\2\2\uffff\1\2\52\uffff\2\2\10\uffff\4\2\1\uffff\1\2\2\uffff\1\2\1\1\37\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| class DFA125 extends DFA { |
| |
| public DFA125(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 125; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "7320:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA125_1 = input.LA(1); |
| |
| |
| int index125_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index125_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 125, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_52s = "\40\uffff"; |
| static final String dfa_53s = "\1\4\26\uffff\1\0\10\uffff"; |
| static final String dfa_54s = "\1\u0096\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\1\5\4\14\5\uffff\1\2\12\uffff\1\35\75\uffff\3\5\5\uffff\2\14\6\uffff\1\5\31\uffff\1\26\1\uffff\1\3\3\uffff\1\27\1\30\1\31\1\uffff\2\5\1\1\4\14\1\32\1\33\1\34\1\uffff\1\4", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); |
| static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); |
| static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); |
| static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); |
| static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); |
| static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); |
| |
| class DFA127 extends DFA { |
| |
| public DFA127(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 127; |
| this.eot = dfa_52; |
| this.eof = dfa_52; |
| this.min = dfa_53; |
| this.max = dfa_54; |
| this.accept = dfa_55; |
| this.special = dfa_56; |
| this.transition = dfa_57; |
| } |
| public String getDescription() { |
| return "7365:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA127_0 = input.LA(1); |
| |
| |
| int index127_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA127_0==141) ) {s = 1;} |
| |
| else if ( (LA127_0==14) ) {s = 2;} |
| |
| else if ( (LA127_0==131) ) {s = 3;} |
| |
| else if ( (LA127_0==150) && (synpred25_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( (LA127_0==RULE_ID||(LA127_0>=87 && LA127_0<=89)||LA127_0==103||(LA127_0>=139 && LA127_0<=140)) ) {s = 5;} |
| |
| else if ( ((LA127_0>=RULE_STRING && LA127_0<=RULE_DECIMAL)||(LA127_0>=95 && LA127_0<=96)||(LA127_0>=142 && LA127_0<=145)) ) {s = 12;} |
| |
| else if ( (LA127_0==129) ) {s = 22;} |
| |
| else if ( (LA127_0==135) ) {s = 23;} |
| |
| else if ( (LA127_0==136) ) {s = 24;} |
| |
| else if ( (LA127_0==137) ) {s = 25;} |
| |
| else if ( (LA127_0==146) ) {s = 26;} |
| |
| else if ( (LA127_0==147) ) {s = 27;} |
| |
| else if ( (LA127_0==148) ) {s = 28;} |
| |
| else if ( (LA127_0==25) ) {s = 29;} |
| |
| |
| input.seek(index127_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA127_23 = input.LA(1); |
| |
| |
| int index127_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalEntityMockDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index127_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 127, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_58s = "\46\uffff"; |
| static final String dfa_59s = "\1\4\2\0\43\uffff"; |
| static final String dfa_60s = "\1\u0096\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\1\1\4\5\5\uffff\1\5\12\uffff\1\2\5\uffff\1\5\55\uffff\1\5\11\uffff\3\5\5\uffff\3\5\5\uffff\1\5\14\uffff\1\3\2\uffff\1\5\3\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\uffff\16\5\1\uffff\1\5", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_58 = DFA.unpackEncodedString(dfa_58s); |
| static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); |
| static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); |
| static final short[] dfa_61 = DFA.unpackEncodedString(dfa_61s); |
| static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); |
| static final short[][] dfa_63 = unpackEncodedStringArray(dfa_63s); |
| |
| class DFA136 extends DFA { |
| |
| public DFA136(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 136; |
| this.eot = dfa_58; |
| this.eof = dfa_58; |
| this.min = dfa_59; |
| this.max = dfa_60; |
| this.accept = dfa_61; |
| this.special = dfa_62; |
| this.transition = dfa_63; |
| } |
| public String getDescription() { |
| return "7857:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA136_0 = input.LA(1); |
| |
| |
| int index136_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA136_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA136_0==25) ) {s = 2;} |
| |
| else if ( (LA136_0==116) && (synpred29_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA136_0==128) && (synpred29_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA136_0>=RULE_STRING && LA136_0<=RULE_DECIMAL)||LA136_0==14||LA136_0==31||LA136_0==77||(LA136_0>=87 && LA136_0<=89)||(LA136_0>=95 && LA136_0<=97)||LA136_0==103||LA136_0==119||LA136_0==123||LA136_0==129||LA136_0==131||(LA136_0>=135 && LA136_0<=148)||LA136_0==150) ) {s = 5;} |
| |
| |
| input.seek(index136_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA136_1 = input.LA(1); |
| |
| |
| int index136_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index136_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA136_2 = input.LA(1); |
| |
| |
| int index136_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index136_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 136, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\12\uffff\1\1\63\uffff\1\2\11\uffff\3\2\5\uffff\2\2\6\uffff\1\2\14\uffff\1\2\2\uffff\1\2\3\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\3\2\1\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); |
| |
| class DFA143 extends DFA { |
| |
| public DFA143(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 143; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_64; |
| } |
| public String getDescription() { |
| return "8323:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) )"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA143_1 = input.LA(1); |
| |
| |
| int index143_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index143_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 143, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_65s = "\42\uffff"; |
| static final String dfa_66s = "\1\4\2\0\37\uffff"; |
| static final String dfa_67s = "\1\u0096\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\1\1\4\4\5\uffff\1\4\12\uffff\1\2\63\uffff\1\4\11\uffff\3\4\5\uffff\2\4\6\uffff\1\4\14\uffff\1\3\2\uffff\1\4\3\uffff\1\4\5\uffff\1\4\1\uffff\1\4\3\uffff\3\4\1\uffff\12\4\1\uffff\1\4", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); |
| static final char[] dfa_66 = DFA.unpackEncodedStringToUnsignedChars(dfa_66s); |
| static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); |
| static final short[] dfa_68 = DFA.unpackEncodedString(dfa_68s); |
| static final short[] dfa_69 = DFA.unpackEncodedString(dfa_69s); |
| static final short[][] dfa_70 = unpackEncodedStringArray(dfa_70s); |
| |
| class DFA142 extends DFA { |
| |
| public DFA142(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 142; |
| this.eot = dfa_65; |
| this.eof = dfa_65; |
| this.min = dfa_66; |
| this.max = dfa_67; |
| this.accept = dfa_68; |
| this.special = dfa_69; |
| this.transition = dfa_70; |
| } |
| public String getDescription() { |
| return "8392:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA142_0 = input.LA(1); |
| |
| |
| int index142_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA142_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA142_0==25) ) {s = 2;} |
| |
| else if ( (LA142_0==116) && (synpred33_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( ((LA142_0>=RULE_STRING && LA142_0<=RULE_DECIMAL)||LA142_0==14||LA142_0==77||(LA142_0>=87 && LA142_0<=89)||(LA142_0>=95 && LA142_0<=96)||LA142_0==103||LA142_0==119||LA142_0==123||LA142_0==129||LA142_0==131||(LA142_0>=135 && LA142_0<=137)||(LA142_0>=139 && LA142_0<=148)||LA142_0==150) ) {s = 4;} |
| |
| |
| input.seek(index142_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA142_1 = input.LA(1); |
| |
| |
| int index142_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalEntityMockDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index142_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA142_2 = input.LA(1); |
| |
| |
| int index142_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalEntityMockDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index142_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 142, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA165 extends DFA { |
| |
| public DFA165(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 165; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "9521:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA165_1 = input.LA(1); |
| |
| |
| int index165_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index165_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 165, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA164 extends DFA { |
| |
| public DFA164(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 164; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "9540:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA164_0 = input.LA(1); |
| |
| |
| int index164_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA164_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA164_0==25) ) {s = 2;} |
| |
| else if ( (LA164_0==116) && (synpred37_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA164_0==128) && (synpred37_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA164_0>=RULE_STRING && LA164_0<=RULE_DECIMAL)||LA164_0==14||LA164_0==77||(LA164_0>=87 && LA164_0<=89)||(LA164_0>=95 && LA164_0<=96)||LA164_0==103||LA164_0==119||LA164_0==123||LA164_0==129||LA164_0==131||(LA164_0>=135 && LA164_0<=137)||(LA164_0>=139 && LA164_0<=148)||LA164_0==150) ) {s = 5;} |
| |
| else if ( (LA164_0==27) ) {s = 35;} |
| |
| |
| input.seek(index164_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA164_1 = input.LA(1); |
| |
| |
| int index164_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index164_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA164_2 = input.LA(1); |
| |
| |
| int index164_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index164_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 164, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA166 extends DFA { |
| |
| public DFA166(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 166; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "9638:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA166_1 = input.LA(1); |
| |
| |
| int index166_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index166_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 166, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\5\2\5\uffff\2\2\11\uffff\3\2\3\uffff\1\2\2\uffff\1\2\52\uffff\2\2\10\uffff\4\2\1\uffff\1\2\2\uffff\10\2\1\1\30\2\1\uffff\27\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA170 extends DFA { |
| |
| public DFA170(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 170; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_71; |
| } |
| public String getDescription() { |
| return "9797:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA170_1 = input.LA(1); |
| |
| |
| int index170_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index170_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 170, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA173 extends DFA { |
| |
| public DFA173(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 173; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_45; |
| } |
| public String getDescription() { |
| return "9854:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA173_1 = input.LA(1); |
| |
| |
| int index173_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index173_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 173, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA172 extends DFA { |
| |
| public DFA172(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 172; |
| this.eot = dfa_8; |
| this.eof = dfa_8; |
| this.min = dfa_46; |
| this.max = dfa_47; |
| this.accept = dfa_48; |
| this.special = dfa_49; |
| this.transition = dfa_50; |
| } |
| public String getDescription() { |
| return "9873:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA172_0 = input.LA(1); |
| |
| |
| int index172_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA172_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA172_0==25) ) {s = 2;} |
| |
| else if ( (LA172_0==116) && (synpred41_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA172_0==128) && (synpred41_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA172_0>=RULE_STRING && LA172_0<=RULE_DECIMAL)||LA172_0==14||LA172_0==77||(LA172_0>=87 && LA172_0<=89)||(LA172_0>=95 && LA172_0<=96)||LA172_0==103||LA172_0==119||LA172_0==123||LA172_0==129||LA172_0==131||(LA172_0>=135 && LA172_0<=137)||(LA172_0>=139 && LA172_0<=148)||LA172_0==150) ) {s = 5;} |
| |
| else if ( (LA172_0==27) ) {s = 35;} |
| |
| |
| input.seek(index172_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA172_1 = input.LA(1); |
| |
| |
| int index172_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index172_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA172_2 = input.LA(1); |
| |
| |
| int index172_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index172_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 172, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA174 extends DFA { |
| |
| public DFA174(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 174; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_51; |
| } |
| public String getDescription() { |
| return "9971:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA174_1 = input.LA(1); |
| |
| |
| int index174_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index174_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 174, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_72s = "\1\41\115\uffff"; |
| static final String dfa_73s = "\1\4\40\0\55\uffff"; |
| static final String dfa_74s = "\1\u0097\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\1\1\27\1\24\1\23\1\25\5\uffff\1\12\1\41\11\uffff\1\40\2\41\3\uffff\1\41\2\uffff\1\41\52\uffff\1\7\1\41\10\uffff\1\4\1\3\1\5\1\41\1\uffff\1\41\2\uffff\1\17\1\20\6\41\1\15\17\41\1\10\3\41\1\6\4\41\1\uffff\1\31\1\41\1\13\3\41\1\32\1\33\1\34\1\41\1\2\1\16\1\11\1\21\1\22\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[] dfa_72 = DFA.unpackEncodedString(dfa_72s); |
| static final char[] dfa_73 = DFA.unpackEncodedStringToUnsignedChars(dfa_73s); |
| static final char[] dfa_74 = DFA.unpackEncodedStringToUnsignedChars(dfa_74s); |
| static final short[] dfa_75 = DFA.unpackEncodedString(dfa_75s); |
| static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); |
| static final short[][] dfa_77 = unpackEncodedStringArray(dfa_77s); |
| |
| class DFA177 extends DFA { |
| |
| public DFA177(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 177; |
| this.eot = dfa_39; |
| this.eof = dfa_72; |
| this.min = dfa_73; |
| this.max = dfa_74; |
| this.accept = dfa_75; |
| this.special = dfa_76; |
| this.transition = dfa_77; |
| } |
| public String getDescription() { |
| return "10314:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA177_1 = input.LA(1); |
| |
| |
| int index177_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA177_2 = input.LA(1); |
| |
| |
| int index177_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA177_3 = input.LA(1); |
| |
| |
| int index177_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA177_4 = input.LA(1); |
| |
| |
| int index177_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA177_5 = input.LA(1); |
| |
| |
| int index177_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA177_6 = input.LA(1); |
| |
| |
| int index177_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA177_7 = input.LA(1); |
| |
| |
| int index177_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA177_8 = input.LA(1); |
| |
| |
| int index177_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA177_9 = input.LA(1); |
| |
| |
| int index177_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA177_10 = input.LA(1); |
| |
| |
| int index177_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA177_11 = input.LA(1); |
| |
| |
| int index177_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA177_12 = input.LA(1); |
| |
| |
| int index177_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA177_13 = input.LA(1); |
| |
| |
| int index177_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA177_14 = input.LA(1); |
| |
| |
| int index177_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA177_15 = input.LA(1); |
| |
| |
| int index177_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA177_16 = input.LA(1); |
| |
| |
| int index177_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA177_17 = input.LA(1); |
| |
| |
| int index177_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA177_18 = input.LA(1); |
| |
| |
| int index177_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA177_19 = input.LA(1); |
| |
| |
| int index177_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA177_20 = input.LA(1); |
| |
| |
| int index177_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA177_21 = input.LA(1); |
| |
| |
| int index177_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA177_22 = input.LA(1); |
| |
| |
| int index177_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA177_23 = input.LA(1); |
| |
| |
| int index177_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA177_24 = input.LA(1); |
| |
| |
| int index177_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA177_25 = input.LA(1); |
| |
| |
| int index177_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA177_26 = input.LA(1); |
| |
| |
| int index177_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA177_27 = input.LA(1); |
| |
| |
| int index177_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA177_28 = input.LA(1); |
| |
| |
| int index177_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA177_29 = input.LA(1); |
| |
| |
| int index177_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA177_30 = input.LA(1); |
| |
| |
| int index177_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA177_31 = input.LA(1); |
| |
| |
| int index177_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA177_32 = input.LA(1); |
| |
| |
| int index177_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index177_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 177, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_78s = "\120\uffff"; |
| static final String dfa_79s = "\1\2\117\uffff"; |
| static final String dfa_80s = "\1\4\1\0\116\uffff"; |
| static final String dfa_81s = "\1\u0099\1\0\116\uffff"; |
| static final String dfa_82s = "\2\uffff\1\2\114\uffff\1\1"; |
| static final String dfa_83s = "\1\uffff\1\0\116\uffff}>"; |
| static final String[] dfa_84s = { |
| "\5\2\5\uffff\2\2\11\uffff\3\2\3\uffff\1\2\2\uffff\1\2\5\uffff\1\2\44\uffff\2\2\10\uffff\4\2\1\uffff\1\2\2\uffff\10\2\1\1\30\2\1\uffff\27\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| |
| static final short[] dfa_78 = DFA.unpackEncodedString(dfa_78s); |
| static final short[] dfa_79 = DFA.unpackEncodedString(dfa_79s); |
| static final char[] dfa_80 = DFA.unpackEncodedStringToUnsignedChars(dfa_80s); |
| static final char[] dfa_81 = DFA.unpackEncodedStringToUnsignedChars(dfa_81s); |
| static final short[] dfa_82 = DFA.unpackEncodedString(dfa_82s); |
| static final short[] dfa_83 = DFA.unpackEncodedString(dfa_83s); |
| static final short[][] dfa_84 = unpackEncodedStringArray(dfa_84s); |
| |
| class DFA195 extends DFA { |
| |
| public DFA195(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 195; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "10972:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA195_1 = input.LA(1); |
| |
| |
| int index195_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalEntityMockDSL()) ) {s = 79;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index195_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 195, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA193 extends DFA { |
| |
| public DFA193(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 193; |
| this.eot = dfa_78; |
| this.eof = dfa_79; |
| this.min = dfa_80; |
| this.max = dfa_81; |
| this.accept = dfa_82; |
| this.special = dfa_83; |
| this.transition = dfa_84; |
| } |
| public String getDescription() { |
| return "11066:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?"; |
| } |
| public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
| TokenStream input = (TokenStream)_input; |
| int _s = s; |
| switch ( s ) { |
| case 0 : |
| int LA193_1 = input.LA(1); |
| |
| |
| int index193_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalEntityMockDSL()) ) {s = 79;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index193_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 193, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
| public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
| public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000002002L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000018000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000024002L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x80000000204C0000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x80000000204C8000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000108000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000808000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000011000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000008000010L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x000000000C000010L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000010000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000000008010L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000002000002L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000008000020L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x000000000C000020L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000040008000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000002080008000L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000080008000L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000100000000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000200000000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000002L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000800000000L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000001000008000L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000004000000000L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000008000000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000010000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x000000000A000010L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x000000000C000000L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000002000010L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000020000000000L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x7FF2740000000000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000080000000000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000800000000000L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000000040L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0001000000000000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0001000200000050L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000000050L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0004000000000000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0008000000000002L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000008000040L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0009000000000052L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000000000042L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0009000000000052L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000050L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000008000040L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000008000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000000000800000L,0x0000000000000024L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0000000080008000L,0x00000000000C8000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000080008000L,0x00000000000C0000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000080008000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000140L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000080L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000040L,0x0000000000001C00L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000080000000000L,0x0000000000000000L,0x000000001C000000L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000000L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000400000000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000400000010L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000000010L,0x0000000000100000L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000002L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000000L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000010L,0x0000000009000000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000000000000010L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000010L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000002L,0x0000000010000000L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x000000000A0041F0L,0x08800081A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000008000000L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x00000000020041F0L,0x08800081A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000000L,0x0000000100000000L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x00000000020041F0L,0x08800083A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000004000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000004000002L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x000001FC00000000L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000000L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000000L,0x0000030000000000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000002L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000002L,0x0000080000000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0000F00000000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0001038000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000002L,0x007E018000000000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0008000000000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000000L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x0010008000000000L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0080000000002000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000002L,0x0700000004000000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000002L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000002L,0x3000000000000000L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000400000002L,0xC000000000000000L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000000000010L,0x0000000003800000L,0x0000000000000800L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000010L,0x0000008003800000L,0x0000000000001800L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x0000000002000010L,0x0010000000000000L,0x0000000001000000L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000004000000L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000402000002L,0xC000000100000000L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x000000000A0041F0L,0x08900081A3802000L,0x00000000005FFB8BL}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x0000000400000002L,0xC000000100000000L}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x000000000200C1F0L,0x08800081A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x0000000004008000L}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x00000000820041F0L,0x08900083A3802000L,0x00000000005FFF8BL}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x00000000820041F0L,0x08800083A3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x00000000820041F2L,0x08800081B3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x00000000820041F2L,0x08800081A3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x00000000020041F0L,0x08900081A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x0000000006008010L,0x0010000000000000L,0x0000000000000070L}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0000000000000050L}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x00000000820041F0L,0x08800081B3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x0000000004000000L,0x0000000010000000L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x00000000820041F0L,0x08800081A3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x00000000020041F0L,0x08800081B3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x0000000000000000L,0x0000000010000000L}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x000000008200C1F0L,0x08800081A3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x000000008200C1F0L,0x08800081B3802000L,0x00000000005FFF8AL}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x0000000000000002L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x0000000002000002L,0x0000000100000000L}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x0000000000000002L,0x0000000100000000L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000002000002L,0x0000008100000000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x0000000008000000L,0x0000000100000000L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x00000000020041F2L,0x08800081A3802000L,0x00000000005FFB8AL}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000A00000L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000A00000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x0000000000000140L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_145 = new BitSet(new long[]{0x0000000000000002L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_146 = new BitSet(new long[]{0x0000000400000002L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_147 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000001800L}); |
| public static final BitSet FOLLOW_148 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_149 = new BitSet(new long[]{0x0000000000000000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_150 = new BitSet(new long[]{0x0000000000000002L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_151 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |