| 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 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * 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'", "'boolean'", "'future'", "'years'", "'past'", "'dateRange'", "'from'", "'until'", "'numberRange'", "'decimals'", "'roundTo'", "'numberPick'", "'integerRange'", "'integerPick'", "'textPick'", "'paragraphs'", "'sentences'", "'words'", "'unsignedNumberRange'", "'unsignedNumberPick'", "'unsignedIntegerRange'", "'unsignedIntegerPick'", "'entities'", "'mocking'", "'entity'", "'rows'", "'to'", "'createBlobMapping'", "'iterate'", "'fillTime'", "'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__157=157; |
| 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:80: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:80:56: (iv_ruleEntityMockModel= ruleEntityMockModel EOF ) |
| // InternalEntityMockDSL.g:81: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:87: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:93:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) ) |
| // InternalEntityMockDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) |
| { |
| // InternalEntityMockDSL.g:94:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* ) |
| // InternalEntityMockDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleEntityMockPackage ) )* |
| { |
| // InternalEntityMockDSL.g:95:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==88) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalEntityMockDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalEntityMockDSL.g:96:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalEntityMockDSL.g:97: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:114: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:115:4: (lv_packages_1_0= ruleEntityMockPackage ) |
| { |
| // InternalEntityMockDSL.g:115:4: (lv_packages_1_0= ruleEntityMockPackage ) |
| // InternalEntityMockDSL.g:116: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:137: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:137:58: (iv_ruleEntityMockPackage= ruleEntityMockPackage EOF ) |
| // InternalEntityMockDSL.g:138: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:144: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:150:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) ) |
| // InternalEntityMockDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) |
| { |
| // InternalEntityMockDSL.g:151:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? ) |
| // InternalEntityMockDSL.g:152:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_mocks_4_0= ruleEntityMock ) )* otherlv_5= '}' )? |
| { |
| // InternalEntityMockDSL.g:152:3: () |
| // InternalEntityMockDSL.g:153: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:163:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:164:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalEntityMockDSL.g:165: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:182: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:183: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:187: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:188:5: (lv_mocks_4_0= ruleEntityMock ) |
| { |
| // InternalEntityMockDSL.g:188:5: (lv_mocks_4_0= ruleEntityMock ) |
| // InternalEntityMockDSL.g:189: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:215: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:215:51: (iv_ruleEntityMock= ruleEntityMock EOF ) |
| // InternalEntityMockDSL.g:216: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:222: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:228: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:229: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:229: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:230: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:230:3: () |
| // InternalEntityMockDSL.g:231: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:241:3: ( (lv_name_2_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:242:4: (lv_name_2_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:242:4: (lv_name_2_0= RULE_ID ) |
| // InternalEntityMockDSL.g:243: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:259: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:260:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:260:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalEntityMockDSL.g:261:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalEntityMockDSL.g:261:5: (lv_description_3_0= 'describedBy' ) |
| // InternalEntityMockDSL.g:262: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:274:4: ( (lv_descriptionValue_4_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:275:5: (lv_descriptionValue_4_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:275:5: (lv_descriptionValue_4_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:276: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:293: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:294: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:298: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:299: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:299: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:300: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:303: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:304: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:304: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:305:5: ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:305:5: ({...}? => ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) ) |
| // InternalEntityMockDSL.g:306: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:306:110: ( ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) ) |
| // InternalEntityMockDSL.g:307:7: ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 0); |
| // InternalEntityMockDSL.g:310:10: ({...}? => (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) ) |
| // InternalEntityMockDSL.g:310: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:310:20: (otherlv_7= 'priority' ( (lv_runPriority_8_0= RULE_INT ) ) ) |
| // InternalEntityMockDSL.g:310: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:314:10: ( (lv_runPriority_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:315:11: (lv_runPriority_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:315:11: (lv_runPriority_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:316: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:338:5: ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:338:5: ({...}? => ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) ) |
| // InternalEntityMockDSL.g:339: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:339:110: ( ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) ) |
| // InternalEntityMockDSL.g:340:7: ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 1); |
| // InternalEntityMockDSL.g:343:10: ({...}? => ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) ) |
| // InternalEntityMockDSL.g:343: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:343:20: ( (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) ) |
| // InternalEntityMockDSL.g:343:21: (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) |
| { |
| // InternalEntityMockDSL.g:343:21: (lv_datainterchanges_9_0= ruleRunningDataInterchanges ) |
| // InternalEntityMockDSL.g:344: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:366:5: ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:366:5: ({...}? => ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) ) |
| // InternalEntityMockDSL.g:367: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:367:110: ( ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) ) |
| // InternalEntityMockDSL.g:368:7: ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 2); |
| // InternalEntityMockDSL.g:371:10: ({...}? => ( (lv_resources_10_0= ruleEntityMockResources ) ) ) |
| // InternalEntityMockDSL.g:371: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:371:20: ( (lv_resources_10_0= ruleEntityMockResources ) ) |
| // InternalEntityMockDSL.g:371:21: (lv_resources_10_0= ruleEntityMockResources ) |
| { |
| // InternalEntityMockDSL.g:371:21: (lv_resources_10_0= ruleEntityMockResources ) |
| // InternalEntityMockDSL.g:372: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:394:5: ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:394:5: ({...}? => ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) ) |
| // InternalEntityMockDSL.g:395: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:395:110: ( ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) ) |
| // InternalEntityMockDSL.g:396:7: ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 3); |
| // InternalEntityMockDSL.g:399:10: ({...}? => ( (lv_objects_11_0= ruleEntityMockObjects ) ) ) |
| // InternalEntityMockDSL.g:399: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:399:20: ( (lv_objects_11_0= ruleEntityMockObjects ) ) |
| // InternalEntityMockDSL.g:399:21: (lv_objects_11_0= ruleEntityMockObjects ) |
| { |
| // InternalEntityMockDSL.g:399:21: (lv_objects_11_0= ruleEntityMockObjects ) |
| // InternalEntityMockDSL.g:400: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:422:5: ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:422:5: ({...}? => ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) ) |
| // InternalEntityMockDSL.g:423: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:423:110: ( ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) ) |
| // InternalEntityMockDSL.g:424:7: ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockAccess().getUnorderedGroup_4_1(), 4); |
| // InternalEntityMockDSL.g:427:10: ({...}? => ( (lv_entities_12_0= ruleEntityMockEntities ) ) ) |
| // InternalEntityMockDSL.g:427: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:427:20: ( (lv_entities_12_0= ruleEntityMockEntities ) ) |
| // InternalEntityMockDSL.g:427:21: (lv_entities_12_0= ruleEntityMockEntities ) |
| { |
| // InternalEntityMockDSL.g:427:21: (lv_entities_12_0= ruleEntityMockEntities ) |
| // InternalEntityMockDSL.g:428: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:467: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:467:64: (iv_ruleRunningDataInterchanges= ruleRunningDataInterchanges EOF ) |
| // InternalEntityMockDSL.g:468: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:474: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:480:2: ( ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:481:2: ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:481:2: ( () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:482:3: () otherlv_1= 'datainterchanges' otherlv_2= '{' ( (lv_datainterchanges_3_0= ruleRunningDataInterchange ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:482:3: () |
| // InternalEntityMockDSL.g:483: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:497: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:498:4: (lv_datainterchanges_3_0= ruleRunningDataInterchange ) |
| { |
| // InternalEntityMockDSL.g:498:4: (lv_datainterchanges_3_0= ruleRunningDataInterchange ) |
| // InternalEntityMockDSL.g:499: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:524: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:524:63: (iv_ruleRunningDataInterchange= ruleRunningDataInterchange EOF ) |
| // InternalEntityMockDSL.g:525: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:531: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:537:2: ( ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) ) |
| // InternalEntityMockDSL.g:538:2: ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) |
| { |
| // InternalEntityMockDSL.g:538:2: ( () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) ) |
| // InternalEntityMockDSL.g:539:3: () otherlv_1= 'datainterchange' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'file' ( (lv_fileURL_4_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:539:3: () |
| // InternalEntityMockDSL.g:540: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:550:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:551:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:551:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:552: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:567:3: ( (lv_fileURL_4_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:568:4: (lv_fileURL_4_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:568:4: (lv_fileURL_4_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:569: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:589: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:589:60: (iv_ruleEntityMockResources= ruleEntityMockResources EOF ) |
| // InternalEntityMockDSL.g:590: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:596: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:602:2: ( ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:603:2: ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:603:2: ( () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:604:3: () otherlv_1= 'resources' otherlv_2= '{' ( (lv_resources_3_0= ruleEntityMockResource ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:604:3: () |
| // InternalEntityMockDSL.g:605: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:619: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:620:4: (lv_resources_3_0= ruleEntityMockResource ) |
| { |
| // InternalEntityMockDSL.g:620:4: (lv_resources_3_0= ruleEntityMockResource ) |
| // InternalEntityMockDSL.g:621: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:646: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:646:59: (iv_ruleEntityMockResource= ruleEntityMockResource EOF ) |
| // InternalEntityMockDSL.g:647: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:653: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:659: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:660: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:660: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:661: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:665:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:666:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:666:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:667: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:687: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:688: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:696: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:697:5: ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) (otherlv_6= ',' )? |
| { |
| // InternalEntityMockDSL.g:697:5: ( (lv_attributes_5_0= ruleEntityMockResourceAttribute ) ) |
| // InternalEntityMockDSL.g:698:6: (lv_attributes_5_0= ruleEntityMockResourceAttribute ) |
| { |
| // InternalEntityMockDSL.g:698:6: (lv_attributes_5_0= ruleEntityMockResourceAttribute ) |
| // InternalEntityMockDSL.g:699: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:716:5: (otherlv_6= ',' )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==26) ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalEntityMockDSL.g:717: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:736: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:737:4: (lv_datarows_10_0= ruleEntityMockResourceDataRow ) |
| { |
| // InternalEntityMockDSL.g:737:4: (lv_datarows_10_0= ruleEntityMockResourceDataRow ) |
| // InternalEntityMockDSL.g:738: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:767: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:767:68: (iv_ruleEntityMockResourceAttribute= ruleEntityMockResourceAttribute EOF ) |
| // InternalEntityMockDSL.g:768: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:774: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:780:2: ( ( () ( (lv_name_1_0= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:781:2: ( () ( (lv_name_1_0= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:781:2: ( () ( (lv_name_1_0= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:782:3: () ( (lv_name_1_0= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:782:3: () |
| // InternalEntityMockDSL.g:783:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockResourceAttributeAccess().getEntityMockResourceAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:789:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:790:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:790:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:791: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:811: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:811:66: (iv_ruleEntityMockResourceDataRow= ruleEntityMockResourceDataRow EOF ) |
| // InternalEntityMockDSL.g:812: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:818: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:824:2: ( ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) ) |
| // InternalEntityMockDSL.g:825:2: ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) |
| { |
| // InternalEntityMockDSL.g:825:2: ( () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? ) |
| // InternalEntityMockDSL.g:826:3: () ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' )? |
| { |
| // InternalEntityMockDSL.g:826:3: () |
| // InternalEntityMockDSL.g:827:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockResourceDataRowAccess().getEntityMockResourceDataRowAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:833:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:834:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:834:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:835: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:851: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:852: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:856: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:857:5: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:857:5: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:858:6: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:858:6: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:859: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:875:5: (otherlv_4= ',' )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==26) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalEntityMockDSL.g:876: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:891: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:891:58: (iv_ruleEntityMockObjects= ruleEntityMockObjects EOF ) |
| // InternalEntityMockDSL.g:892: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:898: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:904:2: ( ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:905:2: ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:905:2: ( () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:906:3: () otherlv_1= 'objects' otherlv_2= '{' ( (lv_objects_3_0= ruleEntityMockObject ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:906:3: () |
| // InternalEntityMockDSL.g:907: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:921: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:922:4: (lv_objects_3_0= ruleEntityMockObject ) |
| { |
| // InternalEntityMockDSL.g:922:4: (lv_objects_3_0= ruleEntityMockObject ) |
| // InternalEntityMockDSL.g:923: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:948: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:948:57: (iv_ruleEntityMockObject= ruleEntityMockObject EOF ) |
| // InternalEntityMockDSL.g:949: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:955: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:961: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:962: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:962: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:963: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:967:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:968:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:968:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:969: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:989: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:990:4: (lv_enumerations_3_0= ruleEntityMockObjectEnum ) |
| { |
| // InternalEntityMockDSL.g:990:4: (lv_enumerations_3_0= ruleEntityMockObjectEnum ) |
| // InternalEntityMockDSL.g:991: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:1008: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:1009:4: (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) |
| { |
| // InternalEntityMockDSL.g:1009:4: (lv_attributes_4_0= ruleIEntityMockObjectAttribute ) |
| // InternalEntityMockDSL.g:1010: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:1027: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:1028:4: (lv_calculations_5_0= ruleEntityMockObjectFunction ) |
| { |
| // InternalEntityMockDSL.g:1028:4: (lv_calculations_5_0= ruleEntityMockObjectFunction ) |
| // InternalEntityMockDSL.g:1029: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:1054: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:1054:61: (iv_ruleEntityMockObjectEnum= ruleEntityMockObjectEnum EOF ) |
| // InternalEntityMockDSL.g:1055: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:1061: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:1067:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1068:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1068:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byEnum' ( (otherlv_3= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1069: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:1073:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1074:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1074:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1075: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:1095:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1096:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1096:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1097: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:1112: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:1112:67: (iv_ruleIEntityMockObjectAttribute= ruleIEntityMockObjectAttribute EOF ) |
| // InternalEntityMockDSL.g:1113: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:1119: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:1125:2: ( (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) ) |
| // InternalEntityMockDSL.g:1126:2: (this_EntityMockObjectResourceValue_0= ruleEntityMockObjectResourceValue | this_EntityMockObjectPlainValue_1= ruleEntityMockObjectPlainValue | this_EntityMockObjectArrayValue_2= ruleEntityMockObjectArrayValue | this_EntityMockObjectEmbed_3= ruleEntityMockObjectEmbed | this_EntityMockObjectFill_4= ruleEntityMockObjectFill ) |
| { |
| // InternalEntityMockDSL.g:1126: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:1127: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:1136: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:1145: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:1154: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:1163: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:1175: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:1175:67: (iv_ruleEntityMockObjectPlainValue= ruleEntityMockObjectPlainValue EOF ) |
| // InternalEntityMockDSL.g:1176: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:1182: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:1188:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:1189:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:1189:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:1190: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:1194:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1195:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1195:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1196: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:1216: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:1217:4: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:1217:4: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:1218:5: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:1218:5: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:1219: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:1235:4: (otherlv_4= ',' )? |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==26) ) { |
| alt22=1; |
| } |
| switch (alt22) { |
| case 1 : |
| // InternalEntityMockDSL.g:1236: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:1250: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:1250:70: (iv_ruleEntityMockObjectResourceValue= ruleEntityMockObjectResourceValue EOF ) |
| // InternalEntityMockDSL.g:1251: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:1257: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:1263: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:1264: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:1264: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:1265: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:1269:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1270:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1270:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1271: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:1291:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1292:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1292:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1293: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:1304: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:1305: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:1309:4: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1310:5: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1310:5: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:1311: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:1327: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:1327:67: (iv_ruleEntityMockObjectArrayValue= ruleEntityMockObjectArrayValue EOF ) |
| // InternalEntityMockDSL.g:1328: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:1334: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:1340: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:1341: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:1341: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:1342: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:1346:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1347:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1347:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1348: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:1368:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1369:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1369:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:1370: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:1385: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:1386:4: (lv_items_5_0= ruleEntityMockObjectItemValue ) |
| { |
| // InternalEntityMockDSL.g:1386:4: (lv_items_5_0= ruleEntityMockObjectItemValue ) |
| // InternalEntityMockDSL.g:1387: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:1412: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:1412:66: (iv_ruleEntityMockObjectItemValue= ruleEntityMockObjectItemValue EOF ) |
| // InternalEntityMockDSL.g:1413: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:1419: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:1425:2: ( (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:1426:2: (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:1426:2: (otherlv_0= 'when' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:1427: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:1431:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1432:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1432:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:1433: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:1448: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:1449:4: ( (lv_values_3_0= RULE_STRING ) ) (otherlv_4= ',' )? |
| { |
| // InternalEntityMockDSL.g:1449:4: ( (lv_values_3_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:1450:5: (lv_values_3_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:1450:5: (lv_values_3_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:1451: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:1467:4: (otherlv_4= ',' )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==26) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalEntityMockDSL.g:1468: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:1482: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:1482:62: (iv_ruleEntityMockObjectEmbed= ruleEntityMockObjectEmbed EOF ) |
| // InternalEntityMockDSL.g:1483: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:1489: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:1495:2: ( ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1496:2: ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1496:2: ( () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1497:3: () otherlv_1= 'embed' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'definedAs' ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:1497:3: () |
| // InternalEntityMockDSL.g:1498: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:1508:3: ( (lv_name_2_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1509:4: (lv_name_2_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1509:4: (lv_name_2_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1510: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:1530:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1531:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1531:4: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:1532: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:1547: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:1547:65: (iv_ruleEntityMockObjectFunction= ruleEntityMockObjectFunction EOF ) |
| // InternalEntityMockDSL.g:1548: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:1554: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:1560: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:1561: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:1561: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:1562: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:1566:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1567:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1567:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1568: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:1588:3: ( (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) ) |
| // InternalEntityMockDSL.g:1589:4: (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) |
| { |
| // InternalEntityMockDSL.g:1589:4: (lv_oftype_3_0= ruleJvmParameterizedTypeReference ) |
| // InternalEntityMockDSL.g:1590: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:1615: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==117) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalEntityMockDSL.g:1616:4: ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) (otherlv_7= ',' ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:1616:4: ( (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) ) |
| // InternalEntityMockDSL.g:1617:5: (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:1617:5: (lv_params_6_0= ruleEntityMockObjectFunctionParameter ) |
| // InternalEntityMockDSL.g:1618: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:1635: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:1636: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:1640:5: ( (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) ) |
| // InternalEntityMockDSL.g:1641:6: (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:1641:6: (lv_params_8_0= ruleEntityMockObjectFunctionParameter ) |
| // InternalEntityMockDSL.g:1642: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:1665:3: ( (lv_body_10_0= ruleXBlockExpression ) ) |
| // InternalEntityMockDSL.g:1666:4: (lv_body_10_0= ruleXBlockExpression ) |
| { |
| // InternalEntityMockDSL.g:1666:4: (lv_body_10_0= ruleXBlockExpression ) |
| // InternalEntityMockDSL.g:1667: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:1688: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:1688:74: (iv_ruleEntityMockObjectFunctionParameter= ruleEntityMockObjectFunctionParameter EOF ) |
| // InternalEntityMockDSL.g:1689: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:1695: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:1701:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:1702:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:1702:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:1703:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (otherlv_1= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:1703:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:1704:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:1704:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:1705: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:1722:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1723:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1723:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:1724: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:1739: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:1739:61: (iv_ruleEntityMockObjectFill= ruleEntityMockObjectFill EOF ) |
| // InternalEntityMockDSL.g:1740: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:1746: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:1752:2: ( (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ) |
| // InternalEntityMockDSL.g:1753:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| { |
| // InternalEntityMockDSL.g:1753:2: (otherlv_0= 'var' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| // InternalEntityMockDSL.g:1754: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:1758:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:1759:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:1759:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:1760: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:1780:3: ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| // InternalEntityMockDSL.g:1781:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| { |
| // InternalEntityMockDSL.g:1781:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| // InternalEntityMockDSL.g:1782: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:1803: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:1803:59: (iv_rulePropertyFillerType= rulePropertyFillerType EOF ) |
| // InternalEntityMockDSL.g:1804: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:1810:1: rulePropertyFillerType returns [EObject current=null] : (this_PropertyFillerDateType_0= rulePropertyFillerDateType | this_PropertyFillerBoolean_1= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_2= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_3= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_4= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_5= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_6= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_7= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_8= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_9= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_10= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_11= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_12= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_13= rulePropertyFillerUnsignedIntegerRandom ) ; |
| public final EObject rulePropertyFillerType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PropertyFillerDateType_0 = null; |
| |
| EObject this_PropertyFillerBoolean_1 = null; |
| |
| EObject this_PropertyFillerSignedDoubleRange_2 = null; |
| |
| EObject this_PropertyFillerSignedDoubleRandom_3 = null; |
| |
| EObject this_PropertyFillerSignedIntegerRange_4 = null; |
| |
| EObject this_PropertyFillerSignedIntegerRandom_5 = null; |
| |
| EObject this_PropertyFillerTextRandom_6 = null; |
| |
| EObject this_PropertyFillerTextParagraphs_7 = null; |
| |
| EObject this_PropertyFillerTextSentences_8 = null; |
| |
| EObject this_PropertyFillerTextWords_9 = null; |
| |
| EObject this_PropertyFillerUnsignedDoubleRange_10 = null; |
| |
| EObject this_PropertyFillerUnsignedDoubleRandom_11 = null; |
| |
| EObject this_PropertyFillerUnsignedIntegerRange_12 = null; |
| |
| EObject this_PropertyFillerUnsignedIntegerRandom_13 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1816:2: ( (this_PropertyFillerDateType_0= rulePropertyFillerDateType | this_PropertyFillerBoolean_1= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_2= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_3= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_4= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_5= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_6= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_7= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_8= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_9= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_10= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_11= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_12= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_13= rulePropertyFillerUnsignedIntegerRandom ) ) |
| // InternalEntityMockDSL.g:1817:2: (this_PropertyFillerDateType_0= rulePropertyFillerDateType | this_PropertyFillerBoolean_1= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_2= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_3= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_4= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_5= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_6= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_7= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_8= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_9= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_10= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_11= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_12= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_13= rulePropertyFillerUnsignedIntegerRandom ) |
| { |
| // InternalEntityMockDSL.g:1817:2: (this_PropertyFillerDateType_0= rulePropertyFillerDateType | this_PropertyFillerBoolean_1= rulePropertyFillerBoolean | this_PropertyFillerSignedDoubleRange_2= rulePropertyFillerSignedDoubleRange | this_PropertyFillerSignedDoubleRandom_3= rulePropertyFillerSignedDoubleRandom | this_PropertyFillerSignedIntegerRange_4= rulePropertyFillerSignedIntegerRange | this_PropertyFillerSignedIntegerRandom_5= rulePropertyFillerSignedIntegerRandom | this_PropertyFillerTextRandom_6= rulePropertyFillerTextRandom | this_PropertyFillerTextParagraphs_7= rulePropertyFillerTextParagraphs | this_PropertyFillerTextSentences_8= rulePropertyFillerTextSentences | this_PropertyFillerTextWords_9= rulePropertyFillerTextWords | this_PropertyFillerUnsignedDoubleRange_10= rulePropertyFillerUnsignedDoubleRange | this_PropertyFillerUnsignedDoubleRandom_11= rulePropertyFillerUnsignedDoubleRandom | this_PropertyFillerUnsignedIntegerRange_12= rulePropertyFillerUnsignedIntegerRange | this_PropertyFillerUnsignedIntegerRandom_13= rulePropertyFillerUnsignedIntegerRandom ) |
| int alt30=14; |
| switch ( input.LA(1) ) { |
| case 43: |
| case 45: |
| case 46: |
| { |
| alt30=1; |
| } |
| break; |
| case 42: |
| { |
| alt30=2; |
| } |
| break; |
| case 49: |
| { |
| alt30=3; |
| } |
| break; |
| case 52: |
| { |
| alt30=4; |
| } |
| break; |
| case 53: |
| { |
| alt30=5; |
| } |
| break; |
| case 54: |
| { |
| alt30=6; |
| } |
| break; |
| case 55: |
| { |
| alt30=7; |
| } |
| break; |
| case 56: |
| { |
| alt30=8; |
| } |
| break; |
| case 57: |
| { |
| alt30=9; |
| } |
| break; |
| case 58: |
| { |
| alt30=10; |
| } |
| break; |
| case 59: |
| { |
| alt30=11; |
| } |
| break; |
| case 60: |
| { |
| alt30=12; |
| } |
| break; |
| case 61: |
| { |
| alt30=13; |
| } |
| break; |
| case 62: |
| { |
| alt30=14; |
| } |
| 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:1818:3: this_PropertyFillerDateType_0= rulePropertyFillerDateType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerDateTypeParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerDateType_0=rulePropertyFillerDateType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerDateType_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:1827:3: this_PropertyFillerBoolean_1= rulePropertyFillerBoolean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerBooleanParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerBoolean_1=rulePropertyFillerBoolean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerBoolean_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:1836:3: this_PropertyFillerSignedDoubleRange_2= rulePropertyFillerSignedDoubleRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedDoubleRangeParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedDoubleRange_2=rulePropertyFillerSignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedDoubleRange_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:1845:3: this_PropertyFillerSignedDoubleRandom_3= rulePropertyFillerSignedDoubleRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedDoubleRandomParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedDoubleRandom_3=rulePropertyFillerSignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedDoubleRandom_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:1854:3: this_PropertyFillerSignedIntegerRange_4= rulePropertyFillerSignedIntegerRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedIntegerRangeParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedIntegerRange_4=rulePropertyFillerSignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedIntegerRange_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:1863:3: this_PropertyFillerSignedIntegerRandom_5= rulePropertyFillerSignedIntegerRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerSignedIntegerRandomParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerSignedIntegerRandom_5=rulePropertyFillerSignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerSignedIntegerRandom_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalEntityMockDSL.g:1872:3: this_PropertyFillerTextRandom_6= rulePropertyFillerTextRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextRandomParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextRandom_6=rulePropertyFillerTextRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextRandom_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalEntityMockDSL.g:1881:3: this_PropertyFillerTextParagraphs_7= rulePropertyFillerTextParagraphs |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextParagraphsParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextParagraphs_7=rulePropertyFillerTextParagraphs(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextParagraphs_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalEntityMockDSL.g:1890:3: this_PropertyFillerTextSentences_8= rulePropertyFillerTextSentences |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextSentencesParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextSentences_8=rulePropertyFillerTextSentences(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextSentences_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalEntityMockDSL.g:1899:3: this_PropertyFillerTextWords_9= rulePropertyFillerTextWords |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerTextWordsParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerTextWords_9=rulePropertyFillerTextWords(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerTextWords_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalEntityMockDSL.g:1908:3: this_PropertyFillerUnsignedDoubleRange_10= rulePropertyFillerUnsignedDoubleRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedDoubleRangeParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedDoubleRange_10=rulePropertyFillerUnsignedDoubleRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedDoubleRange_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 12 : |
| // InternalEntityMockDSL.g:1917:3: this_PropertyFillerUnsignedDoubleRandom_11= rulePropertyFillerUnsignedDoubleRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedDoubleRandomParserRuleCall_11()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedDoubleRandom_11=rulePropertyFillerUnsignedDoubleRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedDoubleRandom_11; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 13 : |
| // InternalEntityMockDSL.g:1926:3: this_PropertyFillerUnsignedIntegerRange_12= rulePropertyFillerUnsignedIntegerRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedIntegerRangeParserRuleCall_12()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedIntegerRange_12=rulePropertyFillerUnsignedIntegerRange(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedIntegerRange_12; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 14 : |
| // InternalEntityMockDSL.g:1935:3: this_PropertyFillerUnsignedIntegerRandom_13= rulePropertyFillerUnsignedIntegerRandom |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerTypeAccess().getPropertyFillerUnsignedIntegerRandomParserRuleCall_13()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyFillerUnsignedIntegerRandom_13=rulePropertyFillerUnsignedIntegerRandom(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyFillerUnsignedIntegerRandom_13; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerType" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerBoolean" |
| // InternalEntityMockDSL.g:1947: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:1947:62: (iv_rulePropertyFillerBoolean= rulePropertyFillerBoolean EOF ) |
| // InternalEntityMockDSL.g:1948: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:1954: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:1960:2: ( ( () otherlv_1= 'boolean' ) ) |
| // InternalEntityMockDSL.g:1961:2: ( () otherlv_1= 'boolean' ) |
| { |
| // InternalEntityMockDSL.g:1961:2: ( () otherlv_1= 'boolean' ) |
| // InternalEntityMockDSL.g:1962:3: () otherlv_1= 'boolean' |
| { |
| // InternalEntityMockDSL.g:1962:3: () |
| // InternalEntityMockDSL.g:1963:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyFillerBooleanAccess().getPropertyFillerBooleanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,42,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 "entryRulePropertyFillerDateType" |
| // InternalEntityMockDSL.g:1977:1: entryRulePropertyFillerDateType returns [EObject current=null] : iv_rulePropertyFillerDateType= rulePropertyFillerDateType EOF ; |
| public final EObject entryRulePropertyFillerDateType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyFillerDateType = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:1977:63: (iv_rulePropertyFillerDateType= rulePropertyFillerDateType EOF ) |
| // InternalEntityMockDSL.g:1978:2: iv_rulePropertyFillerDateType= rulePropertyFillerDateType EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyFillerDateTypeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyFillerDateType=rulePropertyFillerDateType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyFillerDateType; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyFillerDateType" |
| |
| |
| // $ANTLR start "rulePropertyFillerDateType" |
| // InternalEntityMockDSL.g:1984:1: rulePropertyFillerDateType returns [EObject current=null] : (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange ) ; |
| public final EObject rulePropertyFillerDateType() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PropertyFillerDateFuture_0 = null; |
| |
| EObject this_PropertyFillerDatePast_1 = null; |
| |
| EObject this_PropertyFillerDateRange_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:1990:2: ( (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange ) ) |
| // InternalEntityMockDSL.g:1991:2: (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange ) |
| { |
| // InternalEntityMockDSL.g:1991:2: (this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture | this_PropertyFillerDatePast_1= rulePropertyFillerDatePast | this_PropertyFillerDateRange_2= rulePropertyFillerDateRange ) |
| int alt31=3; |
| switch ( input.LA(1) ) { |
| case 43: |
| { |
| alt31=1; |
| } |
| break; |
| case 45: |
| { |
| alt31=2; |
| } |
| break; |
| case 46: |
| { |
| alt31=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 31, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt31) { |
| case 1 : |
| // InternalEntityMockDSL.g:1992:3: this_PropertyFillerDateFuture_0= rulePropertyFillerDateFuture |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerDateTypeAccess().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:2001:3: this_PropertyFillerDatePast_1= rulePropertyFillerDatePast |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerDateTypeAccess().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:2010:3: this_PropertyFillerDateRange_2= rulePropertyFillerDateRange |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyFillerDateTypeAccess().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; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyFillerDateType" |
| |
| |
| // $ANTLR start "entryRulePropertyFillerDateFuture" |
| // InternalEntityMockDSL.g:2022: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:2022:65: (iv_rulePropertyFillerDateFuture= rulePropertyFillerDateFuture EOF ) |
| // InternalEntityMockDSL.g:2023: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:2029: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:2035:2: ( (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ) |
| // InternalEntityMockDSL.g:2036:2: (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| { |
| // InternalEntityMockDSL.g:2036:2: (otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| // InternalEntityMockDSL.g:2037:3: otherlv_0= 'future' ( (lv_dateFutureYears_1_0= RULE_INT ) ) otherlv_2= 'years' |
| { |
| otherlv_0=(Token)match(input,43,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerDateFutureAccess().getFutureKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2041:3: ( (lv_dateFutureYears_1_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2042:4: (lv_dateFutureYears_1_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2042:4: (lv_dateFutureYears_1_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2043: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,44,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:2067: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:2067:63: (iv_rulePropertyFillerDatePast= rulePropertyFillerDatePast EOF ) |
| // InternalEntityMockDSL.g:2068: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:2074: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:2080:2: ( (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) ) |
| // InternalEntityMockDSL.g:2081:2: (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| { |
| // InternalEntityMockDSL.g:2081:2: (otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' ) |
| // InternalEntityMockDSL.g:2082:3: otherlv_0= 'past' ( (lv_datePastYears_1_0= RULE_INT ) ) otherlv_2= 'years' |
| { |
| otherlv_0=(Token)match(input,45,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyFillerDatePastAccess().getPastKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:2086:3: ( (lv_datePastYears_1_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2087:4: (lv_datePastYears_1_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2087:4: (lv_datePastYears_1_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2088: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,44,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 "entryRulePropertyFillerDateRange" |
| // InternalEntityMockDSL.g:2112: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:2112:64: (iv_rulePropertyFillerDateRange= rulePropertyFillerDateRange EOF ) |
| // InternalEntityMockDSL.g:2113: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:2119: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:2125: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:2126: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:2126: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:2127: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:2135:3: ( (lv_dateBeginYears_2_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2136:4: (lv_dateBeginYears_2_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2136:4: (lv_dateBeginYears_2_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2137: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:2158:3: ( (lv_dateEndYears_4_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2159:4: (lv_dateEndYears_4_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2159:4: (lv_dateEndYears_4_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2160: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,44,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:2185: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:2185:72: (iv_rulePropertyFillerSignedDoubleRange= rulePropertyFillerSignedDoubleRange EOF ) |
| // InternalEntityMockDSL.g:2186: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:2192: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:2198: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:2199: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:2199: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:2200: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:2208:3: ( ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==RULE_ID||LA34_0==RULE_INT||LA34_0==48||LA34_0==78) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalEntityMockDSL.g:2209:4: ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2209:4: ( ( (lv_beginRange_2_0= ruleSignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? |
| int alt32=3; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==RULE_INT||LA32_0==78) ) { |
| alt32=1; |
| } |
| else if ( (LA32_0==RULE_ID) ) { |
| alt32=2; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalEntityMockDSL.g:2210:5: ( (lv_beginRange_2_0= ruleSignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2210:5: ( (lv_beginRange_2_0= ruleSignedNumber ) ) |
| // InternalEntityMockDSL.g:2211:6: (lv_beginRange_2_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2211:6: (lv_beginRange_2_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2212: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:2230:5: ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2230:5: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2231:6: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2231:6: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:2232: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:2248:4: ( ( (lv_endRange_5_0= ruleSignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| int alt33=2; |
| int LA33_0 = input.LA(1); |
| |
| if ( (LA33_0==RULE_INT||LA33_0==78) ) { |
| alt33=1; |
| } |
| else if ( (LA33_0==RULE_ID) ) { |
| alt33=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 33, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt33) { |
| case 1 : |
| // InternalEntityMockDSL.g:2249:5: ( (lv_endRange_5_0= ruleSignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2249:5: ( (lv_endRange_5_0= ruleSignedNumber ) ) |
| // InternalEntityMockDSL.g:2250:6: (lv_endRange_5_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2250:6: (lv_endRange_5_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2251: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:2269:5: ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2269:5: ( (otherlv_6= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2270:6: (otherlv_6= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2270:6: (otherlv_6= RULE_ID ) |
| // InternalEntityMockDSL.g:2271: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:2288:3: ( (lv_decimals_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2289:4: (lv_decimals_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2289:4: (lv_decimals_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2290: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:2310:3: (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==51) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalEntityMockDSL.g:2311: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:2315:4: ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2316:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2316:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2317: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:2339: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:2339:73: (iv_rulePropertyFillerSignedDoubleRandom= rulePropertyFillerSignedDoubleRandom EOF ) |
| // InternalEntityMockDSL.g:2340: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:2346: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:2352:2: ( (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2353:2: (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2353:2: (otherlv_0= 'numberPick' otherlv_1= '(' ( (lv_items_2_0= ruleSignedNumber ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2354: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:2362:3: ( (lv_items_2_0= ruleSignedNumber ) )+ |
| int cnt36=0; |
| loop36: |
| do { |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==RULE_INT||LA36_0==78) ) { |
| alt36=1; |
| } |
| |
| |
| switch (alt36) { |
| case 1 : |
| // InternalEntityMockDSL.g:2363:4: (lv_items_2_0= ruleSignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2363:4: (lv_items_2_0= ruleSignedNumber ) |
| // InternalEntityMockDSL.g:2364: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 ( cnt36 >= 1 ) break loop36; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(36, input); |
| throw eee; |
| } |
| cnt36++; |
| } 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:2389: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:2389:73: (iv_rulePropertyFillerSignedIntegerRange= rulePropertyFillerSignedIntegerRange EOF ) |
| // InternalEntityMockDSL.g:2390: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:2396: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:2402: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:2403: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:2403: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:2404: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:2404:3: () |
| // InternalEntityMockDSL.g:2405: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:2419:3: ( ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==RULE_ID||LA39_0==RULE_INT||LA39_0==48||LA39_0==78) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalEntityMockDSL.g:2420:4: ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? otherlv_5= 'until' ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2420:4: ( ( (lv_beginRange_3_0= ruleSINT ) ) | ( (otherlv_4= RULE_ID ) ) )? |
| int alt37=3; |
| int LA37_0 = input.LA(1); |
| |
| if ( (LA37_0==RULE_INT||LA37_0==78) ) { |
| alt37=1; |
| } |
| else if ( (LA37_0==RULE_ID) ) { |
| alt37=2; |
| } |
| switch (alt37) { |
| case 1 : |
| // InternalEntityMockDSL.g:2421:5: ( (lv_beginRange_3_0= ruleSINT ) ) |
| { |
| // InternalEntityMockDSL.g:2421:5: ( (lv_beginRange_3_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2422:6: (lv_beginRange_3_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2422:6: (lv_beginRange_3_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2423: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:2441:5: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2441:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2442:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2442:6: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:2443: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:2459:4: ( ( (lv_endRange_6_0= ruleSINT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==RULE_INT||LA38_0==78) ) { |
| alt38=1; |
| } |
| else if ( (LA38_0==RULE_ID) ) { |
| alt38=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 38, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalEntityMockDSL.g:2460:5: ( (lv_endRange_6_0= ruleSINT ) ) |
| { |
| // InternalEntityMockDSL.g:2460:5: ( (lv_endRange_6_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:2461:6: (lv_endRange_6_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2461:6: (lv_endRange_6_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2462: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:2480:5: ( (otherlv_7= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2480:5: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2481:6: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2481:6: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:2482: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:2495:3: (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==51) ) { |
| alt40=1; |
| } |
| switch (alt40) { |
| case 1 : |
| // InternalEntityMockDSL.g:2496: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:2500:4: ( (lv_rounded_9_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2501:5: (lv_rounded_9_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2501:5: (lv_rounded_9_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2502: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:2523: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:2523:74: (iv_rulePropertyFillerSignedIntegerRandom= rulePropertyFillerSignedIntegerRandom EOF ) |
| // InternalEntityMockDSL.g:2524: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:2530: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:2536:2: ( (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2537:2: (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2537:2: (otherlv_0= 'integerPick' otherlv_1= '(' ( (lv_items_2_0= ruleSINT ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2538: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:2546:3: ( (lv_items_2_0= ruleSINT ) )+ |
| int cnt41=0; |
| loop41: |
| do { |
| int alt41=2; |
| int LA41_0 = input.LA(1); |
| |
| if ( (LA41_0==RULE_INT||LA41_0==78) ) { |
| alt41=1; |
| } |
| |
| |
| switch (alt41) { |
| case 1 : |
| // InternalEntityMockDSL.g:2547:4: (lv_items_2_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:2547:4: (lv_items_2_0= ruleSINT ) |
| // InternalEntityMockDSL.g:2548: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 ( 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.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:2573: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:2573:65: (iv_rulePropertyFillerTextRandom= rulePropertyFillerTextRandom EOF ) |
| // InternalEntityMockDSL.g:2574: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:2580: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:2586:2: ( (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2587:2: (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2587:2: (otherlv_0= 'textPick' otherlv_1= '(' ( (lv_items_2_0= RULE_STRING ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2588: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:2596:3: ( (lv_items_2_0= RULE_STRING ) )+ |
| int cnt42=0; |
| loop42: |
| do { |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==RULE_STRING) ) { |
| alt42=1; |
| } |
| |
| |
| switch (alt42) { |
| case 1 : |
| // InternalEntityMockDSL.g:2597:4: (lv_items_2_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:2597:4: (lv_items_2_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:2598: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 ( cnt42 >= 1 ) break loop42; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(42, input); |
| throw eee; |
| } |
| cnt42++; |
| } 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:2622: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:2622:69: (iv_rulePropertyFillerTextParagraphs= rulePropertyFillerTextParagraphs EOF ) |
| // InternalEntityMockDSL.g:2623: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:2629: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:2635:2: ( ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2636:2: ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2636:2: ( () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2637:3: () otherlv_1= 'paragraphs' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2637:3: () |
| // InternalEntityMockDSL.g:2638: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:2648: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:2649:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2649:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2650: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:2670: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:2670:68: (iv_rulePropertyFillerTextSentences= rulePropertyFillerTextSentences EOF ) |
| // InternalEntityMockDSL.g:2671: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:2677: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:2683:2: ( ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2684:2: ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2684:2: ( () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2685:3: () otherlv_1= 'sentences' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2685:3: () |
| // InternalEntityMockDSL.g:2686: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:2696: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:2697:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2697:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2698: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:2718: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:2718:64: (iv_rulePropertyFillerTextWords= rulePropertyFillerTextWords EOF ) |
| // InternalEntityMockDSL.g:2719: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:2725: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:2731:2: ( ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) ) |
| // InternalEntityMockDSL.g:2732:2: ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) |
| { |
| // InternalEntityMockDSL.g:2732:2: ( () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? ) |
| // InternalEntityMockDSL.g:2733:3: () otherlv_1= 'words' ( (lv_count_2_0= RULE_INT ) )? |
| { |
| // InternalEntityMockDSL.g:2733:3: () |
| // InternalEntityMockDSL.g:2734: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:2744:3: ( (lv_count_2_0= RULE_INT ) )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==RULE_INT) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalEntityMockDSL.g:2745:4: (lv_count_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2745:4: (lv_count_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2746: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:2766: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:2766:74: (iv_rulePropertyFillerUnsignedDoubleRange= rulePropertyFillerUnsignedDoubleRange EOF ) |
| // InternalEntityMockDSL.g:2767: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:2773: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:2779: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:2780: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:2780: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:2781: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:2789:3: ( ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) )? |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==RULE_ID||LA48_0==RULE_INT||LA48_0==48) ) { |
| alt48=1; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalEntityMockDSL.g:2790:4: ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? otherlv_4= 'until' ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:2790:4: ( ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) | ( (otherlv_3= RULE_ID ) ) )? |
| int alt46=3; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==RULE_INT) ) { |
| alt46=1; |
| } |
| else if ( (LA46_0==RULE_ID) ) { |
| alt46=2; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalEntityMockDSL.g:2791:5: ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2791:5: ( (lv_beginRange_2_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2792:6: (lv_beginRange_2_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2792:6: (lv_beginRange_2_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2793: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:2811:5: ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2811:5: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2812:6: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2812:6: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:2813: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:2829:4: ( ( (lv_endRange_5_0= ruleUnsignedNumber ) ) | ( (otherlv_6= RULE_ID ) ) ) |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( (LA47_0==RULE_INT) ) { |
| alt47=1; |
| } |
| else if ( (LA47_0==RULE_ID) ) { |
| alt47=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 47, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt47) { |
| case 1 : |
| // InternalEntityMockDSL.g:2830:5: ( (lv_endRange_5_0= ruleUnsignedNumber ) ) |
| { |
| // InternalEntityMockDSL.g:2830:5: ( (lv_endRange_5_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2831:6: (lv_endRange_5_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2831:6: (lv_endRange_5_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2832: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:2850:5: ( (otherlv_6= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:2850:5: ( (otherlv_6= RULE_ID ) ) |
| // InternalEntityMockDSL.g:2851:6: (otherlv_6= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:2851:6: (otherlv_6= RULE_ID ) |
| // InternalEntityMockDSL.g:2852: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:2869:3: ( (lv_decimals_8_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:2870:4: (lv_decimals_8_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:2870:4: (lv_decimals_8_0= RULE_INT ) |
| // InternalEntityMockDSL.g:2871: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:2891:3: (otherlv_10= 'roundTo' ( (lv_rounded_11_0= ruleUnsignedNumber ) ) )? |
| int alt49=2; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==51) ) { |
| alt49=1; |
| } |
| switch (alt49) { |
| case 1 : |
| // InternalEntityMockDSL.g:2892: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:2896:4: ( (lv_rounded_11_0= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:2897:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2897:5: (lv_rounded_11_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2898: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:2920: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:2920:75: (iv_rulePropertyFillerUnsignedDoubleRandom= rulePropertyFillerUnsignedDoubleRandom EOF ) |
| // InternalEntityMockDSL.g:2921: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:2927: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:2933:2: ( (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:2934:2: (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:2934:2: (otherlv_0= 'unsignedNumberPick' otherlv_1= '(' ( (lv_items_2_0= ruleUnsignedNumber ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:2935: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:2943:3: ( (lv_items_2_0= ruleUnsignedNumber ) )+ |
| int cnt50=0; |
| loop50: |
| do { |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==RULE_INT) ) { |
| alt50=1; |
| } |
| |
| |
| switch (alt50) { |
| case 1 : |
| // InternalEntityMockDSL.g:2944:4: (lv_items_2_0= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:2944:4: (lv_items_2_0= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:2945: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 ( cnt50 >= 1 ) break loop50; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(50, input); |
| throw eee; |
| } |
| cnt50++; |
| } 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:2970: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:2970:75: (iv_rulePropertyFillerUnsignedIntegerRange= rulePropertyFillerUnsignedIntegerRange EOF ) |
| // InternalEntityMockDSL.g:2971: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:2977: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:2983: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:2984: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:2984: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:2985: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:2985:3: () |
| // InternalEntityMockDSL.g:2986: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:3000: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 alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==RULE_ID||LA53_0==RULE_INT||LA53_0==48) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalEntityMockDSL.g:3001: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:3001:4: ( ( (lv_beginRange_3_0= RULE_INT ) ) | ( (otherlv_4= RULE_ID ) ) )? |
| int alt51=3; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==RULE_INT) ) { |
| alt51=1; |
| } |
| else if ( (LA51_0==RULE_ID) ) { |
| alt51=2; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalEntityMockDSL.g:3002:5: ( (lv_beginRange_3_0= RULE_INT ) ) |
| { |
| // InternalEntityMockDSL.g:3002:5: ( (lv_beginRange_3_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3003:6: (lv_beginRange_3_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3003:6: (lv_beginRange_3_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3004: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:3021:5: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:3021:5: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3022:6: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3022:6: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:3023: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:3039:4: ( ( (lv_endRange_6_0= RULE_INT ) ) | ( (otherlv_7= RULE_ID ) ) ) |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==RULE_INT) ) { |
| alt52=1; |
| } |
| else if ( (LA52_0==RULE_ID) ) { |
| alt52=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 52, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalEntityMockDSL.g:3040:5: ( (lv_endRange_6_0= RULE_INT ) ) |
| { |
| // InternalEntityMockDSL.g:3040:5: ( (lv_endRange_6_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3041:6: (lv_endRange_6_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3041:6: (lv_endRange_6_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3042: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:3059:5: ( (otherlv_7= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:3059:5: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3060:6: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3060:6: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:3061: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:3074:3: (otherlv_8= 'roundTo' ( (lv_rounded_9_0= RULE_INT ) ) )? |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==51) ) { |
| alt54=1; |
| } |
| switch (alt54) { |
| case 1 : |
| // InternalEntityMockDSL.g:3075: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:3079:4: ( (lv_rounded_9_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3080:5: (lv_rounded_9_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3080:5: (lv_rounded_9_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3081: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:3102: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:3102:76: (iv_rulePropertyFillerUnsignedIntegerRandom= rulePropertyFillerUnsignedIntegerRandom EOF ) |
| // InternalEntityMockDSL.g:3103: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:3109: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:3115:2: ( (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) ) |
| // InternalEntityMockDSL.g:3116:2: (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) |
| { |
| // InternalEntityMockDSL.g:3116:2: (otherlv_0= 'unsignedIntegerPick' otherlv_1= '(' ( (lv_items_2_0= RULE_INT ) )+ otherlv_3= ')' ) |
| // InternalEntityMockDSL.g:3117: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:3125:3: ( (lv_items_2_0= RULE_INT ) )+ |
| int cnt55=0; |
| loop55: |
| do { |
| int alt55=2; |
| int LA55_0 = input.LA(1); |
| |
| if ( (LA55_0==RULE_INT) ) { |
| alt55=1; |
| } |
| |
| |
| switch (alt55) { |
| case 1 : |
| // InternalEntityMockDSL.g:3126:4: (lv_items_2_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3126:4: (lv_items_2_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3127: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 ( cnt55 >= 1 ) break loop55; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(55, input); |
| throw eee; |
| } |
| cnt55++; |
| } 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:3151: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:3151:59: (iv_ruleEntityMockEntities= ruleEntityMockEntities EOF ) |
| // InternalEntityMockDSL.g:3152: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:3158: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:3164:2: ( ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:3165:2: ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:3165:2: ( () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:3166:3: () otherlv_1= 'entities' otherlv_2= '{' ( (lv_entities_3_0= ruleEntityMockEntity ) )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:3166:3: () |
| // InternalEntityMockDSL.g:3167: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:3181:3: ( (lv_entities_3_0= ruleEntityMockEntity ) )* |
| loop56: |
| do { |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==64) ) { |
| alt56=1; |
| } |
| |
| |
| switch (alt56) { |
| case 1 : |
| // InternalEntityMockDSL.g:3182:4: (lv_entities_3_0= ruleEntityMockEntity ) |
| { |
| // InternalEntityMockDSL.g:3182:4: (lv_entities_3_0= ruleEntityMockEntity ) |
| // InternalEntityMockDSL.g:3183: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 loop56; |
| } |
| } 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:3208: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:3208:57: (iv_ruleEntityMockEntity= ruleEntityMockEntity EOF ) |
| // InternalEntityMockDSL.g:3209: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:3215: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) ) ; |
| 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; |
| |
| EObject lv_completeYearFiller_29_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3221: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) ) ) |
| // InternalEntityMockDSL.g:3222: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:3222: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) ) |
| // InternalEntityMockDSL.g:3223: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) |
| { |
| 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:3227:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3228:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3228:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:3229: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:3249:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3250:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3250:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:3251: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:3262: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= '}' ) | ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) ) |
| int alt65=4; |
| switch ( input.LA(1) ) { |
| case 66: |
| { |
| alt65=1; |
| } |
| break; |
| case 23: |
| { |
| alt65=2; |
| } |
| break; |
| case 69: |
| { |
| alt65=3; |
| } |
| break; |
| case 70: |
| { |
| alt65=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 65, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt65) { |
| case 1 : |
| // InternalEntityMockDSL.g:3263: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:3263: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:3264: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:3268:5: ( (lv_minRows_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3269:6: (lv_minRows_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3269:6: (lv_minRows_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3270: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:3290:5: ( (lv_maxRows_7_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3291:6: (lv_maxRows_7_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3291:6: (lv_maxRows_7_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3292: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:3312:5: ( (lv_templates_9_0= ruleEntityMockTemplate ) )* |
| loop57: |
| do { |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==80) ) { |
| alt57=1; |
| } |
| |
| |
| switch (alt57) { |
| case 1 : |
| // InternalEntityMockDSL.g:3313:6: (lv_templates_9_0= ruleEntityMockTemplate ) |
| { |
| // InternalEntityMockDSL.g:3313:6: (lv_templates_9_0= ruleEntityMockTemplate ) |
| // InternalEntityMockDSL.g:3314: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 loop57; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3331:5: ( (lv_attributes_10_0= ruleIEntityMockAttribute ) )* |
| loop58: |
| do { |
| int alt58=2; |
| int LA58_0 = input.LA(1); |
| |
| if ( (LA58_0==31) ) { |
| int LA58_1 = input.LA(2); |
| |
| if ( (LA58_1==RULE_ID) ) { |
| int LA58_4 = input.LA(3); |
| |
| if ( (LA58_4==41||LA58_4==79) ) { |
| alt58=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( ((LA58_0>=83 && LA58_0<=84)) ) { |
| alt58=1; |
| } |
| |
| |
| switch (alt58) { |
| case 1 : |
| // InternalEntityMockDSL.g:3332:6: (lv_attributes_10_0= ruleIEntityMockAttribute ) |
| { |
| // InternalEntityMockDSL.g:3332:6: (lv_attributes_10_0= ruleIEntityMockAttribute ) |
| // InternalEntityMockDSL.g:3333: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 loop58; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3350:5: ( (lv_calculations_11_0= ruleEntityMockEntityFunction ) )* |
| loop59: |
| do { |
| int alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==31) ) { |
| alt59=1; |
| } |
| |
| |
| switch (alt59) { |
| case 1 : |
| // InternalEntityMockDSL.g:3351:6: (lv_calculations_11_0= ruleEntityMockEntityFunction ) |
| { |
| // InternalEntityMockDSL.g:3351:6: (lv_calculations_11_0= ruleEntityMockEntityFunction ) |
| // InternalEntityMockDSL.g:3352: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 loop59; |
| } |
| } 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:3375:4: (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) |
| { |
| // InternalEntityMockDSL.g:3375:4: (otherlv_13= 'resource' ( (otherlv_14= RULE_ID ) ) otherlv_15= '{' ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) otherlv_19= '}' ) |
| // InternalEntityMockDSL.g:3376: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:3380:5: ( (otherlv_14= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3381:6: (otherlv_14= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3381:6: (otherlv_14= RULE_ID ) |
| // InternalEntityMockDSL.g:3382: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:3397:5: ( ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) ) |
| // InternalEntityMockDSL.g:3398:6: ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) |
| { |
| // InternalEntityMockDSL.g:3398:6: ( ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) ) |
| // InternalEntityMockDSL.g:3399:7: ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| // InternalEntityMockDSL.g:3402:7: ( ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* ) |
| // InternalEntityMockDSL.g:3403:8: ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* |
| { |
| // InternalEntityMockDSL.g:3403:8: ( ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) | ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) )* |
| loop61: |
| do { |
| int alt61=3; |
| int LA61_0 = input.LA(1); |
| |
| if ( LA61_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0) ) { |
| alt61=1; |
| } |
| else if ( LA61_0 == 68 && getUnorderedGroupHelper().canSelect(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1) ) { |
| alt61=2; |
| } |
| |
| |
| switch (alt61) { |
| case 1 : |
| // InternalEntityMockDSL.g:3404:6: ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) |
| { |
| // InternalEntityMockDSL.g:3404:6: ({...}? => ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) ) |
| // InternalEntityMockDSL.g:3405: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:3405:119: ( ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ ) |
| // InternalEntityMockDSL.g:3406:8: ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 0); |
| // InternalEntityMockDSL.g:3409:11: ({...}? => ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) )+ |
| int cnt60=0; |
| loop60: |
| do { |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==31) ) { |
| int LA60_2 = input.LA(2); |
| |
| if ( ((true)) ) { |
| alt60=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt60) { |
| case 1 : |
| // InternalEntityMockDSL.g:3409: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:3409:21: ( (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) ) |
| // InternalEntityMockDSL.g:3409:22: (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) |
| { |
| // InternalEntityMockDSL.g:3409:22: (lv_byResourceAttributes_17_0= ruleEntityMockByResourceAttribute ) |
| // InternalEntityMockDSL.g:3410: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 ( cnt60 >= 1 ) break loop60; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(60, input); |
| throw eee; |
| } |
| cnt60++; |
| } while (true); |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:3432:6: ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:3432:6: ({...}? => ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) ) |
| // InternalEntityMockDSL.g:3433: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:3433:119: ( ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) ) |
| // InternalEntityMockDSL.g:3434:8: ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getEntityMockEntityAccess().getUnorderedGroup_4_1_3(), 1); |
| // InternalEntityMockDSL.g:3437:11: ({...}? => ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) ) |
| // InternalEntityMockDSL.g:3437: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:3437:21: ( (lv_createBlobMapping_18_0= 'createBlobMapping' ) ) |
| // InternalEntityMockDSL.g:3437:22: (lv_createBlobMapping_18_0= 'createBlobMapping' ) |
| { |
| // InternalEntityMockDSL.g:3437:22: (lv_createBlobMapping_18_0= 'createBlobMapping' ) |
| // InternalEntityMockDSL.g:3438: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 loop61; |
| } |
| } 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:3468: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:3468: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:3469: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:3473:5: ( (otherlv_21= RULE_ID ) ) |
| // InternalEntityMockDSL.g:3474:6: (otherlv_21= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:3474:6: (otherlv_21= RULE_ID ) |
| // InternalEntityMockDSL.g:3475: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:3490:5: ( (lv_iterate_23_0= ruleIIterate ) ) |
| // InternalEntityMockDSL.g:3491:6: (lv_iterate_23_0= ruleIIterate ) |
| { |
| // InternalEntityMockDSL.g:3491:6: (lv_iterate_23_0= ruleIIterate ) |
| // InternalEntityMockDSL.g:3492: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:3513:5: ( (lv_templates_25_0= ruleEntityMockTemplate ) )* |
| loop62: |
| do { |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==80) ) { |
| alt62=1; |
| } |
| |
| |
| switch (alt62) { |
| case 1 : |
| // InternalEntityMockDSL.g:3514:6: (lv_templates_25_0= ruleEntityMockTemplate ) |
| { |
| // InternalEntityMockDSL.g:3514:6: (lv_templates_25_0= ruleEntityMockTemplate ) |
| // InternalEntityMockDSL.g:3515: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 loop62; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3532:5: ( (lv_attributes_26_0= ruleIEntityMockAttribute ) )* |
| loop63: |
| do { |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==31) ) { |
| int LA63_1 = input.LA(2); |
| |
| if ( (LA63_1==RULE_ID) ) { |
| int LA63_4 = input.LA(3); |
| |
| if ( (LA63_4==41||LA63_4==79) ) { |
| alt63=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( ((LA63_0>=83 && LA63_0<=84)) ) { |
| alt63=1; |
| } |
| |
| |
| switch (alt63) { |
| case 1 : |
| // InternalEntityMockDSL.g:3533:6: (lv_attributes_26_0= ruleIEntityMockAttribute ) |
| { |
| // InternalEntityMockDSL.g:3533:6: (lv_attributes_26_0= ruleIEntityMockAttribute ) |
| // InternalEntityMockDSL.g:3534: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 loop63; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:3551:5: ( (lv_calculations_27_0= ruleEntityMockEntityFunction ) )* |
| loop64: |
| do { |
| int alt64=2; |
| int LA64_0 = input.LA(1); |
| |
| if ( (LA64_0==31) ) { |
| alt64=1; |
| } |
| |
| |
| switch (alt64) { |
| case 1 : |
| // InternalEntityMockDSL.g:3552:6: (lv_calculations_27_0= ruleEntityMockEntityFunction ) |
| { |
| // InternalEntityMockDSL.g:3552:6: (lv_calculations_27_0= ruleEntityMockEntityFunction ) |
| // InternalEntityMockDSL.g:3553: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 loop64; |
| } |
| } 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; |
| case 4 : |
| // InternalEntityMockDSL.g:3576:4: ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) |
| { |
| // InternalEntityMockDSL.g:3576:4: ( (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) ) |
| // InternalEntityMockDSL.g:3577:5: (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) |
| { |
| // InternalEntityMockDSL.g:3577:5: (lv_completeYearFiller_29_0= ruleCompleteYearFiller ) |
| // InternalEntityMockDSL.g:3578:6: lv_completeYearFiller_29_0= ruleCompleteYearFiller |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEntityMockEntityAccess().getCompleteYearFillerCompleteYearFillerParserRuleCall_4_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_completeYearFiller_29_0=ruleCompleteYearFiller(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEntityMockEntityRule()); |
| } |
| set( |
| current, |
| "completeYearFiller", |
| lv_completeYearFiller_29_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.CompleteYearFiller"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEntityMockEntity" |
| |
| |
| // $ANTLR start "entryRuleCompleteYearFiller" |
| // InternalEntityMockDSL.g:3600:1: entryRuleCompleteYearFiller returns [EObject current=null] : iv_ruleCompleteYearFiller= ruleCompleteYearFiller EOF ; |
| public final EObject entryRuleCompleteYearFiller() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleCompleteYearFiller = null; |
| |
| |
| try { |
| // InternalEntityMockDSL.g:3600:59: (iv_ruleCompleteYearFiller= ruleCompleteYearFiller EOF ) |
| // InternalEntityMockDSL.g:3601:2: iv_ruleCompleteYearFiller= ruleCompleteYearFiller EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getCompleteYearFillerRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleCompleteYearFiller=ruleCompleteYearFiller(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleCompleteYearFiller; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleCompleteYearFiller" |
| |
| |
| // $ANTLR start "ruleCompleteYearFiller" |
| // InternalEntityMockDSL.g:3607:1: ruleCompleteYearFiller returns [EObject current=null] : (otherlv_0= 'fillTime' ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) ) ; |
| public final EObject ruleCompleteYearFiller() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| EObject lv_fillerDateType_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalEntityMockDSL.g:3613:2: ( (otherlv_0= 'fillTime' ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) ) ) |
| // InternalEntityMockDSL.g:3614:2: (otherlv_0= 'fillTime' ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) ) |
| { |
| // InternalEntityMockDSL.g:3614:2: (otherlv_0= 'fillTime' ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) ) |
| // InternalEntityMockDSL.g:3615:3: otherlv_0= 'fillTime' ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) |
| { |
| otherlv_0=(Token)match(input,70,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getCompleteYearFillerAccess().getFillTimeKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3619:3: ( (lv_fillerDateType_1_0= rulePropertyFillerDateType ) ) |
| // InternalEntityMockDSL.g:3620:4: (lv_fillerDateType_1_0= rulePropertyFillerDateType ) |
| { |
| // InternalEntityMockDSL.g:3620:4: (lv_fillerDateType_1_0= rulePropertyFillerDateType ) |
| // InternalEntityMockDSL.g:3621:5: lv_fillerDateType_1_0= rulePropertyFillerDateType |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getCompleteYearFillerAccess().getFillerDateTypePropertyFillerDateTypeParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_fillerDateType_1_0=rulePropertyFillerDateType(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getCompleteYearFillerRule()); |
| } |
| set( |
| current, |
| "fillerDateType", |
| lv_fillerDateType_1_0, |
| "org.eclipse.osbp.xtext.entitymock.EntityMockDSL.PropertyFillerDateType"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleCompleteYearFiller" |
| |
| |
| // $ANTLR start "entryRuleIIterate" |
| // InternalEntityMockDSL.g:3642: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:3642:49: (iv_ruleIIterate= ruleIIterate EOF ) |
| // InternalEntityMockDSL.g:3643: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:3649: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:3655:2: ( (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) ) |
| // InternalEntityMockDSL.g:3656:2: (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) |
| { |
| // InternalEntityMockDSL.g:3656:2: (this_IntegerIterate_0= ruleIntegerIterate | this_DateIterate_1= ruleDateIterate ) |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( (LA66_0==71) ) { |
| alt66=1; |
| } |
| else if ( (LA66_0==73) ) { |
| alt66=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 66, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalEntityMockDSL.g:3657: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:3666: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:3678: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:3678:55: (iv_ruleIntegerIterate= ruleIntegerIterate EOF ) |
| // InternalEntityMockDSL.g:3679: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:3685: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:3691: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:3692: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:3692: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:3693: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,71,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getIntegerIterateAccess().getIntegerFromKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3697:3: ( (lv_from_1_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:3698:4: (lv_from_1_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:3698:4: (lv_from_1_0= ruleSINT ) |
| // InternalEntityMockDSL.g:3699: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:3720:3: ( (lv_until_3_0= ruleSINT ) ) |
| // InternalEntityMockDSL.g:3721:4: (lv_until_3_0= ruleSINT ) |
| { |
| // InternalEntityMockDSL.g:3721:4: (lv_until_3_0= ruleSINT ) |
| // InternalEntityMockDSL.g:3722:5: lv_until_3_0= ruleSINT |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getIntegerIterateAccess().getUntilSINTParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_65); |
| 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,72,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getIntegerIterateAccess().getStepKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3743:3: ( (lv_step_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3744:4: (lv_step_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3744:4: (lv_step_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3745: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:3765: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:3765:52: (iv_ruleDateIterate= ruleDateIterate EOF ) |
| // InternalEntityMockDSL.g:3766: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:3772: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:3778: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:3779: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:3779: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:3780: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,73,FOLLOW_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getDateIterateAccess().getDateFromKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:3784:3: ( (lv_from_1_0= ruleDate ) ) |
| // InternalEntityMockDSL.g:3785:4: (lv_from_1_0= ruleDate ) |
| { |
| // InternalEntityMockDSL.g:3785:4: (lv_from_1_0= ruleDate ) |
| // InternalEntityMockDSL.g:3786: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_66); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getDateIterateAccess().getUntilKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:3807:3: ( (lv_until_3_0= ruleDate ) ) |
| // InternalEntityMockDSL.g:3808:4: (lv_until_3_0= ruleDate ) |
| { |
| // InternalEntityMockDSL.g:3808:4: (lv_until_3_0= ruleDate ) |
| // InternalEntityMockDSL.g:3809:5: lv_until_3_0= ruleDate |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getDateIterateAccess().getUntilDateParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_67); |
| 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,74,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDateIterateAccess().getEveryKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:3830:3: ( (lv_stepCount_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3831:4: (lv_stepCount_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3831:4: (lv_stepCount_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3832:5: lv_stepCount_5_0= RULE_INT |
| { |
| lv_stepCount_5_0=(Token)match(input,RULE_INT,FOLLOW_68); 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:3848:3: ( (lv_stepType_6_0= ruleEDateStepType ) ) |
| // InternalEntityMockDSL.g:3849:4: (lv_stepType_6_0= ruleEDateStepType ) |
| { |
| // InternalEntityMockDSL.g:3849:4: (lv_stepType_6_0= ruleEDateStepType ) |
| // InternalEntityMockDSL.g:3850: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:3871: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:3871:45: (iv_ruleDate= ruleDate EOF ) |
| // InternalEntityMockDSL.g:3872: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:3878: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:3884: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:3885: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:3885: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 alt67=4; |
| switch ( input.LA(1) ) { |
| case 75: |
| { |
| alt67=1; |
| } |
| break; |
| case 76: |
| { |
| alt67=2; |
| } |
| break; |
| case 77: |
| { |
| alt67=3; |
| } |
| break; |
| case RULE_INT: |
| { |
| alt67=4; |
| } |
| 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:3886:3: ( (lv_yesterday_0_0= 'yesterday' ) ) |
| { |
| // InternalEntityMockDSL.g:3886:3: ( (lv_yesterday_0_0= 'yesterday' ) ) |
| // InternalEntityMockDSL.g:3887:4: (lv_yesterday_0_0= 'yesterday' ) |
| { |
| // InternalEntityMockDSL.g:3887:4: (lv_yesterday_0_0= 'yesterday' ) |
| // InternalEntityMockDSL.g:3888:5: lv_yesterday_0_0= 'yesterday' |
| { |
| lv_yesterday_0_0=(Token)match(input,75,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:3901:3: ( (lv_today_1_0= 'today' ) ) |
| { |
| // InternalEntityMockDSL.g:3901:3: ( (lv_today_1_0= 'today' ) ) |
| // InternalEntityMockDSL.g:3902:4: (lv_today_1_0= 'today' ) |
| { |
| // InternalEntityMockDSL.g:3902:4: (lv_today_1_0= 'today' ) |
| // InternalEntityMockDSL.g:3903:5: lv_today_1_0= 'today' |
| { |
| lv_today_1_0=(Token)match(input,76,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:3916:3: ( (lv_tomorrow_2_0= 'tomorrow' ) ) |
| { |
| // InternalEntityMockDSL.g:3916:3: ( (lv_tomorrow_2_0= 'tomorrow' ) ) |
| // InternalEntityMockDSL.g:3917:4: (lv_tomorrow_2_0= 'tomorrow' ) |
| { |
| // InternalEntityMockDSL.g:3917:4: (lv_tomorrow_2_0= 'tomorrow' ) |
| // InternalEntityMockDSL.g:3918:5: lv_tomorrow_2_0= 'tomorrow' |
| { |
| lv_tomorrow_2_0=(Token)match(input,77,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:3931: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:3931: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:3932: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:3932:4: ( (lv_year_3_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3933:5: (lv_year_3_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3933:5: (lv_year_3_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3934:6: lv_year_3_0= RULE_INT |
| { |
| lv_year_3_0=(Token)match(input,RULE_INT,FOLLOW_69); 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,78,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getDateAccess().getHyphenMinusKeyword_3_1()); |
| |
| } |
| // InternalEntityMockDSL.g:3954:4: ( (lv_month_5_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3955:5: (lv_month_5_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3955:5: (lv_month_5_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3956:6: lv_month_5_0= RULE_INT |
| { |
| lv_month_5_0=(Token)match(input,RULE_INT,FOLLOW_69); 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,78,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getDateAccess().getHyphenMinusKeyword_3_3()); |
| |
| } |
| // InternalEntityMockDSL.g:3976:4: ( (lv_day_7_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:3977:5: (lv_day_7_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:3977:5: (lv_day_7_0= RULE_INT ) |
| // InternalEntityMockDSL.g:3978: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:3999: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:3999:70: (iv_ruleEntityMockByResourceAttribute= ruleEntityMockByResourceAttribute EOF ) |
| // InternalEntityMockDSL.g:4000: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:4006: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:4012:2: ( ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4013:2: ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4013:2: ( () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4014:3: () otherlv_1= 'var' ( (otherlv_2= RULE_ID ) ) otherlv_3= 'as' ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4014:3: () |
| // InternalEntityMockDSL.g:4015: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:4025:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4026:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4026:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:4027:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockByResourceAttributeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockByResourceAttributeAccess().getAttributeRefLEntityAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,79,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockByResourceAttributeAccess().getAsKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:4042:3: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4043:4: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4043:4: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:4044: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:4059: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:4059:59: (iv_ruleEntityMockTemplate= ruleEntityMockTemplate EOF ) |
| // InternalEntityMockDSL.g:4060: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:4066: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:4072:2: ( (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4073:2: (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4073:2: (otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4074:3: otherlv_0= 'template' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'byObject' ( (otherlv_3= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,80,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockTemplateAccess().getTemplateKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4078:3: ( (lv_name_1_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4079:4: (lv_name_1_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4079:4: (lv_name_1_0= RULE_ID ) |
| // InternalEntityMockDSL.g:4080:5: lv_name_1_0= RULE_ID |
| { |
| lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_71); 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,81,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockTemplateAccess().getByObjectKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4100:3: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4101:4: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4101:4: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:4102: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:4117: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:4117:61: (iv_ruleIEntityMockAttribute= ruleIEntityMockAttribute EOF ) |
| // InternalEntityMockDSL.g:4118: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:4124: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:4130:2: ( (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) ) |
| // InternalEntityMockDSL.g:4131:2: (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) |
| { |
| // InternalEntityMockDSL.g:4131:2: (this_EntityMockAttributeByObject_0= ruleEntityMockAttributeByObject | this_EntityMockAttributeFiller_1= ruleEntityMockAttributeFiller | this_EntityMockAttributeByReference_2= ruleEntityMockAttributeByReference ) |
| int alt68=3; |
| switch ( input.LA(1) ) { |
| case 31: |
| { |
| int LA68_1 = input.LA(2); |
| |
| if ( (LA68_1==RULE_ID) ) { |
| int LA68_4 = input.LA(3); |
| |
| if ( (LA68_4==41) ) { |
| alt68=2; |
| } |
| else if ( (LA68_4==79) ) { |
| alt68=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 4, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 83: |
| { |
| alt68=1; |
| } |
| break; |
| case 84: |
| { |
| alt68=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt68) { |
| case 1 : |
| // InternalEntityMockDSL.g:4132: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:4141: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:4150: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:4162: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:4162:65: (iv_ruleEntityMockEntityFunction= ruleEntityMockEntityFunction EOF ) |
| // InternalEntityMockDSL.g:4163: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:4169: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:4175: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:4176: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:4176: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:4177: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:4181:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4182:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4182:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4183:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityFunctionRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockEntityFunctionAccess().getAttributeRefLEntityAttributeCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,82,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:4202:3: ( ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* )? |
| int alt70=2; |
| int LA70_0 = input.LA(1); |
| |
| if ( (LA70_0==RULE_ID) ) { |
| alt70=1; |
| } |
| switch (alt70) { |
| case 1 : |
| // InternalEntityMockDSL.g:4203:4: ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:4203:4: ( (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) ) |
| // InternalEntityMockDSL.g:4204:5: (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:4204:5: (lv_params_4_0= ruleEntityMockEntityFunctionParameter ) |
| // InternalEntityMockDSL.g:4205: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:4222:4: (otherlv_5= ',' ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) )* |
| loop69: |
| do { |
| int alt69=2; |
| int LA69_0 = input.LA(1); |
| |
| if ( (LA69_0==26) ) { |
| alt69=1; |
| } |
| |
| |
| switch (alt69) { |
| case 1 : |
| // InternalEntityMockDSL.g:4223: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:4227:5: ( (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) ) |
| // InternalEntityMockDSL.g:4228:6: (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) |
| { |
| // InternalEntityMockDSL.g:4228:6: (lv_params_6_0= ruleEntityMockEntityFunctionParameter ) |
| // InternalEntityMockDSL.g:4229: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 loop69; |
| } |
| } 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:4252:3: ( (lv_body_8_0= ruleXBlockExpression ) ) |
| // InternalEntityMockDSL.g:4253:4: (lv_body_8_0= ruleXBlockExpression ) |
| { |
| // InternalEntityMockDSL.g:4253:4: (lv_body_8_0= ruleXBlockExpression ) |
| // InternalEntityMockDSL.g:4254: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:4275: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:4275:74: (iv_ruleEntityMockEntityFunctionParameter= ruleEntityMockEntityFunctionParameter EOF ) |
| // InternalEntityMockDSL.g:4276: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:4282: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:4288:2: ( ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) ) |
| // InternalEntityMockDSL.g:4289:2: ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) |
| { |
| // InternalEntityMockDSL.g:4289:2: ( ( (otherlv_0= RULE_ID ) ) | ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) ) |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==RULE_ID) ) { |
| int LA71_1 = input.LA(2); |
| |
| if ( (LA71_1==34) ) { |
| alt71=2; |
| } |
| else if ( (LA71_1==EOF||(LA71_1>=26 && LA71_1<=27)) ) { |
| alt71=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 71, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 71, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalEntityMockDSL.g:4290:3: ( (otherlv_0= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4290:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4291:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4291:4: (otherlv_0= RULE_ID ) |
| // InternalEntityMockDSL.g:4292: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:4304:3: ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) |
| { |
| // InternalEntityMockDSL.g:4304:3: ( (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) ) |
| // InternalEntityMockDSL.g:4305:4: (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) |
| { |
| // InternalEntityMockDSL.g:4305:4: (lv_nestedAttribute_1_0= ruleEntityMockEntityNestedAttribute ) |
| // InternalEntityMockDSL.g:4306: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:4327: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:4327:72: (iv_ruleEntityMockEntityNestedAttribute= ruleEntityMockEntityNestedAttribute EOF ) |
| // InternalEntityMockDSL.g:4328: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:4334: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:4340:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4341:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4341:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4342:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4342:3: ( (otherlv_0= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4343:4: (otherlv_0= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4343:4: (otherlv_0= RULE_ID ) |
| // InternalEntityMockDSL.g:4344:5: otherlv_0= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockEntityNestedAttributeRule()); |
| } |
| |
| } |
| otherlv_0=(Token)match(input,RULE_ID,FOLLOW_73); 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:4359:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4360:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4360:4: (otherlv_2= RULE_ID ) |
| // InternalEntityMockDSL.g:4361: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:4376: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:4376:76: (iv_ruleEntityMockReferencedObjectAttribute= ruleEntityMockReferencedObjectAttribute EOF ) |
| // InternalEntityMockDSL.g:4377: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:4383: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:4389:2: ( ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) ) |
| // InternalEntityMockDSL.g:4390:2: ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4390:2: ( () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4391:3: () ( (otherlv_1= RULE_ID ) ) ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* otherlv_4= '.' ( (otherlv_5= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4391:3: () |
| // InternalEntityMockDSL.g:4392:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEntityMockReferencedObjectAttributeAccess().getEntityMockReferencedObjectAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:4398:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4399:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4399:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4400:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getTemplateEntityMockTemplateCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4411:3: ( (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) )* |
| loop73: |
| do { |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==34) ) { |
| int LA73_1 = input.LA(2); |
| |
| if ( (LA73_1==RULE_ID) ) { |
| int LA73_3 = input.LA(3); |
| |
| if ( (LA73_3==RULE_ID||LA73_3==34) ) { |
| alt73=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| else if ( (LA73_0==RULE_ID) ) { |
| alt73=1; |
| } |
| |
| |
| switch (alt73) { |
| case 1 : |
| // InternalEntityMockDSL.g:4412:4: (otherlv_2= '.' )? ( (otherlv_3= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4412:4: (otherlv_2= '.' )? |
| int alt72=2; |
| int LA72_0 = input.LA(1); |
| |
| if ( (LA72_0==34) ) { |
| alt72=1; |
| } |
| switch (alt72) { |
| case 1 : |
| // InternalEntityMockDSL.g:4413: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:4418:4: ( (otherlv_3= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4419:5: (otherlv_3= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4419:5: (otherlv_3= RULE_ID ) |
| // InternalEntityMockDSL.g:4420:6: otherlv_3= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockReferencedObjectAttributeRule()); |
| } |
| |
| } |
| otherlv_3=(Token)match(input,RULE_ID,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockReferencedObjectAttributeAccess().getEmbeddedEntityMockObjectEmbedCrossReference_2_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop73; |
| } |
| } 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:4436:3: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4437:4: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4437:4: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:4438: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:4453: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:4453:68: (iv_ruleEntityMockAttributeByObject= ruleEntityMockAttributeByObject EOF ) |
| // InternalEntityMockDSL.g:4454: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:4460: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:4466: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:4467: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:4467: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 alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==31) ) { |
| alt74=1; |
| } |
| else if ( (LA74_0==83) ) { |
| 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:4468:3: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:4468:3: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) ) |
| // InternalEntityMockDSL.g:4469: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:4473:4: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4474:5: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4474:5: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4475:6: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEntityMockAttributeByObjectAccess().getAttributeRefLEntityAttributeCrossReference_0_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4486:4: (otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) ) |
| // InternalEntityMockDSL.g:4487:5: otherlv_2= 'as' ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) |
| { |
| otherlv_2=(Token)match(input,79,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockAttributeByObjectAccess().getAsKeyword_0_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4491:5: ( (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) ) |
| // InternalEntityMockDSL.g:4492:6: (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) |
| { |
| // InternalEntityMockDSL.g:4492:6: (lv_reference_3_0= ruleEntityMockReferencedObjectAttribute ) |
| // InternalEntityMockDSL.g:4493: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:4513:3: (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4513:3: (otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) ) |
| // InternalEntityMockDSL.g:4514:4: otherlv_4= 'using' ( (otherlv_5= RULE_ID ) ) otherlv_6= '.' ( (otherlv_7= RULE_ID ) ) |
| { |
| otherlv_4=(Token)match(input,83,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockAttributeByObjectAccess().getUsingKeyword_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4518:4: ( (otherlv_5= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4519:5: (otherlv_5= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4519:5: (otherlv_5= RULE_ID ) |
| // InternalEntityMockDSL.g:4520:6: otherlv_5= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByObjectRule()); |
| } |
| |
| } |
| otherlv_5=(Token)match(input,RULE_ID,FOLLOW_73); 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:4535:4: ( (otherlv_7= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4536:5: (otherlv_7= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4536:5: (otherlv_7= RULE_ID ) |
| // InternalEntityMockDSL.g:4537: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:4553: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:4553:66: (iv_ruleEntityMockAttributeFiller= ruleEntityMockAttributeFiller EOF ) |
| // InternalEntityMockDSL.g:4554: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:4560: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:4566:2: ( (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) ) |
| // InternalEntityMockDSL.g:4567:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| { |
| // InternalEntityMockDSL.g:4567:2: (otherlv_0= 'var' ( (otherlv_1= RULE_ID ) ) otherlv_2= 'randomize' ( (lv_fillerType_3_0= rulePropertyFillerType ) ) ) |
| // InternalEntityMockDSL.g:4568: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:4572:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4573:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4573:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4574: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:4589:3: ( (lv_fillerType_3_0= rulePropertyFillerType ) ) |
| // InternalEntityMockDSL.g:4590:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| { |
| // InternalEntityMockDSL.g:4590:4: (lv_fillerType_3_0= rulePropertyFillerType ) |
| // InternalEntityMockDSL.g:4591: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:4612: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:4612:71: (iv_ruleEntityMockAttributeByReference= ruleEntityMockAttributeByReference EOF ) |
| // InternalEntityMockDSL.g:4613: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:4619: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:4625: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:4626: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:4626: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:4627: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,84,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getEntityMockAttributeByReferenceAccess().getRefKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4631:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4632:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4632:4: (otherlv_1= RULE_ID ) |
| // InternalEntityMockDSL.g:4633: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_75); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getEntityMockAttributeByReferenceAccess().getToKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:4648:3: (otherlv_3= 'existingEntities' | ( (otherlv_4= RULE_ID ) ) ) |
| int alt75=2; |
| int LA75_0 = input.LA(1); |
| |
| if ( (LA75_0==85) ) { |
| alt75=1; |
| } |
| else if ( (LA75_0==RULE_ID) ) { |
| alt75=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 75, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt75) { |
| case 1 : |
| // InternalEntityMockDSL.g:4649:4: otherlv_3= 'existingEntities' |
| { |
| otherlv_3=(Token)match(input,85,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEntityMockAttributeByReferenceAccess().getExistingEntitiesKeyword_3_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:4654:4: ( (otherlv_4= RULE_ID ) ) |
| { |
| // InternalEntityMockDSL.g:4654:4: ( (otherlv_4= RULE_ID ) ) |
| // InternalEntityMockDSL.g:4655:5: (otherlv_4= RULE_ID ) |
| { |
| // InternalEntityMockDSL.g:4655:5: (otherlv_4= RULE_ID ) |
| // InternalEntityMockDSL.g:4656:6: otherlv_4= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getEntityMockAttributeByReferenceRule()); |
| } |
| |
| } |
| otherlv_4=(Token)match(input,RULE_ID,FOLLOW_76); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEntityMockAttributeByReferenceAccess().getMockedEntityEntityMockEntityCrossReference_3_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:4668:3: (otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' )? |
| int alt76=2; |
| int LA76_0 = input.LA(1); |
| |
| if ( (LA76_0==86) ) { |
| alt76=1; |
| } |
| switch (alt76) { |
| case 1 : |
| // InternalEntityMockDSL.g:4669:4: otherlv_5= 'optionalFor' ( (lv_optionalFor_6_0= RULE_INT ) ) otherlv_7= 'percent' |
| { |
| otherlv_5=(Token)match(input,86,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getEntityMockAttributeByReferenceAccess().getOptionalForKeyword_4_0()); |
| |
| } |
| // InternalEntityMockDSL.g:4673:4: ( (lv_optionalFor_6_0= RULE_INT ) ) |
| // InternalEntityMockDSL.g:4674:5: (lv_optionalFor_6_0= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:4674:5: (lv_optionalFor_6_0= RULE_INT ) |
| // InternalEntityMockDSL.g:4675:6: lv_optionalFor_6_0= RULE_INT |
| { |
| lv_optionalFor_6_0=(Token)match(input,RULE_INT,FOLLOW_77); 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,87,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:4700: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:4700:52: (iv_ruleSignedNumber= ruleSignedNumber EOF ) |
| // InternalEntityMockDSL.g:4701: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:4707: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:4713:2: ( ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) ) |
| // InternalEntityMockDSL.g:4714:2: ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) |
| { |
| // InternalEntityMockDSL.g:4714:2: ( (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber ) |
| // InternalEntityMockDSL.g:4715:3: (kw= '-' )? this_UnsignedNumber_1= ruleUnsignedNumber |
| { |
| // InternalEntityMockDSL.g:4715:3: (kw= '-' )? |
| int alt77=2; |
| int LA77_0 = input.LA(1); |
| |
| if ( (LA77_0==78) ) { |
| alt77=1; |
| } |
| switch (alt77) { |
| case 1 : |
| // InternalEntityMockDSL.g:4716:4: kw= '-' |
| { |
| kw=(Token)match(input,78,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:4736: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:4736:54: (iv_ruleUnsignedNumber= ruleUnsignedNumber EOF ) |
| // InternalEntityMockDSL.g:4737: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:4743: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:4749:2: ( (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) ) |
| // InternalEntityMockDSL.g:4750:2: (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) |
| { |
| // InternalEntityMockDSL.g:4750:2: (this_INT_0= RULE_INT (kw= '.' this_INT_2= RULE_INT )? ) |
| // InternalEntityMockDSL.g:4751: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:4758:3: (kw= '.' this_INT_2= RULE_INT )? |
| int alt78=2; |
| int LA78_0 = input.LA(1); |
| |
| if ( (LA78_0==34) ) { |
| alt78=1; |
| } |
| switch (alt78) { |
| case 1 : |
| // InternalEntityMockDSL.g:4759: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:4776: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:4776:44: (iv_ruleSINT= ruleSINT EOF ) |
| // InternalEntityMockDSL.g:4777: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:4783: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:4789:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) |
| // InternalEntityMockDSL.g:4790:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| { |
| // InternalEntityMockDSL.g:4790:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| // InternalEntityMockDSL.g:4791:3: (kw= '-' )? this_INT_1= RULE_INT |
| { |
| // InternalEntityMockDSL.g:4791:3: (kw= '-' )? |
| int alt79=2; |
| int LA79_0 = input.LA(1); |
| |
| if ( (LA79_0==78) ) { |
| alt79=1; |
| } |
| switch (alt79) { |
| case 1 : |
| // InternalEntityMockDSL.g:4792:4: kw= '-' |
| { |
| kw=(Token)match(input,78,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:4809: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:4809:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalEntityMockDSL.g:4810: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:4816: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:4822: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:4823: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:4823: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:4824: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:4824:3: () |
| // InternalEntityMockDSL.g:4825:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,88,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:4835: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 alt82=4; |
| alt82 = dfa82.predict(input); |
| switch (alt82) { |
| case 1 : |
| // InternalEntityMockDSL.g:4836:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:4836:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:4837:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:4837:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalEntityMockDSL.g:4838:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalEntityMockDSL.g:4838:6: (lv_static_2_0= 'static' ) |
| // InternalEntityMockDSL.g:4839:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,89,FOLLOW_79); 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:4851:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==90) ) { |
| alt80=1; |
| } |
| switch (alt80) { |
| case 1 : |
| // InternalEntityMockDSL.g:4852:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalEntityMockDSL.g:4852:6: (lv_extension_3_0= 'extension' ) |
| // InternalEntityMockDSL.g:4853:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,90,FOLLOW_79); 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:4865:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalEntityMockDSL.g:4866:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalEntityMockDSL.g:4866:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalEntityMockDSL.g:4867: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_80); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:4881:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt81=2; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==91) ) { |
| alt81=1; |
| } |
| else if ( (LA81_0==RULE_ID) ) { |
| alt81=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt81) { |
| case 1 : |
| // InternalEntityMockDSL.g:4882:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalEntityMockDSL.g:4882:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalEntityMockDSL.g:4883:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalEntityMockDSL.g:4883:7: (lv_wildcard_5_0= '*' ) |
| // InternalEntityMockDSL.g:4884:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,91,FOLLOW_81); 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:4897:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:4897:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:4898:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:4898:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalEntityMockDSL.g:4899:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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:4919:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalEntityMockDSL.g:4919:4: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:4920:5: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:4920:5: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:4921: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_81); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:4936:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalEntityMockDSL.g:4936:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalEntityMockDSL.g:4937:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalEntityMockDSL.g:4937:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalEntityMockDSL.g:4938:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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:4956:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalEntityMockDSL.g:4956:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalEntityMockDSL.g:4957:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalEntityMockDSL.g:4957:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalEntityMockDSL.g:4958:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalEntityMockDSL.g:4958:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalEntityMockDSL.g:4959:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,92,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:4971:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:4972:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:4972:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalEntityMockDSL.g:4973:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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:4992:3: (otherlv_11= ';' )? |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==93) ) { |
| alt83=1; |
| } |
| switch (alt83) { |
| case 1 : |
| // InternalEntityMockDSL.g:4993:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,93,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:5002: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:5002:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalEntityMockDSL.g:5003: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:5009: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:5015: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:5016: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:5016: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:5017: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:5017:3: () |
| // InternalEntityMockDSL.g:5018:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,94,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:5028:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:5029:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:5029:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:5030: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:5044: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 alt86=2; |
| int LA86_0 = input.LA(1); |
| |
| if ( (LA86_0==25) && (synpred1_InternalEntityMockDSL())) { |
| alt86=1; |
| } |
| switch (alt86) { |
| case 1 : |
| // InternalEntityMockDSL.g:5045: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:5045:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalEntityMockDSL.g:5046:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,25,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5052:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt85=3; |
| alt85 = dfa85.predict(input); |
| switch (alt85) { |
| case 1 : |
| // InternalEntityMockDSL.g:5053:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5053:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalEntityMockDSL.g:5054:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalEntityMockDSL.g:5054:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalEntityMockDSL.g:5055:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalEntityMockDSL.g:5064:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalEntityMockDSL.g:5065: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:5082:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop84: |
| do { |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==26) ) { |
| alt84=1; |
| } |
| |
| |
| switch (alt84) { |
| case 1 : |
| // InternalEntityMockDSL.g:5083: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:5087:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalEntityMockDSL.g:5088:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalEntityMockDSL.g:5097:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalEntityMockDSL.g:5098: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 loop84; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5118:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalEntityMockDSL.g:5118:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalEntityMockDSL.g:5119:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalEntityMockDSL.g:5119:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalEntityMockDSL.g:5120:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:5147: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:5147:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalEntityMockDSL.g:5148: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:5154: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:5160:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalEntityMockDSL.g:5161:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalEntityMockDSL.g:5161:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalEntityMockDSL.g:5162:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalEntityMockDSL.g:5162:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalEntityMockDSL.g:5163:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalEntityMockDSL.g:5172:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalEntityMockDSL.g:5173:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalEntityMockDSL.g:5173:5: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:5174:6: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:5174:6: ( ruleValidID ) |
| // InternalEntityMockDSL.g:5175: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_84); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,95,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5195:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalEntityMockDSL.g:5196:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalEntityMockDSL.g:5196:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalEntityMockDSL.g:5197: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:5218: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:5218:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalEntityMockDSL.g:5219: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:5225: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:5231: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:5232: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:5232: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 alt91=2; |
| alt91 = dfa91.predict(input); |
| switch (alt91) { |
| case 1 : |
| // InternalEntityMockDSL.g:5233:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:5233:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:5234:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:5234:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalEntityMockDSL.g:5235:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalEntityMockDSL.g:5242:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalEntityMockDSL.g:5243:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalEntityMockDSL.g:5243:6: () |
| // InternalEntityMockDSL.g:5244:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,97,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5260:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt88=2; |
| int LA88_0 = input.LA(1); |
| |
| if ( ((LA88_0>=RULE_ID && LA88_0<=RULE_DECIMAL)||LA88_0==14||LA88_0==25||LA88_0==78||(LA88_0>=88 && LA88_0<=90)||LA88_0==94||(LA88_0>=96 && LA88_0<=97)||LA88_0==104||LA88_0==120||LA88_0==124||LA88_0==130||LA88_0==132||(LA88_0>=136 && LA88_0<=138)||(LA88_0>=140 && LA88_0<=149)||LA88_0==151) ) { |
| alt88=1; |
| } |
| switch (alt88) { |
| case 1 : |
| // InternalEntityMockDSL.g:5261:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:5261:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5262:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5262:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5263:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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:5280:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop87: |
| do { |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( (LA87_0==26) ) { |
| alt87=1; |
| } |
| |
| |
| switch (alt87) { |
| case 1 : |
| // InternalEntityMockDSL.g:5281:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5285:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5286:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5286:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5287:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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 loop87; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5312:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalEntityMockDSL.g:5312:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalEntityMockDSL.g:5313:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5321:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==26) ) { |
| alt90=1; |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalEntityMockDSL.g:5322:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalEntityMockDSL.g:5322:5: () |
| // InternalEntityMockDSL.g:5323:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5329:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt89=0; |
| loop89: |
| do { |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==26) ) { |
| alt89=1; |
| } |
| |
| |
| switch (alt89) { |
| case 1 : |
| // InternalEntityMockDSL.g:5330:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5334:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5335:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5335:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5336:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_89); |
| 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 ( cnt89 >= 1 ) break loop89; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(89, input); |
| throw eee; |
| } |
| cnt89++; |
| } 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:5360: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:5360:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalEntityMockDSL.g:5361: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:5367: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:5373: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:5374: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:5374:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt94=2; |
| alt94 = dfa94.predict(input); |
| switch (alt94) { |
| case 1 : |
| // InternalEntityMockDSL.g:5375:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:5375:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:5376:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:5376:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalEntityMockDSL.g:5377:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalEntityMockDSL.g:5384:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalEntityMockDSL.g:5385:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalEntityMockDSL.g:5385:6: () |
| // InternalEntityMockDSL.g:5386:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,97,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5402:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt93=2; |
| int LA93_0 = input.LA(1); |
| |
| if ( ((LA93_0>=RULE_ID && LA93_0<=RULE_DECIMAL)||LA93_0==14||LA93_0==25||LA93_0==78||(LA93_0>=88 && LA93_0<=90)||LA93_0==94||(LA93_0>=96 && LA93_0<=97)||LA93_0==104||LA93_0==120||LA93_0==124||LA93_0==130||LA93_0==132||(LA93_0>=136 && LA93_0<=138)||(LA93_0>=140 && LA93_0<=149)||LA93_0==151) ) { |
| alt93=1; |
| } |
| switch (alt93) { |
| case 1 : |
| // InternalEntityMockDSL.g:5403:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:5403:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5404:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5404:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5405:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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:5422:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop92: |
| do { |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==26) ) { |
| alt92=1; |
| } |
| |
| |
| switch (alt92) { |
| case 1 : |
| // InternalEntityMockDSL.g:5423:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5427:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalEntityMockDSL.g:5428:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalEntityMockDSL.g:5428:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalEntityMockDSL.g:5429:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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 loop92; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5454: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:5466: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:5466:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalEntityMockDSL.g:5467: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:5473: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:5479:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:5480:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:5480:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( (LA95_0==94) ) { |
| alt95=1; |
| } |
| else if ( ((LA95_0>=RULE_ID && LA95_0<=RULE_DECIMAL)||LA95_0==14||LA95_0==25||LA95_0==78||(LA95_0>=88 && LA95_0<=90)||(LA95_0>=96 && LA95_0<=97)||LA95_0==104||LA95_0==120||LA95_0==124||LA95_0==130||LA95_0==132||(LA95_0>=136 && LA95_0<=138)||(LA95_0>=140 && LA95_0<=149)||LA95_0==151) ) { |
| alt95=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 95, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalEntityMockDSL.g:5481: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:5490: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:5502: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:5502:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalEntityMockDSL.g:5503: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:5509: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:5515:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5516: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:5527: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:5527:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalEntityMockDSL.g:5528: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:5534: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:5540:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalEntityMockDSL.g:5541:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalEntityMockDSL.g:5541:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt97=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA97_1 = input.LA(2); |
| |
| if ( (LA97_1==EOF||(LA97_1>=RULE_ID && LA97_1<=RULE_DECIMAL)||(LA97_1>=14 && LA97_1<=15)||(LA97_1>=25 && LA97_1<=27)||LA97_1==31||LA97_1==34||(LA97_1>=78 && LA97_1<=79)||(LA97_1>=88 && LA97_1<=91)||LA97_1==93||(LA97_1>=96 && LA97_1<=128)||(LA97_1>=130 && LA97_1<=152)) ) { |
| alt97=2; |
| } |
| else if ( (LA97_1==95) ) { |
| alt97=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 140: |
| { |
| int LA97_2 = input.LA(2); |
| |
| if ( (LA97_2==EOF||(LA97_2>=RULE_ID && LA97_2<=RULE_DECIMAL)||(LA97_2>=14 && LA97_2<=15)||(LA97_2>=25 && LA97_2<=27)||LA97_2==31||LA97_2==34||(LA97_2>=78 && LA97_2<=79)||(LA97_2>=88 && LA97_2<=91)||LA97_2==93||(LA97_2>=96 && LA97_2<=128)||(LA97_2>=130 && LA97_2<=152)) ) { |
| alt97=2; |
| } |
| else if ( (LA97_2==95) ) { |
| alt97=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 89: |
| { |
| int LA97_3 = input.LA(2); |
| |
| if ( (LA97_3==EOF||(LA97_3>=RULE_ID && LA97_3<=RULE_DECIMAL)||(LA97_3>=14 && LA97_3<=15)||(LA97_3>=25 && LA97_3<=27)||LA97_3==31||LA97_3==34||(LA97_3>=78 && LA97_3<=79)||(LA97_3>=88 && LA97_3<=91)||LA97_3==93||(LA97_3>=96 && LA97_3<=128)||(LA97_3>=130 && LA97_3<=152)) ) { |
| alt97=2; |
| } |
| else if ( (LA97_3==95) ) { |
| alt97=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 88: |
| { |
| int LA97_4 = input.LA(2); |
| |
| if ( (LA97_4==95) ) { |
| alt97=1; |
| } |
| else if ( (LA97_4==EOF||(LA97_4>=RULE_ID && LA97_4<=RULE_DECIMAL)||(LA97_4>=14 && LA97_4<=15)||(LA97_4>=25 && LA97_4<=27)||LA97_4==31||LA97_4==34||(LA97_4>=78 && LA97_4<=79)||(LA97_4>=88 && LA97_4<=91)||LA97_4==93||(LA97_4>=96 && LA97_4<=128)||(LA97_4>=130 && LA97_4<=152)) ) { |
| alt97=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 90: |
| { |
| int LA97_5 = input.LA(2); |
| |
| if ( (LA97_5==EOF||(LA97_5>=RULE_ID && LA97_5<=RULE_DECIMAL)||(LA97_5>=14 && LA97_5<=15)||(LA97_5>=25 && LA97_5<=27)||LA97_5==31||LA97_5==34||(LA97_5>=78 && LA97_5<=79)||(LA97_5>=88 && LA97_5<=91)||LA97_5==93||(LA97_5>=96 && LA97_5<=128)||(LA97_5>=130 && LA97_5<=152)) ) { |
| alt97=2; |
| } |
| else if ( (LA97_5==95) ) { |
| alt97=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 14: |
| case 25: |
| case 78: |
| case 96: |
| case 97: |
| case 104: |
| case 120: |
| case 124: |
| case 130: |
| case 132: |
| case 136: |
| case 137: |
| case 138: |
| case 141: |
| case 142: |
| case 143: |
| case 144: |
| case 145: |
| case 146: |
| case 147: |
| case 148: |
| case 149: |
| case 151: |
| { |
| alt97=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 97, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt97) { |
| case 1 : |
| // InternalEntityMockDSL.g:5542:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalEntityMockDSL.g:5542:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalEntityMockDSL.g:5543:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:5543:4: () |
| // InternalEntityMockDSL.g:5544:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5550:4: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:5551:5: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:5551:5: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:5552: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_84); |
| 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_85); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5573:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:5574:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:5574:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5575: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:5594:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:5594:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalEntityMockDSL.g:5595:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5603:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt96=2; |
| alt96 = dfa96.predict(input); |
| switch (alt96) { |
| case 1 : |
| // InternalEntityMockDSL.g:5604:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:5604:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalEntityMockDSL.g:5605:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalEntityMockDSL.g:5615:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalEntityMockDSL.g:5616:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalEntityMockDSL.g:5616:7: () |
| // InternalEntityMockDSL.g:5617:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5623:7: ( ( ruleOpMultiAssign ) ) |
| // InternalEntityMockDSL.g:5624:8: ( ruleOpMultiAssign ) |
| { |
| // InternalEntityMockDSL.g:5624:8: ( ruleOpMultiAssign ) |
| // InternalEntityMockDSL.g:5625: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_85); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5641:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:5642:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:5642:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:5643: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:5666: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:5666:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalEntityMockDSL.g:5667: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:5673: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:5679:2: (kw= '=' ) |
| // InternalEntityMockDSL.g:5680:2: kw= '=' |
| { |
| kw=(Token)match(input,95,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:5688: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:5688:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalEntityMockDSL.g:5689: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:5695: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:5701:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalEntityMockDSL.g:5702:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalEntityMockDSL.g:5702:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt99=7; |
| switch ( input.LA(1) ) { |
| case 99: |
| { |
| alt99=1; |
| } |
| break; |
| case 100: |
| { |
| alt99=2; |
| } |
| break; |
| case 101: |
| { |
| alt99=3; |
| } |
| break; |
| case 102: |
| { |
| alt99=4; |
| } |
| break; |
| case 103: |
| { |
| alt99=5; |
| } |
| break; |
| case 104: |
| { |
| alt99=6; |
| } |
| break; |
| case 105: |
| { |
| alt99=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 99, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt99) { |
| case 1 : |
| // InternalEntityMockDSL.g:5703: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().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:5709: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().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:5715: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().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:5721: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().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:5727:3: kw= '%=' |
| { |
| kw=(Token)match(input,103,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:5733:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalEntityMockDSL.g:5733:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalEntityMockDSL.g:5734: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().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,104,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,95,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:5751:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalEntityMockDSL.g:5751:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalEntityMockDSL.g:5752:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,105,FOLLOW_92); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:5757:4: (kw= '>' )? |
| int alt98=2; |
| int LA98_0 = input.LA(1); |
| |
| if ( (LA98_0==105) ) { |
| alt98=1; |
| } |
| switch (alt98) { |
| case 1 : |
| // InternalEntityMockDSL.g:5758:5: kw= '>' |
| { |
| kw=(Token)match(input,105,FOLLOW_93); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,106,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:5774: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:5774:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalEntityMockDSL.g:5775: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:5781: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:5787:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:5788:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5788:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalEntityMockDSL.g:5789:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5797:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop100: |
| do { |
| int alt100=2; |
| int LA100_0 = input.LA(1); |
| |
| if ( (LA100_0==107) ) { |
| int LA100_2 = input.LA(2); |
| |
| if ( (synpred8_InternalEntityMockDSL()) ) { |
| alt100=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt100) { |
| case 1 : |
| // InternalEntityMockDSL.g:5798:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalEntityMockDSL.g:5798:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalEntityMockDSL.g:5799:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalEntityMockDSL.g:5809:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalEntityMockDSL.g:5810:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalEntityMockDSL.g:5810:6: () |
| // InternalEntityMockDSL.g:5811:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5817:6: ( ( ruleOpOr ) ) |
| // InternalEntityMockDSL.g:5818:7: ( ruleOpOr ) |
| { |
| // InternalEntityMockDSL.g:5818:7: ( ruleOpOr ) |
| // InternalEntityMockDSL.g:5819: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_85); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5835:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalEntityMockDSL.g:5836:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalEntityMockDSL.g:5836:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalEntityMockDSL.g:5837:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| 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 loop100; |
| } |
| } 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:5859: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:5859:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalEntityMockDSL.g:5860: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:5866: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:5872:2: (kw= '||' ) |
| // InternalEntityMockDSL.g:5873:2: kw= '||' |
| { |
| kw=(Token)match(input,107,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:5881: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:5881:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalEntityMockDSL.g:5882: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:5888: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:5894:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:5895:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:5895:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalEntityMockDSL.g:5896:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:5904:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop101: |
| do { |
| int alt101=2; |
| int LA101_0 = input.LA(1); |
| |
| if ( (LA101_0==108) ) { |
| int LA101_2 = input.LA(2); |
| |
| if ( (synpred9_InternalEntityMockDSL()) ) { |
| alt101=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt101) { |
| case 1 : |
| // InternalEntityMockDSL.g:5905:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalEntityMockDSL.g:5905:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalEntityMockDSL.g:5906:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalEntityMockDSL.g:5916:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalEntityMockDSL.g:5917:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalEntityMockDSL.g:5917:6: () |
| // InternalEntityMockDSL.g:5918:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:5924:6: ( ( ruleOpAnd ) ) |
| // InternalEntityMockDSL.g:5925:7: ( ruleOpAnd ) |
| { |
| // InternalEntityMockDSL.g:5925:7: ( ruleOpAnd ) |
| // InternalEntityMockDSL.g:5926: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_85); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:5942:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalEntityMockDSL.g:5943:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalEntityMockDSL.g:5943:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalEntityMockDSL.g:5944:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_95); |
| 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 loop101; |
| } |
| } 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:5966: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:5966:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalEntityMockDSL.g:5967: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:5973: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:5979:2: (kw= '&&' ) |
| // InternalEntityMockDSL.g:5980:2: kw= '&&' |
| { |
| kw=(Token)match(input,108,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:5988: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:5988:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalEntityMockDSL.g:5989: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:5995: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:6001:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:6002:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6002:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalEntityMockDSL.g:6003:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6011:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop102: |
| do { |
| int alt102=2; |
| switch ( input.LA(1) ) { |
| case 109: |
| { |
| int LA102_2 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt102=1; |
| } |
| |
| |
| } |
| break; |
| case 110: |
| { |
| int LA102_3 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt102=1; |
| } |
| |
| |
| } |
| break; |
| case 111: |
| { |
| int LA102_4 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt102=1; |
| } |
| |
| |
| } |
| break; |
| case 112: |
| { |
| int LA102_5 = input.LA(2); |
| |
| if ( (synpred10_InternalEntityMockDSL()) ) { |
| alt102=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt102) { |
| case 1 : |
| // InternalEntityMockDSL.g:6012:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6012:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalEntityMockDSL.g:6013:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalEntityMockDSL.g:6023:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalEntityMockDSL.g:6024:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalEntityMockDSL.g:6024:6: () |
| // InternalEntityMockDSL.g:6025:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6031:6: ( ( ruleOpEquality ) ) |
| // InternalEntityMockDSL.g:6032:7: ( ruleOpEquality ) |
| { |
| // InternalEntityMockDSL.g:6032:7: ( ruleOpEquality ) |
| // InternalEntityMockDSL.g:6033: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_85); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6049:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalEntityMockDSL.g:6050:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalEntityMockDSL.g:6050:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalEntityMockDSL.g:6051:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_96); |
| 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 loop102; |
| } |
| } 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:6073: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:6073:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalEntityMockDSL.g:6074: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:6080: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:6086:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalEntityMockDSL.g:6087:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalEntityMockDSL.g:6087:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt103=4; |
| switch ( input.LA(1) ) { |
| case 109: |
| { |
| alt103=1; |
| } |
| break; |
| case 110: |
| { |
| alt103=2; |
| } |
| break; |
| case 111: |
| { |
| alt103=3; |
| } |
| break; |
| case 112: |
| { |
| alt103=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 103, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt103) { |
| case 1 : |
| // InternalEntityMockDSL.g:6088: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().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6094: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().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6100: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().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6106:3: kw= '!==' |
| { |
| kw=(Token)match(input,112,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:6115: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:6115:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalEntityMockDSL.g:6116: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:6122: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:6128:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalEntityMockDSL.g:6129:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6129:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalEntityMockDSL.g:6130: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_97); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6138:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop104: |
| do { |
| int alt104=3; |
| switch ( input.LA(1) ) { |
| case 104: |
| { |
| int LA104_2 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt104=2; |
| } |
| |
| |
| } |
| break; |
| case 105: |
| { |
| int LA104_3 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt104=2; |
| } |
| |
| |
| } |
| break; |
| case 113: |
| { |
| int LA104_4 = input.LA(2); |
| |
| if ( (synpred11_InternalEntityMockDSL()) ) { |
| alt104=1; |
| } |
| |
| |
| } |
| break; |
| case 106: |
| { |
| int LA104_5 = input.LA(2); |
| |
| if ( (synpred12_InternalEntityMockDSL()) ) { |
| alt104=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt104) { |
| case 1 : |
| // InternalEntityMockDSL.g:6139:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:6139:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:6140:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalEntityMockDSL.g:6140:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalEntityMockDSL.g:6141:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalEntityMockDSL.g:6147:6: ( () otherlv_2= 'instanceof' ) |
| // InternalEntityMockDSL.g:6148:7: () otherlv_2= 'instanceof' |
| { |
| // InternalEntityMockDSL.g:6148:7: () |
| // InternalEntityMockDSL.g:6149:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,113,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6161:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:6162:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:6162:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:6163:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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:6182:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:6182:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalEntityMockDSL.g:6183:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6183:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalEntityMockDSL.g:6184:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalEntityMockDSL.g:6194:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalEntityMockDSL.g:6195:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalEntityMockDSL.g:6195:7: () |
| // InternalEntityMockDSL.g:6196:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6202:7: ( ( ruleOpCompare ) ) |
| // InternalEntityMockDSL.g:6203:8: ( ruleOpCompare ) |
| { |
| // InternalEntityMockDSL.g:6203:8: ( ruleOpCompare ) |
| // InternalEntityMockDSL.g:6204: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_85); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6220:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalEntityMockDSL.g:6221:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalEntityMockDSL.g:6221:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalEntityMockDSL.g:6222:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_97); |
| 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 loop104; |
| } |
| } 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:6245: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:6245:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalEntityMockDSL.g:6246: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:6252: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:6258:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalEntityMockDSL.g:6259:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalEntityMockDSL.g:6259:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt105=4; |
| switch ( input.LA(1) ) { |
| case 106: |
| { |
| alt105=1; |
| } |
| break; |
| case 104: |
| { |
| int LA105_2 = input.LA(2); |
| |
| if ( (LA105_2==EOF||(LA105_2>=RULE_ID && LA105_2<=RULE_DECIMAL)||LA105_2==14||LA105_2==25||LA105_2==78||(LA105_2>=88 && LA105_2<=90)||(LA105_2>=96 && LA105_2<=97)||LA105_2==104||LA105_2==120||LA105_2==124||LA105_2==130||LA105_2==132||(LA105_2>=136 && LA105_2<=138)||(LA105_2>=140 && LA105_2<=149)||LA105_2==151) ) { |
| alt105=4; |
| } |
| else if ( (LA105_2==95) ) { |
| alt105=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 105, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 105: |
| { |
| alt105=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 105, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt105) { |
| case 1 : |
| // InternalEntityMockDSL.g:6260:3: kw= '>=' |
| { |
| kw=(Token)match(input,106,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:6266:3: (kw= '<' kw= '=' ) |
| { |
| // InternalEntityMockDSL.g:6266:3: (kw= '<' kw= '=' ) |
| // InternalEntityMockDSL.g:6267:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,104,FOLLOW_84); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,95,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:6279: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().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6285: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().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:6294: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:6294:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalEntityMockDSL.g:6295: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:6301: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:6307:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:6308:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6308:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalEntityMockDSL.g:6309:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6317:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop106: |
| do { |
| int alt106=2; |
| alt106 = dfa106.predict(input); |
| switch (alt106) { |
| case 1 : |
| // InternalEntityMockDSL.g:6318:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6318:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalEntityMockDSL.g:6319:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalEntityMockDSL.g:6329:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalEntityMockDSL.g:6330:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalEntityMockDSL.g:6330:6: () |
| // InternalEntityMockDSL.g:6331:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6337:6: ( ( ruleOpOther ) ) |
| // InternalEntityMockDSL.g:6338:7: ( ruleOpOther ) |
| { |
| // InternalEntityMockDSL.g:6338:7: ( ruleOpOther ) |
| // InternalEntityMockDSL.g:6339: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_85); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6355:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalEntityMockDSL.g:6356:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalEntityMockDSL.g:6356:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalEntityMockDSL.g:6357:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop106; |
| } |
| } 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:6379: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:6379:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalEntityMockDSL.g:6380: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:6386: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:6392:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalEntityMockDSL.g:6393:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalEntityMockDSL.g:6393:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt109=9; |
| alt109 = dfa109.predict(input); |
| switch (alt109) { |
| case 1 : |
| // InternalEntityMockDSL.g:6394: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().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:6400: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().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6406:3: (kw= '>' kw= '..' ) |
| { |
| // InternalEntityMockDSL.g:6406:3: (kw= '>' kw= '..' ) |
| // InternalEntityMockDSL.g:6407:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,105,FOLLOW_99); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,116,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:6419: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().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalEntityMockDSL.g:6425: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().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalEntityMockDSL.g:6431:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalEntityMockDSL.g:6431:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalEntityMockDSL.g:6432:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,105,FOLLOW_100); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalEntityMockDSL.g:6437:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( (LA107_0==105) ) { |
| int LA107_1 = input.LA(2); |
| |
| if ( (LA107_1==EOF||(LA107_1>=RULE_ID && LA107_1<=RULE_DECIMAL)||LA107_1==14||LA107_1==25||LA107_1==78||(LA107_1>=88 && LA107_1<=90)||(LA107_1>=96 && LA107_1<=97)||LA107_1==104||LA107_1==120||LA107_1==124||LA107_1==130||LA107_1==132||(LA107_1>=136 && LA107_1<=138)||(LA107_1>=140 && LA107_1<=149)||LA107_1==151) ) { |
| alt107=2; |
| } |
| else if ( (LA107_1==105) && (synpred14_InternalEntityMockDSL())) { |
| alt107=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 107, 1, input); |
| |
| throw nvae; |
| } |
| } |
| 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:6438:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalEntityMockDSL.g:6438:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalEntityMockDSL.g:6439:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalEntityMockDSL.g:6444:6: (kw= '>' kw= '>' ) |
| // InternalEntityMockDSL.g:6445:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,105,FOLLOW_100); 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,105,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:6458:5: kw= '>' |
| { |
| kw=(Token)match(input,105,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:6466:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalEntityMockDSL.g:6466:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalEntityMockDSL.g:6467:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,104,FOLLOW_101); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalEntityMockDSL.g:6472:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt108=3; |
| int LA108_0 = input.LA(1); |
| |
| if ( (LA108_0==104) ) { |
| int LA108_1 = input.LA(2); |
| |
| if ( (synpred15_InternalEntityMockDSL()) ) { |
| alt108=1; |
| } |
| else if ( (true) ) { |
| alt108=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA108_0==117) ) { |
| alt108=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 108, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt108) { |
| case 1 : |
| // InternalEntityMockDSL.g:6473:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalEntityMockDSL.g:6473:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalEntityMockDSL.g:6474:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalEntityMockDSL.g:6479:6: (kw= '<' kw= '<' ) |
| // InternalEntityMockDSL.g:6480:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,104,FOLLOW_91); 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,104,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:6493: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().getLessThanSignKeyword_6_1_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6499:5: kw= '=>' |
| { |
| kw=(Token)match(input,117,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:6507: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().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalEntityMockDSL.g:6513:3: kw= '?:' |
| { |
| kw=(Token)match(input,119,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:6522: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:6522:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalEntityMockDSL.g:6523: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:6529: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:6535:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalEntityMockDSL.g:6536:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6536:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalEntityMockDSL.g:6537:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6545:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop110: |
| do { |
| int alt110=2; |
| int LA110_0 = input.LA(1); |
| |
| if ( (LA110_0==120) ) { |
| int LA110_2 = input.LA(2); |
| |
| if ( (synpred16_InternalEntityMockDSL()) ) { |
| alt110=1; |
| } |
| |
| |
| } |
| else if ( (LA110_0==78) ) { |
| int LA110_3 = input.LA(2); |
| |
| if ( (synpred16_InternalEntityMockDSL()) ) { |
| alt110=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt110) { |
| case 1 : |
| // InternalEntityMockDSL.g:6546:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalEntityMockDSL.g:6546:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalEntityMockDSL.g:6547:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalEntityMockDSL.g:6557:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalEntityMockDSL.g:6558:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalEntityMockDSL.g:6558:6: () |
| // InternalEntityMockDSL.g:6559:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6565:6: ( ( ruleOpAdd ) ) |
| // InternalEntityMockDSL.g:6566:7: ( ruleOpAdd ) |
| { |
| // InternalEntityMockDSL.g:6566:7: ( ruleOpAdd ) |
| // InternalEntityMockDSL.g:6567: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_85); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6583:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalEntityMockDSL.g:6584:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalEntityMockDSL.g:6584:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalEntityMockDSL.g:6585:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_102); |
| 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 loop110; |
| } |
| } 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:6607: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:6607:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalEntityMockDSL.g:6608: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:6614: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:6620:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalEntityMockDSL.g:6621:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalEntityMockDSL.g:6621:2: (kw= '+' | kw= '-' ) |
| int alt111=2; |
| int LA111_0 = input.LA(1); |
| |
| if ( (LA111_0==120) ) { |
| alt111=1; |
| } |
| else if ( (LA111_0==78) ) { |
| alt111=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 111, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt111) { |
| case 1 : |
| // InternalEntityMockDSL.g:6622:3: kw= '+' |
| { |
| kw=(Token)match(input,120,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:6628:3: kw= '-' |
| { |
| kw=(Token)match(input,78,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:6637: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:6637:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalEntityMockDSL.g:6638: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:6644: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:6650:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalEntityMockDSL.g:6651:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6651:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalEntityMockDSL.g:6652:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6660:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop112: |
| do { |
| int alt112=2; |
| switch ( input.LA(1) ) { |
| case 91: |
| { |
| int LA112_2 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| break; |
| case 121: |
| { |
| int LA112_3 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| break; |
| case 122: |
| { |
| int LA112_4 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| break; |
| case 123: |
| { |
| int LA112_5 = input.LA(2); |
| |
| if ( (synpred17_InternalEntityMockDSL()) ) { |
| alt112=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt112) { |
| case 1 : |
| // InternalEntityMockDSL.g:6661:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalEntityMockDSL.g:6661:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalEntityMockDSL.g:6662:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalEntityMockDSL.g:6672:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalEntityMockDSL.g:6673:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalEntityMockDSL.g:6673:6: () |
| // InternalEntityMockDSL.g:6674:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6680:6: ( ( ruleOpMulti ) ) |
| // InternalEntityMockDSL.g:6681:7: ( ruleOpMulti ) |
| { |
| // InternalEntityMockDSL.g:6681:7: ( ruleOpMulti ) |
| // InternalEntityMockDSL.g:6682: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_85); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6698:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalEntityMockDSL.g:6699:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalEntityMockDSL.g:6699:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalEntityMockDSL.g:6700:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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 loop112; |
| } |
| } 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:6722: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:6722:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalEntityMockDSL.g:6723: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:6729: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:6735:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalEntityMockDSL.g:6736:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalEntityMockDSL.g:6736:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt113=4; |
| switch ( input.LA(1) ) { |
| case 91: |
| { |
| alt113=1; |
| } |
| break; |
| case 121: |
| { |
| alt113=2; |
| } |
| break; |
| case 122: |
| { |
| alt113=3; |
| } |
| break; |
| case 123: |
| { |
| alt113=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 113, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt113) { |
| case 1 : |
| // InternalEntityMockDSL.g:6737:3: kw= '*' |
| { |
| kw=(Token)match(input,91,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:6743: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().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:6749: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().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalEntityMockDSL.g:6755:3: kw= '%' |
| { |
| kw=(Token)match(input,123,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:6764: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:6764:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalEntityMockDSL.g:6765: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:6771: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:6777:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalEntityMockDSL.g:6778:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalEntityMockDSL.g:6778:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==78||LA114_0==120||LA114_0==124) ) { |
| alt114=1; |
| } |
| else if ( ((LA114_0>=RULE_ID && LA114_0<=RULE_DECIMAL)||LA114_0==14||LA114_0==25||(LA114_0>=88 && LA114_0<=90)||(LA114_0>=96 && LA114_0<=97)||LA114_0==104||LA114_0==130||LA114_0==132||(LA114_0>=136 && LA114_0<=138)||(LA114_0>=140 && LA114_0<=149)||LA114_0==151) ) { |
| alt114=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 114, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt114) { |
| case 1 : |
| // InternalEntityMockDSL.g:6779:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalEntityMockDSL.g:6779:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalEntityMockDSL.g:6780:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalEntityMockDSL.g:6780:4: () |
| // InternalEntityMockDSL.g:6781:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6787:4: ( ( ruleOpUnary ) ) |
| // InternalEntityMockDSL.g:6788:5: ( ruleOpUnary ) |
| { |
| // InternalEntityMockDSL.g:6788:5: ( ruleOpUnary ) |
| // InternalEntityMockDSL.g:6789: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_85); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6803:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalEntityMockDSL.g:6804:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalEntityMockDSL.g:6804:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalEntityMockDSL.g:6805: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:6824: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:6836: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:6836:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalEntityMockDSL.g:6837: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:6843: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:6849:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalEntityMockDSL.g:6850:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalEntityMockDSL.g:6850:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt115=3; |
| switch ( input.LA(1) ) { |
| case 124: |
| { |
| alt115=1; |
| } |
| break; |
| case 78: |
| { |
| alt115=2; |
| } |
| break; |
| case 120: |
| { |
| alt115=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 115, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt115) { |
| case 1 : |
| // InternalEntityMockDSL.g:6851:3: kw= '!' |
| { |
| kw=(Token)match(input,124,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:6857:3: kw= '-' |
| { |
| kw=(Token)match(input,78,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:6863:3: kw= '+' |
| { |
| kw=(Token)match(input,120,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:6872: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:6872:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalEntityMockDSL.g:6873: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:6879: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:6885:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalEntityMockDSL.g:6886:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:6886:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalEntityMockDSL.g:6887: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_104); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6895:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop116: |
| do { |
| int alt116=2; |
| int LA116_0 = input.LA(1); |
| |
| if ( (LA116_0==79) ) { |
| int LA116_2 = input.LA(2); |
| |
| if ( (synpred18_InternalEntityMockDSL()) ) { |
| alt116=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt116) { |
| case 1 : |
| // InternalEntityMockDSL.g:6896:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalEntityMockDSL.g:6896:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalEntityMockDSL.g:6897:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalEntityMockDSL.g:6903:5: ( () otherlv_2= 'as' ) |
| // InternalEntityMockDSL.g:6904:6: () otherlv_2= 'as' |
| { |
| // InternalEntityMockDSL.g:6904:6: () |
| // InternalEntityMockDSL.g:6905:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,79,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:6917:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:6918:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:6918:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:6919:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_104); |
| 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 loop116; |
| } |
| } 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:6941: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:6941:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalEntityMockDSL.g:6942: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:6948: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:6954:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalEntityMockDSL.g:6955:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:6955:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalEntityMockDSL.g:6956:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:6964:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt117=2; |
| int LA117_0 = input.LA(1); |
| |
| if ( (LA117_0==125) ) { |
| int LA117_1 = input.LA(2); |
| |
| if ( (synpred19_InternalEntityMockDSL()) ) { |
| alt117=1; |
| } |
| } |
| else if ( (LA117_0==126) ) { |
| int LA117_2 = input.LA(2); |
| |
| if ( (synpred19_InternalEntityMockDSL()) ) { |
| alt117=1; |
| } |
| } |
| switch (alt117) { |
| case 1 : |
| // InternalEntityMockDSL.g:6965:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalEntityMockDSL.g:6975:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalEntityMockDSL.g:6976:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalEntityMockDSL.g:6976:5: () |
| // InternalEntityMockDSL.g:6977:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:6983:5: ( ( ruleOpPostfix ) ) |
| // InternalEntityMockDSL.g:6984:6: ( ruleOpPostfix ) |
| { |
| // InternalEntityMockDSL.g:6984:6: ( ruleOpPostfix ) |
| // InternalEntityMockDSL.g:6985: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:7005: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:7005:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalEntityMockDSL.g:7006: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:7012: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:7018:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalEntityMockDSL.g:7019:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalEntityMockDSL.g:7019:2: (kw= '++' | kw= '--' ) |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==125) ) { |
| 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:7020: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().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7026:3: kw= '--' |
| { |
| kw=(Token)match(input,126,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:7035: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:7035:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalEntityMockDSL.g:7036: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:7042: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:7048: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:7049: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:7049: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:7050: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_106); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:7058: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 ) )? ) )* |
| loop127: |
| do { |
| int alt127=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| int LA127_2 = input.LA(2); |
| |
| if ( (synpred20_InternalEntityMockDSL()) ) { |
| alt127=1; |
| } |
| else if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt127=2; |
| } |
| |
| |
| } |
| break; |
| case 127: |
| { |
| int LA127_3 = input.LA(2); |
| |
| if ( (synpred20_InternalEntityMockDSL()) ) { |
| alt127=1; |
| } |
| else if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt127=2; |
| } |
| |
| |
| } |
| break; |
| case 128: |
| { |
| int LA127_4 = input.LA(2); |
| |
| if ( (synpred21_InternalEntityMockDSL()) ) { |
| alt127=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt127) { |
| case 1 : |
| // InternalEntityMockDSL.g:7059:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalEntityMockDSL.g:7059:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalEntityMockDSL.g:7060:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalEntityMockDSL.g:7060:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalEntityMockDSL.g:7061:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalEntityMockDSL.g:7081:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalEntityMockDSL.g:7082:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalEntityMockDSL.g:7082:7: () |
| // InternalEntityMockDSL.g:7083:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:7089:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==34) ) { |
| alt119=1; |
| } |
| else if ( (LA119_0==127) ) { |
| alt119=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 119, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt119) { |
| case 1 : |
| // InternalEntityMockDSL.g:7090:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,34,FOLLOW_107); 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:7095:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7095:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalEntityMockDSL.g:7096:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalEntityMockDSL.g:7096:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalEntityMockDSL.g:7097:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,127,FOLLOW_107); 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:7110:7: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:7111:8: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:7111:8: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:7112: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_84); |
| 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_85); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7135:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalEntityMockDSL.g:7136:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalEntityMockDSL.g:7136:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalEntityMockDSL.g:7137:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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:7156: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:7156: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:7157: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:7157:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalEntityMockDSL.g:7158:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:7178:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalEntityMockDSL.g:7179:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7179:7: () |
| // InternalEntityMockDSL.g:7180:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:7186:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt120=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| alt120=1; |
| } |
| break; |
| case 128: |
| { |
| alt120=2; |
| } |
| break; |
| case 127: |
| { |
| alt120=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 120, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt120) { |
| case 1 : |
| // InternalEntityMockDSL.g:7187:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,34,FOLLOW_108); 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:7192:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalEntityMockDSL.g:7192:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalEntityMockDSL.g:7193:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalEntityMockDSL.g:7193:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalEntityMockDSL.g:7194:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,128,FOLLOW_108); 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:7207:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7207:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalEntityMockDSL.g:7208:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalEntityMockDSL.g:7208:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalEntityMockDSL.g:7209:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,127,FOLLOW_108); 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:7224:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==104) ) { |
| alt122=1; |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalEntityMockDSL.g:7225:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,104,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7229:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:7230:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:7230:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:7231:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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:7248:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop121: |
| do { |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==26) ) { |
| alt121=1; |
| } |
| |
| |
| switch (alt121) { |
| case 1 : |
| // InternalEntityMockDSL.g:7249:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,26,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7253:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:7254:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:7254:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:7255:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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 loop121; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,105,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7278:5: ( ( ruleIdOrSuper ) ) |
| // InternalEntityMockDSL.g:7279:6: ( ruleIdOrSuper ) |
| { |
| // InternalEntityMockDSL.g:7279:6: ( ruleIdOrSuper ) |
| // InternalEntityMockDSL.g:7280: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_111); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7294: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 alt125=2; |
| alt125 = dfa125.predict(input); |
| switch (alt125) { |
| case 1 : |
| // InternalEntityMockDSL.g:7295: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:7295:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalEntityMockDSL.g:7296:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:7300:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalEntityMockDSL.g:7301:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,25,FOLLOW_112); 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:7313:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt124=3; |
| alt124 = dfa124.predict(input); |
| switch (alt124) { |
| case 1 : |
| // InternalEntityMockDSL.g:7314:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:7314:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:7315:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:7340:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:7341:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:7359:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:7359:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:7360:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7360:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7361:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7361:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7362: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:7379:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==26) ) { |
| alt123=1; |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalEntityMockDSL.g:7380:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7384:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7385:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7385:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7386: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 loop123; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,27,FOLLOW_113); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7411:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt126=2; |
| alt126 = dfa126.predict(input); |
| switch (alt126) { |
| case 1 : |
| // InternalEntityMockDSL.g:7412:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:7418:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:7419:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_106); |
| 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 loop127; |
| } |
| } 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:7442: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:7442:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalEntityMockDSL.g:7443: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:7449: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:7455: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:7456: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:7456: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 alt128=15; |
| alt128 = dfa128.predict(input); |
| switch (alt128) { |
| case 1 : |
| // InternalEntityMockDSL.g:7457: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:7466: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:7475: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:7484:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalEntityMockDSL.g:7484:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalEntityMockDSL.g:7485: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:7502: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:7511: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:7520: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:7529:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalEntityMockDSL.g:7529:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalEntityMockDSL.g:7530: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:7553: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:7562: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:7571: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:7580: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:7589: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:7598: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:7607: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:7619: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:7619:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalEntityMockDSL.g:7620: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:7626: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:7632: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:7633: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:7633: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 alt129=7; |
| int LA129_0 = input.LA(1); |
| |
| if ( (LA129_0==96) ) { |
| alt129=1; |
| } |
| else if ( (LA129_0==97) && (synpred27_InternalEntityMockDSL())) { |
| alt129=2; |
| } |
| else if ( ((LA129_0>=143 && LA129_0<=144)) ) { |
| alt129=3; |
| } |
| else if ( ((LA129_0>=RULE_INT && LA129_0<=RULE_DECIMAL)) ) { |
| alt129=4; |
| } |
| else if ( (LA129_0==145) ) { |
| alt129=5; |
| } |
| else if ( (LA129_0==RULE_STRING) ) { |
| alt129=6; |
| } |
| else if ( (LA129_0==146) ) { |
| alt129=7; |
| } |
| 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:7634: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:7643:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:7643:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalEntityMockDSL.g:7644: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:7660: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:7669: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:7678: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:7687: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:7696: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:7708: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:7708:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalEntityMockDSL.g:7709: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:7715: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:7721:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalEntityMockDSL.g:7722:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalEntityMockDSL.g:7722:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( (LA130_0==96) ) { |
| int LA130_1 = input.LA(2); |
| |
| if ( (LA130_1==14) ) { |
| alt130=1; |
| } |
| else if ( (LA130_1==97) ) { |
| alt130=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 130, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 130, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalEntityMockDSL.g:7723: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:7732: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:7744: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:7744:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalEntityMockDSL.g:7745: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:7751: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:7757:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalEntityMockDSL.g:7758:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalEntityMockDSL.g:7758:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalEntityMockDSL.g:7759:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalEntityMockDSL.g:7759:3: () |
| // InternalEntityMockDSL.g:7760:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,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_114); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:7774:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( ((LA132_0>=RULE_ID && LA132_0<=RULE_DECIMAL)||LA132_0==14||LA132_0==25||LA132_0==78||(LA132_0>=88 && LA132_0<=90)||(LA132_0>=96 && LA132_0<=97)||LA132_0==104||LA132_0==120||LA132_0==124||LA132_0==130||LA132_0==132||(LA132_0>=136 && LA132_0<=138)||(LA132_0>=140 && LA132_0<=149)||LA132_0==151) ) { |
| alt132=1; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalEntityMockDSL.g:7775:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7775:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7776:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7776:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7777:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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:7794:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop131: |
| do { |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==26) ) { |
| alt131=1; |
| } |
| |
| |
| switch (alt131) { |
| case 1 : |
| // InternalEntityMockDSL.g:7795:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7799:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7800:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7800:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7801:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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 loop131; |
| } |
| } 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:7828: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:7828:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalEntityMockDSL.g:7829: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:7835: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:7841:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalEntityMockDSL.g:7842:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalEntityMockDSL.g:7842:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalEntityMockDSL.g:7843:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalEntityMockDSL.g:7843:3: () |
| // InternalEntityMockDSL.g:7844:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_86); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,97,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:7858:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( ((LA134_0>=RULE_ID && LA134_0<=RULE_DECIMAL)||LA134_0==14||LA134_0==25||LA134_0==78||(LA134_0>=88 && LA134_0<=90)||(LA134_0>=96 && LA134_0<=97)||LA134_0==104||LA134_0==120||LA134_0==124||LA134_0==130||LA134_0==132||(LA134_0>=136 && LA134_0<=138)||(LA134_0>=140 && LA134_0<=149)||LA134_0==151) ) { |
| alt134=1; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalEntityMockDSL.g:7859:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:7859:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7860:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7860:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7861:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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:7878:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop133: |
| do { |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==26) ) { |
| alt133=1; |
| } |
| |
| |
| switch (alt133) { |
| case 1 : |
| // InternalEntityMockDSL.g:7879:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:7883:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:7884:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:7884:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:7885:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_88); |
| 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 loop133; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,98,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:7912: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:7912:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalEntityMockDSL.g:7913: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:7919: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:7925: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:7926: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:7926: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:7927: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:7927:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalEntityMockDSL.g:7928:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalEntityMockDSL.g:7934:4: ( () otherlv_1= '[' ) |
| // InternalEntityMockDSL.g:7935:5: () otherlv_1= '[' |
| { |
| // InternalEntityMockDSL.g:7935:5: () |
| // InternalEntityMockDSL.g:7936:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,97,FOLLOW_116); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7948:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt137=2; |
| alt137 = dfa137.predict(input); |
| switch (alt137) { |
| case 1 : |
| // InternalEntityMockDSL.g:7949:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7972:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalEntityMockDSL.g:7973:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7973:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==RULE_ID||LA136_0==25||LA136_0==117) ) { |
| alt136=1; |
| } |
| switch (alt136) { |
| case 1 : |
| // InternalEntityMockDSL.g:7974:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7974:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7975:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7975:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7976:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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:7993:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop135: |
| do { |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==26) ) { |
| alt135=1; |
| } |
| |
| |
| switch (alt135) { |
| case 1 : |
| // InternalEntityMockDSL.g:7994: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:7998:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7999:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7999:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8000:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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 loop135; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8019:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalEntityMockDSL.g:8020:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalEntityMockDSL.g:8020:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalEntityMockDSL.g:8021:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,129,FOLLOW_118); 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:8035:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalEntityMockDSL.g:8036:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalEntityMockDSL.g:8036:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalEntityMockDSL.g:8037:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| 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,98,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:8062: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:8062:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalEntityMockDSL.g:8063: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:8069: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:8075:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalEntityMockDSL.g:8076:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalEntityMockDSL.g:8076:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalEntityMockDSL.g:8077:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalEntityMockDSL.g:8077:3: () |
| // InternalEntityMockDSL.g:8078:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8084:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop139: |
| do { |
| int alt139=2; |
| int LA139_0 = input.LA(1); |
| |
| if ( ((LA139_0>=RULE_ID && LA139_0<=RULE_DECIMAL)||LA139_0==14||LA139_0==25||LA139_0==31||LA139_0==78||(LA139_0>=88 && LA139_0<=90)||(LA139_0>=96 && LA139_0<=97)||LA139_0==104||LA139_0==120||LA139_0==124||LA139_0==130||LA139_0==132||(LA139_0>=136 && LA139_0<=149)||LA139_0==151) ) { |
| alt139=1; |
| } |
| |
| |
| switch (alt139) { |
| case 1 : |
| // InternalEntityMockDSL.g:8085:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalEntityMockDSL.g:8085:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:8086:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:8086:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:8087:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_120); |
| 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:8104:4: (otherlv_2= ';' )? |
| int alt138=2; |
| int LA138_0 = input.LA(1); |
| |
| if ( (LA138_0==93) ) { |
| alt138=1; |
| } |
| switch (alt138) { |
| case 1 : |
| // InternalEntityMockDSL.g:8105:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,93,FOLLOW_121); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop139; |
| } |
| } 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:8115: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:8115:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalEntityMockDSL.g:8116: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:8122: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:8128: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:8129: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:8129: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:8130: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:8130:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalEntityMockDSL.g:8131:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:8156:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalEntityMockDSL.g:8157:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalEntityMockDSL.g:8157:5: () |
| // InternalEntityMockDSL.g:8158:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8164:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt141=2; |
| int LA141_0 = input.LA(1); |
| |
| if ( (LA141_0==RULE_ID||LA141_0==25||LA141_0==117) ) { |
| alt141=1; |
| } |
| switch (alt141) { |
| case 1 : |
| // InternalEntityMockDSL.g:8165:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:8165:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8166:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8166:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8167:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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:8184:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop140: |
| do { |
| int alt140=2; |
| int LA140_0 = input.LA(1); |
| |
| if ( (LA140_0==26) ) { |
| alt140=1; |
| } |
| |
| |
| switch (alt140) { |
| case 1 : |
| // InternalEntityMockDSL.g:8185: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:8189:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8190:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8190:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8191:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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 loop140; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8210:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalEntityMockDSL.g:8211:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalEntityMockDSL.g:8211:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalEntityMockDSL.g:8212:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,129,FOLLOW_85); 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:8226:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8227:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8227:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8228: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:8249: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:8249:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalEntityMockDSL.g:8250: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:8256: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:8262:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalEntityMockDSL.g:8263:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalEntityMockDSL.g:8263:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalEntityMockDSL.g:8264:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,25,FOLLOW_85); 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_83); |
| 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:8284: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:8284:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalEntityMockDSL.g:8285: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:8291: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:8297: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:8298: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:8298: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:8299: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:8299:3: () |
| // InternalEntityMockDSL.g:8300:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,130,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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8314:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8315:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8315:4: (lv_if_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8316:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:8337:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8338:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8338:4: (lv_then_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8339:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| 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:8356:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==131) ) { |
| int LA142_1 = input.LA(2); |
| |
| if ( (synpred31_InternalEntityMockDSL()) ) { |
| alt142=1; |
| } |
| } |
| switch (alt142) { |
| case 1 : |
| // InternalEntityMockDSL.g:8357:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8357:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalEntityMockDSL.g:8358:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,131,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8364:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8365:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8365:5: (lv_else_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8366: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:8388: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:8388:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalEntityMockDSL.g:8389: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:8395: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:8401: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:8402: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:8402: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:8403: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:8403:3: () |
| // InternalEntityMockDSL.g:8404:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,132,FOLLOW_123); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:8414: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 alt144=2; |
| alt144 = dfa144.predict(input); |
| switch (alt144) { |
| case 1 : |
| // InternalEntityMockDSL.g:8415:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalEntityMockDSL.g:8415:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalEntityMockDSL.g:8416:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalEntityMockDSL.g:8416:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalEntityMockDSL.g:8417:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalEntityMockDSL.g:8427:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalEntityMockDSL.g:8428: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:8432:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8433:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8433:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8434:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| 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,133,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8457:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8458:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8458:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8459:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:8482:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8482:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8483:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:8483:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt143=2; |
| alt143 = dfa143.predict(input); |
| switch (alt143) { |
| case 1 : |
| // InternalEntityMockDSL.g:8484:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalEntityMockDSL.g:8493:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalEntityMockDSL.g:8494:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalEntityMockDSL.g:8494:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8495:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8495:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8496:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| 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,133,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:8519:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8520:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8520:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8521: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_125); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:8544:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop145: |
| do { |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==RULE_ID||(LA145_0>=25 && LA145_0<=26)||LA145_0==117||LA145_0==133||LA145_0==135) ) { |
| alt145=1; |
| } |
| |
| |
| switch (alt145) { |
| case 1 : |
| // InternalEntityMockDSL.g:8545:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalEntityMockDSL.g:8545:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalEntityMockDSL.g:8546:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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 loop145; |
| } |
| } while (true); |
| |
| // InternalEntityMockDSL.g:8563:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt146=2; |
| int LA146_0 = input.LA(1); |
| |
| if ( (LA146_0==134) ) { |
| alt146=1; |
| } |
| switch (alt146) { |
| case 1 : |
| // InternalEntityMockDSL.g:8564:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,134,FOLLOW_124); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,133,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalEntityMockDSL.g:8572:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8573:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8573:5: (lv_default_14_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8574: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:8600: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:8600:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalEntityMockDSL.g:8601: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:8607: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:8613: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:8614: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:8614: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:8615: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:8615:3: () |
| // InternalEntityMockDSL.g:8616:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:8622:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt147=2; |
| int LA147_0 = input.LA(1); |
| |
| if ( (LA147_0==RULE_ID||LA147_0==25||LA147_0==117) ) { |
| alt147=1; |
| } |
| switch (alt147) { |
| case 1 : |
| // InternalEntityMockDSL.g:8623:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:8623:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:8624:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_126); |
| 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:8641:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt148=2; |
| int LA148_0 = input.LA(1); |
| |
| if ( (LA148_0==135) ) { |
| alt148=1; |
| } |
| switch (alt148) { |
| case 1 : |
| // InternalEntityMockDSL.g:8642:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,135,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8646:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8647:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8647:5: (lv_case_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8648:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_127); |
| 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:8666:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==133) ) { |
| alt149=1; |
| } |
| else if ( (LA149_0==26) ) { |
| alt149=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 149, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt149) { |
| case 1 : |
| // InternalEntityMockDSL.g:8667:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:8667:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:8668:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,133,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8672:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8673:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8673:6: (lv_then_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8674: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:8693:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalEntityMockDSL.g:8693:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalEntityMockDSL.g:8694:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalEntityMockDSL.g:8694:5: (lv_fallThrough_6_0= ',' ) |
| // InternalEntityMockDSL.g:8695: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:8712: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:8712:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalEntityMockDSL.g:8713: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:8719: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:8725: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:8726: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:8726: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:8727: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:8727:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalEntityMockDSL.g:8728:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalEntityMockDSL.g:8741:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalEntityMockDSL.g:8742:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalEntityMockDSL.g:8742:5: () |
| // InternalEntityMockDSL.g:8743:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,136,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:8757:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8758:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8758:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8759:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_124); |
| 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,133,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:8782:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8783:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8783:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8784:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8805:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8806:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8806:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8807: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:8828: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:8828:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalEntityMockDSL.g:8829: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:8835: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:8841: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:8842: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:8842: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:8843: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:8843:3: () |
| // InternalEntityMockDSL.g:8844:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,136,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_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:8858:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| 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==31||LA151_0==78||(LA151_0>=88 && LA151_0<=90)||(LA151_0>=96 && LA151_0<=97)||LA151_0==104||LA151_0==120||LA151_0==124||LA151_0==130||LA151_0==132||(LA151_0>=136 && LA151_0<=149)||LA151_0==151) ) { |
| alt151=1; |
| } |
| switch (alt151) { |
| case 1 : |
| // InternalEntityMockDSL.g:8859:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalEntityMockDSL.g:8859:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:8860:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:8860:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:8861:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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:8878:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop150: |
| do { |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==26) ) { |
| alt150=1; |
| } |
| |
| |
| switch (alt150) { |
| case 1 : |
| // InternalEntityMockDSL.g:8879:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,26,FOLLOW_130); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8883:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:8884:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:8884:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:8885:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_129); |
| 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 loop150; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,93,FOLLOW_131); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:8908:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( ((LA152_0>=RULE_ID && LA152_0<=RULE_DECIMAL)||LA152_0==14||LA152_0==25||LA152_0==78||(LA152_0>=88 && LA152_0<=90)||(LA152_0>=96 && LA152_0<=97)||LA152_0==104||LA152_0==120||LA152_0==124||LA152_0==130||LA152_0==132||(LA152_0>=136 && LA152_0<=138)||(LA152_0>=140 && LA152_0<=149)||LA152_0==151) ) { |
| alt152=1; |
| } |
| switch (alt152) { |
| case 1 : |
| // InternalEntityMockDSL.g:8909:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8909:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8910:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| 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,93,FOLLOW_82); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalEntityMockDSL.g:8931:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( ((LA154_0>=RULE_ID && LA154_0<=RULE_DECIMAL)||LA154_0==14||LA154_0==25||LA154_0==78||(LA154_0>=88 && LA154_0<=90)||(LA154_0>=96 && LA154_0<=97)||LA154_0==104||LA154_0==120||LA154_0==124||LA154_0==130||LA154_0==132||(LA154_0>=136 && LA154_0<=138)||(LA154_0>=140 && LA154_0<=149)||LA154_0==151) ) { |
| alt154=1; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalEntityMockDSL.g:8932:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:8932:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8933:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8933:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8934: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:8951:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop153: |
| do { |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( (LA153_0==26) ) { |
| alt153=1; |
| } |
| |
| |
| switch (alt153) { |
| case 1 : |
| // InternalEntityMockDSL.g:8952:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:8956:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8957:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8957:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8958: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 loop153; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,27,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalEntityMockDSL.g:8981:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:8982:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:8982:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:8983: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:9004: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:9004:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalEntityMockDSL.g:9005: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:9011: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:9017:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:9018:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:9018:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:9019:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:9019:3: () |
| // InternalEntityMockDSL.g:9020:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,137,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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:9034:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9035:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9035:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9036:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:9057:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9058:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9058:4: (lv_body_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9059: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:9080: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:9080:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalEntityMockDSL.g:9081: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:9087: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:9093:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalEntityMockDSL.g:9094:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalEntityMockDSL.g:9094:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalEntityMockDSL.g:9095:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalEntityMockDSL.g:9095:3: () |
| // InternalEntityMockDSL.g:9096:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,138,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9106:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9107:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9107:4: (lv_body_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9108:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_133); |
| 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,137,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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalEntityMockDSL.g:9133:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9134:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9134:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9135:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:9160: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:9160:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalEntityMockDSL.g:9161: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:9167: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:9173:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalEntityMockDSL.g:9174:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalEntityMockDSL.g:9174:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalEntityMockDSL.g:9175:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalEntityMockDSL.g:9175:3: () |
| // InternalEntityMockDSL.g:9176:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,14,FOLLOW_134); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9186:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop156: |
| do { |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( ((LA156_0>=RULE_ID && LA156_0<=RULE_DECIMAL)||LA156_0==14||LA156_0==25||LA156_0==31||LA156_0==78||(LA156_0>=88 && LA156_0<=90)||(LA156_0>=96 && LA156_0<=97)||LA156_0==104||LA156_0==120||LA156_0==124||LA156_0==130||LA156_0==132||(LA156_0>=136 && LA156_0<=149)||LA156_0==151) ) { |
| alt156=1; |
| } |
| |
| |
| switch (alt156) { |
| case 1 : |
| // InternalEntityMockDSL.g:9187:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalEntityMockDSL.g:9187:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalEntityMockDSL.g:9188:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalEntityMockDSL.g:9188:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalEntityMockDSL.g:9189:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_135); |
| 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:9206:4: (otherlv_3= ';' )? |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==93) ) { |
| alt155=1; |
| } |
| switch (alt155) { |
| case 1 : |
| // InternalEntityMockDSL.g:9207:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,93,FOLLOW_134); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop156; |
| } |
| } 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:9221: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:9221:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalEntityMockDSL.g:9222: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:9228: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:9234:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9235:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9235:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==31||LA157_0==139) ) { |
| alt157=1; |
| } |
| else if ( ((LA157_0>=RULE_ID && LA157_0<=RULE_DECIMAL)||LA157_0==14||LA157_0==25||LA157_0==78||(LA157_0>=88 && LA157_0<=90)||(LA157_0>=96 && LA157_0<=97)||LA157_0==104||LA157_0==120||LA157_0==124||LA157_0==130||LA157_0==132||(LA157_0>=136 && LA157_0<=138)||(LA157_0>=140 && LA157_0<=149)||LA157_0==151) ) { |
| 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:9236: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:9245: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:9257: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:9257:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalEntityMockDSL.g:9258: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:9264: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:9270: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:9271: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:9271: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:9272: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:9272:3: () |
| // InternalEntityMockDSL.g:9273:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9279:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( (LA158_0==31) ) { |
| alt158=1; |
| } |
| else if ( (LA158_0==139) ) { |
| alt158=2; |
| } |
| 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:9280:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalEntityMockDSL.g:9280:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalEntityMockDSL.g:9281:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalEntityMockDSL.g:9281:5: (lv_writeable_1_0= 'var' ) |
| // InternalEntityMockDSL.g:9282: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:9295:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,139,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9300:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( (LA159_0==RULE_ID) ) { |
| int LA159_1 = input.LA(2); |
| |
| if ( (synpred35_InternalEntityMockDSL()) ) { |
| alt159=1; |
| } |
| else if ( (true) ) { |
| alt159=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 159, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA159_0==25) && (synpred35_InternalEntityMockDSL())) { |
| alt159=1; |
| } |
| else if ( (LA159_0==117) && (synpred35_InternalEntityMockDSL())) { |
| alt159=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 159, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt159) { |
| case 1 : |
| // InternalEntityMockDSL.g:9301:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:9301:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9302:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9315:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9316:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9316:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9317:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9317:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9318: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:9335:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9336:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9336:7: (lv_name_4_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9337:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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:9357:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9357:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9358:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9358:5: (lv_name_5_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9359:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_136); |
| 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:9377:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==95) ) { |
| alt160=1; |
| } |
| switch (alt160) { |
| case 1 : |
| // InternalEntityMockDSL.g:9378:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,95,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9382:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9383:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9383:5: (lv_right_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9384: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:9406: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:9406:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalEntityMockDSL.g:9407: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:9413: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:9419:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9420:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9420:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9421:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9421:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==RULE_ID) ) { |
| int LA161_1 = input.LA(2); |
| |
| if ( (LA161_1==RULE_ID||LA161_1==34||LA161_1==97||LA161_1==104) ) { |
| alt161=1; |
| } |
| } |
| else if ( (LA161_0==25||LA161_0==117) ) { |
| alt161=1; |
| } |
| switch (alt161) { |
| case 1 : |
| // InternalEntityMockDSL.g:9422:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9422:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9423: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:9440:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9441:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9441:4: (lv_name_1_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9442: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:9463: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:9463:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalEntityMockDSL.g:9464: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:9470: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:9476:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9477:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9477:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9478:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9478:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9479:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9479:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9480: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:9497:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalEntityMockDSL.g:9498:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9498:4: (lv_name_1_0= ruleValidID ) |
| // InternalEntityMockDSL.g:9499: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:9520: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:9520:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalEntityMockDSL.g:9521: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:9527: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:9533: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:9534: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:9534: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:9535: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:9535:3: () |
| // InternalEntityMockDSL.g:9536:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9542:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==104) ) { |
| alt163=1; |
| } |
| switch (alt163) { |
| case 1 : |
| // InternalEntityMockDSL.g:9543:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,104,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9547:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9548:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9548:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9549:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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:9566:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop162: |
| do { |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==26) ) { |
| alt162=1; |
| } |
| |
| |
| switch (alt162) { |
| case 1 : |
| // InternalEntityMockDSL.g:9567:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,26,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9571:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9572:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9572:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9573:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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 loop162; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,105,FOLLOW_108); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9596:3: ( ( ruleIdOrSuper ) ) |
| // InternalEntityMockDSL.g:9597:4: ( ruleIdOrSuper ) |
| { |
| // InternalEntityMockDSL.g:9597:4: ( ruleIdOrSuper ) |
| // InternalEntityMockDSL.g:9598: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_137); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9612: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 alt166=2; |
| alt166 = dfa166.predict(input); |
| switch (alt166) { |
| case 1 : |
| // InternalEntityMockDSL.g:9613: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:9613:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalEntityMockDSL.g:9614:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:9618:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalEntityMockDSL.g:9619:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,25,FOLLOW_112); 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:9631:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt165=3; |
| alt165 = dfa165.predict(input); |
| switch (alt165) { |
| case 1 : |
| // InternalEntityMockDSL.g:9632:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:9632:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:9633:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:9658:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:9659:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:9677:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:9677:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:9678:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:9678:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9679:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9679:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9680: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:9697:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop164: |
| do { |
| int alt164=2; |
| int LA164_0 = input.LA(1); |
| |
| if ( (LA164_0==26) ) { |
| alt164=1; |
| } |
| |
| |
| switch (alt164) { |
| case 1 : |
| // InternalEntityMockDSL.g:9698:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9702:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:9703:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:9703:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:9704: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 loop164; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,27,FOLLOW_138); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9729:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt167=2; |
| alt167 = dfa167.predict(input); |
| switch (alt167) { |
| case 1 : |
| // InternalEntityMockDSL.g:9730:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:9736:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:9737: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:9758: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:9758:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalEntityMockDSL.g:9759: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:9765: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:9771:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalEntityMockDSL.g:9772:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalEntityMockDSL.g:9772:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt168=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt168=1; |
| } |
| break; |
| case 140: |
| { |
| alt168=2; |
| } |
| break; |
| case 89: |
| { |
| alt168=3; |
| } |
| break; |
| case 88: |
| { |
| alt168=4; |
| } |
| break; |
| case 90: |
| { |
| alt168=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 168, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt168) { |
| case 1 : |
| // InternalEntityMockDSL.g:9773: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:9784:3: kw= 'extends' |
| { |
| kw=(Token)match(input,140,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:9790:3: kw= 'static' |
| { |
| kw=(Token)match(input,89,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:9796:3: kw= 'import' |
| { |
| kw=(Token)match(input,88,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:9802:3: kw= 'extension' |
| { |
| kw=(Token)match(input,90,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:9811: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:9811:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalEntityMockDSL.g:9812: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:9818: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:9824:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalEntityMockDSL.g:9825:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalEntityMockDSL.g:9825:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt169=2; |
| int LA169_0 = input.LA(1); |
| |
| if ( (LA169_0==RULE_ID||(LA169_0>=88 && LA169_0<=90)||LA169_0==140) ) { |
| alt169=1; |
| } |
| else if ( (LA169_0==141) ) { |
| alt169=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 169, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt169) { |
| case 1 : |
| // InternalEntityMockDSL.g:9826: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:9837:3: kw= 'super' |
| { |
| kw=(Token)match(input,141,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:9846: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:9846:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalEntityMockDSL.g:9847: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:9853: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:9859: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:9860: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:9860: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:9861: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:9861:3: () |
| // InternalEntityMockDSL.g:9862:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,142,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:9872:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:9873:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:9873:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:9874: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_139); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9888:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt171=2; |
| alt171 = dfa171.predict(input); |
| switch (alt171) { |
| case 1 : |
| // InternalEntityMockDSL.g:9889:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalEntityMockDSL.g:9889:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalEntityMockDSL.g:9890:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,104,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:9896:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9897:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9897:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9898:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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:9915:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop170: |
| do { |
| int alt170=2; |
| int LA170_0 = input.LA(1); |
| |
| if ( (LA170_0==26) ) { |
| alt170=1; |
| } |
| |
| |
| switch (alt170) { |
| case 1 : |
| // InternalEntityMockDSL.g:9916:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,26,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:9920:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:9921:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9921:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:9922:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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 loop170; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,105,FOLLOW_137); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9945: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 alt174=2; |
| alt174 = dfa174.predict(input); |
| switch (alt174) { |
| case 1 : |
| // InternalEntityMockDSL.g:9946: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:9946:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalEntityMockDSL.g:9947:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalEntityMockDSL.g:9951:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalEntityMockDSL.g:9952:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,25,FOLLOW_112); 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:9964:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt173=3; |
| alt173 = dfa173.predict(input); |
| switch (alt173) { |
| case 1 : |
| // InternalEntityMockDSL.g:9965:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalEntityMockDSL.g:9965:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalEntityMockDSL.g:9966:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalEntityMockDSL.g:9991:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalEntityMockDSL.g:9992:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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:10010:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalEntityMockDSL.g:10010:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalEntityMockDSL.g:10011:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalEntityMockDSL.g:10011:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10012:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10012:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10013: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:10030:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop172: |
| do { |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==26) ) { |
| alt172=1; |
| } |
| |
| |
| switch (alt172) { |
| case 1 : |
| // InternalEntityMockDSL.g:10031:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,26,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10035:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10036:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10036:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10037: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 loop172; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,27,FOLLOW_138); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:10062:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt175=2; |
| alt175 = dfa175.predict(input); |
| switch (alt175) { |
| case 1 : |
| // InternalEntityMockDSL.g:10063:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalEntityMockDSL.g:10069:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalEntityMockDSL.g:10070: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:10091: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:10091:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalEntityMockDSL.g:10092: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:10098: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:10104:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalEntityMockDSL.g:10105:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:10105:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalEntityMockDSL.g:10106:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalEntityMockDSL.g:10106:3: () |
| // InternalEntityMockDSL.g:10107:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10113:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt176=2; |
| int LA176_0 = input.LA(1); |
| |
| if ( (LA176_0==143) ) { |
| alt176=1; |
| } |
| else if ( (LA176_0==144) ) { |
| alt176=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 176, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt176) { |
| case 1 : |
| // InternalEntityMockDSL.g:10114:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,143,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10119:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalEntityMockDSL.g:10119:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalEntityMockDSL.g:10120:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalEntityMockDSL.g:10120:5: (lv_isTrue_2_0= 'true' ) |
| // InternalEntityMockDSL.g:10121:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,144,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:10138: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:10138:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalEntityMockDSL.g:10139: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:10145: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:10151:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalEntityMockDSL.g:10152:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalEntityMockDSL.g:10152:2: ( () otherlv_1= 'null' ) |
| // InternalEntityMockDSL.g:10153:3: () otherlv_1= 'null' |
| { |
| // InternalEntityMockDSL.g:10153:3: () |
| // InternalEntityMockDSL.g:10154:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,145,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:10168: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:10168:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalEntityMockDSL.g:10169: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:10175: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:10181:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalEntityMockDSL.g:10182:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalEntityMockDSL.g:10182:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalEntityMockDSL.g:10183:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalEntityMockDSL.g:10183:3: () |
| // InternalEntityMockDSL.g:10184:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10190:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalEntityMockDSL.g:10191:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalEntityMockDSL.g:10191:4: (lv_value_1_0= ruleNumber ) |
| // InternalEntityMockDSL.g:10192: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:10213: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:10213:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalEntityMockDSL.g:10214: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:10220: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:10226:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalEntityMockDSL.g:10227:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalEntityMockDSL.g:10227:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalEntityMockDSL.g:10228:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalEntityMockDSL.g:10228:3: () |
| // InternalEntityMockDSL.g:10229:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10235:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalEntityMockDSL.g:10236:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalEntityMockDSL.g:10236:4: (lv_value_1_0= RULE_STRING ) |
| // InternalEntityMockDSL.g:10237: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:10257: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:10257:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalEntityMockDSL.g:10258: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:10264: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:10270:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalEntityMockDSL.g:10271:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalEntityMockDSL.g:10271:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalEntityMockDSL.g:10272:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalEntityMockDSL.g:10272:3: () |
| // InternalEntityMockDSL.g:10273:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,146,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:10287:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:10288:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:10288:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:10289: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_140); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10303:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop177: |
| do { |
| int alt177=2; |
| int LA177_0 = input.LA(1); |
| |
| if ( (LA177_0==97) ) { |
| alt177=1; |
| } |
| |
| |
| switch (alt177) { |
| case 1 : |
| // InternalEntityMockDSL.g:10304:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10304:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10305:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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 loop177; |
| } |
| } 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:10330: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:10330:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalEntityMockDSL.g:10331: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:10337: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:10343:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10344:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10344:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10345:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10345:3: () |
| // InternalEntityMockDSL.g:10346:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,147,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10356:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10357:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10357:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10358: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:10379: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:10379:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalEntityMockDSL.g:10380: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:10386: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:10392: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:10393: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:10393: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:10394: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:10394:3: () |
| // InternalEntityMockDSL.g:10395:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,148,FOLLOW_141); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10405: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 alt178=2; |
| alt178 = dfa178.predict(input); |
| switch (alt178) { |
| case 1 : |
| // InternalEntityMockDSL.g:10406: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:10407:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10408: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:10429: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:10429:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalEntityMockDSL.g:10430: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:10436: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:10442: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:10443: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:10443: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:10444: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:10444:3: () |
| // InternalEntityMockDSL.g:10445:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,149,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:10455:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10456:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10456:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10457:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_142); |
| 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:10474: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 alt181=2; |
| int LA181_0 = input.LA(1); |
| |
| if ( (LA181_0==152) ) { |
| alt181=1; |
| } |
| else if ( (LA181_0==150) ) { |
| alt181=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 181, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt181) { |
| case 1 : |
| // InternalEntityMockDSL.g:10475:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalEntityMockDSL.g:10475:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalEntityMockDSL.g:10476:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalEntityMockDSL.g:10476:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt179=0; |
| loop179: |
| do { |
| int alt179=2; |
| int LA179_0 = input.LA(1); |
| |
| if ( (LA179_0==152) ) { |
| int LA179_2 = input.LA(2); |
| |
| if ( (synpred44_InternalEntityMockDSL()) ) { |
| alt179=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt179) { |
| case 1 : |
| // InternalEntityMockDSL.g:10477:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalEntityMockDSL.g:10478:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalEntityMockDSL.g:10479:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_143); |
| 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 ( cnt179 >= 1 ) break loop179; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(179, input); |
| throw eee; |
| } |
| cnt179++; |
| } while (true); |
| |
| // InternalEntityMockDSL.g:10496:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt180=2; |
| int LA180_0 = input.LA(1); |
| |
| if ( (LA180_0==150) ) { |
| int LA180_1 = input.LA(2); |
| |
| if ( (synpred45_InternalEntityMockDSL()) ) { |
| alt180=1; |
| } |
| } |
| switch (alt180) { |
| case 1 : |
| // InternalEntityMockDSL.g:10497:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10497:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalEntityMockDSL.g:10498:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,150,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:10504:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10505:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10505:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10506: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:10526:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10526:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10527:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,150,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10531:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10532:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10532:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10533: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:10556: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:10556:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalEntityMockDSL.g:10557: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:10563: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:10569:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10570:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10570:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10571:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10571:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalEntityMockDSL.g:10572:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalEntityMockDSL.g:10579:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalEntityMockDSL.g:10580:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalEntityMockDSL.g:10580:5: () |
| // InternalEntityMockDSL.g:10581:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,151,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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:10597:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10598:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10598:4: (lv_param_3_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10599:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalEntityMockDSL.g:10620:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10621:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10621:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10622: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:10643: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:10643:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalEntityMockDSL.g:10644: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:10650: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:10656:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalEntityMockDSL.g:10657:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalEntityMockDSL.g:10657:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalEntityMockDSL.g:10658:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalEntityMockDSL.g:10658:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalEntityMockDSL.g:10659:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,152,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:10669:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:10670:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:10670:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalEntityMockDSL.g:10671:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalEntityMockDSL.g:10692:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalEntityMockDSL.g:10693:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalEntityMockDSL.g:10693:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalEntityMockDSL.g:10694: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:10715: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:10715:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalEntityMockDSL.g:10716: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:10722: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:10728:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalEntityMockDSL.g:10729:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalEntityMockDSL.g:10729:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalEntityMockDSL.g:10730: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:10740:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop182: |
| do { |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==34) ) { |
| int LA182_2 = input.LA(2); |
| |
| if ( (LA182_2==RULE_ID) ) { |
| int LA182_3 = input.LA(3); |
| |
| if ( (synpred48_InternalEntityMockDSL()) ) { |
| alt182=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt182) { |
| case 1 : |
| // InternalEntityMockDSL.g:10741:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalEntityMockDSL.g:10741:4: ( ( '.' )=>kw= '.' ) |
| // InternalEntityMockDSL.g:10742: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 loop182; |
| } |
| } 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:10764: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:10766:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalEntityMockDSL.g:10767: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:10776: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:10783: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:10784: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:10784: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 alt186=2; |
| int LA186_0 = input.LA(1); |
| |
| if ( (LA186_0==RULE_HEX) ) { |
| alt186=1; |
| } |
| else if ( (LA186_0==RULE_INT||LA186_0==RULE_DECIMAL) ) { |
| alt186=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 186, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt186) { |
| case 1 : |
| // InternalEntityMockDSL.g:10785: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:10793:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalEntityMockDSL.g:10793:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalEntityMockDSL.g:10794:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalEntityMockDSL.g:10794:4: (this_INT_1= RULE_INT | this_DECIMAL_2= 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:10795: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:10803: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:10811:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt185=2; |
| int LA185_0 = input.LA(1); |
| |
| if ( (LA185_0==34) ) { |
| int LA185_1 = input.LA(2); |
| |
| if ( (LA185_1==RULE_INT||LA185_1==RULE_DECIMAL) ) { |
| alt185=1; |
| } |
| } |
| switch (alt185) { |
| case 1 : |
| // InternalEntityMockDSL.g:10812:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,34,FOLLOW_144); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalEntityMockDSL.g:10817:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt184=2; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==RULE_INT) ) { |
| alt184=1; |
| } |
| else if ( (LA184_0==RULE_DECIMAL) ) { |
| alt184=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 184, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt184) { |
| case 1 : |
| // InternalEntityMockDSL.g:10818: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:10826: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:10843: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:10843:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalEntityMockDSL.g:10844: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:10850: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:10856:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalEntityMockDSL.g:10857:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalEntityMockDSL.g:10857:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt188=2; |
| int LA188_0 = input.LA(1); |
| |
| if ( (LA188_0==RULE_ID) ) { |
| alt188=1; |
| } |
| else if ( (LA188_0==25||LA188_0==117) ) { |
| alt188=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 188, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt188) { |
| case 1 : |
| // InternalEntityMockDSL.g:10858:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalEntityMockDSL.g:10858:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalEntityMockDSL.g:10859:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_138); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalEntityMockDSL.g:10867:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop187: |
| do { |
| int alt187=2; |
| int LA187_0 = input.LA(1); |
| |
| if ( (LA187_0==97) ) { |
| int LA187_2 = input.LA(2); |
| |
| if ( (LA187_2==98) ) { |
| int LA187_3 = input.LA(3); |
| |
| if ( (synpred49_InternalEntityMockDSL()) ) { |
| alt187=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt187) { |
| case 1 : |
| // InternalEntityMockDSL.g:10868:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10874:5: ( () ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10875:6: () ruleArrayBrackets |
| { |
| // InternalEntityMockDSL.g:10875:6: () |
| // InternalEntityMockDSL.g:10876: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_138); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop187; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:10893: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:10905: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:10905:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalEntityMockDSL.g:10906: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:10912: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:10918:2: ( (kw= '[' kw= ']' ) ) |
| // InternalEntityMockDSL.g:10919:2: (kw= '[' kw= ']' ) |
| { |
| // InternalEntityMockDSL.g:10919:2: (kw= '[' kw= ']' ) |
| // InternalEntityMockDSL.g:10920:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,97,FOLLOW_119); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,98,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:10934: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:10934:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalEntityMockDSL.g:10935: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:10941: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:10947: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:10948: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:10948: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:10949: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:10949:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt191=2; |
| int LA191_0 = input.LA(1); |
| |
| if ( (LA191_0==25) ) { |
| alt191=1; |
| } |
| switch (alt191) { |
| case 1 : |
| // InternalEntityMockDSL.g:10950: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:10954:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==RULE_ID||LA190_0==25||LA190_0==117) ) { |
| alt190=1; |
| } |
| switch (alt190) { |
| case 1 : |
| // InternalEntityMockDSL.g:10955:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalEntityMockDSL.g:10955:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:10956:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10956:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:10957: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:10974:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop189: |
| do { |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==26) ) { |
| alt189=1; |
| } |
| |
| |
| switch (alt189) { |
| case 1 : |
| // InternalEntityMockDSL.g:10975: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:10979:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:10980:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:10980:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:10981: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 loop189; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,27,FOLLOW_145); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,117,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:11009:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11010:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11010:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11011: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:11032: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:11032:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalEntityMockDSL.g:11033: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:11039: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:11045: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:11046: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:11046: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:11047: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:11047:3: ( ( ruleQualifiedName ) ) |
| // InternalEntityMockDSL.g:11048:4: ( ruleQualifiedName ) |
| { |
| // InternalEntityMockDSL.g:11048:4: ( ruleQualifiedName ) |
| // InternalEntityMockDSL.g:11049: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_146); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11063: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 alt196=2; |
| alt196 = dfa196.predict(input); |
| switch (alt196) { |
| case 1 : |
| // InternalEntityMockDSL.g:11064: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:11064:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalEntityMockDSL.g:11065:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,104,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:11071:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11072:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11072:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11073:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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:11090:4: (otherlv_3= ',' ( (lv_arguments_4_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:11091:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,26,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11095:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11096:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11096:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11097:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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 loop192; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,105,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalEntityMockDSL.g:11119:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop195: |
| do { |
| int alt195=2; |
| int LA195_0 = input.LA(1); |
| |
| if ( (LA195_0==34) ) { |
| int LA195_2 = input.LA(2); |
| |
| if ( (LA195_2==RULE_ID) ) { |
| int LA195_3 = input.LA(3); |
| |
| if ( (synpred51_InternalEntityMockDSL()) ) { |
| alt195=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt195) { |
| case 1 : |
| // InternalEntityMockDSL.g:11120:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalEntityMockDSL.g:11120:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalEntityMockDSL.g:11121:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalEntityMockDSL.g:11127:6: ( () otherlv_7= '.' ) |
| // InternalEntityMockDSL.g:11128:7: () otherlv_7= '.' |
| { |
| // InternalEntityMockDSL.g:11128:7: () |
| // InternalEntityMockDSL.g:11129: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:11141:5: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:11142:6: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:11142:6: ( ruleValidID ) |
| // InternalEntityMockDSL.g:11143: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_147); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:11157:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt194=2; |
| alt194 = dfa194.predict(input); |
| switch (alt194) { |
| case 1 : |
| // InternalEntityMockDSL.g:11158:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalEntityMockDSL.g:11158:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalEntityMockDSL.g:11159:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,104,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalEntityMockDSL.g:11165:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11166:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11166:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11167:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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:11184:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop193: |
| do { |
| int alt193=2; |
| int LA193_0 = input.LA(1); |
| |
| if ( (LA193_0==26) ) { |
| alt193=1; |
| } |
| |
| |
| switch (alt193) { |
| case 1 : |
| // InternalEntityMockDSL.g:11185:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,26,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11189:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalEntityMockDSL.g:11190:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11190:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalEntityMockDSL.g:11191:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_110); |
| 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 loop193; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,105,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 loop195; |
| } |
| } 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:11220: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:11220:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalEntityMockDSL.g:11221: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:11227: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:11233:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalEntityMockDSL.g:11234:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11234:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt197=2; |
| int LA197_0 = input.LA(1); |
| |
| if ( (LA197_0==RULE_ID||LA197_0==25||LA197_0==117) ) { |
| alt197=1; |
| } |
| else if ( (LA197_0==153) ) { |
| alt197=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 197, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt197) { |
| case 1 : |
| // InternalEntityMockDSL.g:11235: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:11244: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:11256: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:11256:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalEntityMockDSL.g:11257: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:11263: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:11269: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:11270: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:11270: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:11271: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:11271:3: () |
| // InternalEntityMockDSL.g:11272:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,153,FOLLOW_148); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalEntityMockDSL.g:11282:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt200=3; |
| int LA200_0 = input.LA(1); |
| |
| if ( (LA200_0==140) ) { |
| alt200=1; |
| } |
| else if ( (LA200_0==141) ) { |
| alt200=2; |
| } |
| switch (alt200) { |
| case 1 : |
| // InternalEntityMockDSL.g:11283:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalEntityMockDSL.g:11283:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalEntityMockDSL.g:11284:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalEntityMockDSL.g:11284:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalEntityMockDSL.g:11285:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalEntityMockDSL.g:11285:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalEntityMockDSL.g:11286:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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:11303:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop198: |
| do { |
| int alt198=2; |
| int LA198_0 = input.LA(1); |
| |
| if ( (LA198_0==154) ) { |
| alt198=1; |
| } |
| |
| |
| switch (alt198) { |
| case 1 : |
| // InternalEntityMockDSL.g:11304:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalEntityMockDSL.g:11304:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalEntityMockDSL.g:11305:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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 loop198; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:11324:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalEntityMockDSL.g:11324:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalEntityMockDSL.g:11325:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalEntityMockDSL.g:11325:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalEntityMockDSL.g:11326:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalEntityMockDSL.g:11326:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalEntityMockDSL.g:11327:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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:11344:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop199: |
| do { |
| int alt199=2; |
| int LA199_0 = input.LA(1); |
| |
| if ( (LA199_0==154) ) { |
| alt199=1; |
| } |
| |
| |
| switch (alt199) { |
| case 1 : |
| // InternalEntityMockDSL.g:11345:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalEntityMockDSL.g:11345:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalEntityMockDSL.g:11346:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_149); |
| 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 loop199; |
| } |
| } 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:11369: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:11369:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalEntityMockDSL.g:11370: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:11376: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:11382:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11383:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11383:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11384:3: otherlv_0= 'extends' ( (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.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11388:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11389:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11389:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11390: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:11411: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:11411:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalEntityMockDSL.g:11412: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:11418: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:11424:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11425:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11425:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11426:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,154,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11430:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11431:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11431:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11432: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:11453: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:11453:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalEntityMockDSL.g:11454: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:11460: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:11466:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11467:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11467:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11468:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,141,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11472:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11473:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11473:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11474: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:11495: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:11495:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalEntityMockDSL.g:11496: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:11502: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:11508:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalEntityMockDSL.g:11509:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalEntityMockDSL.g:11509:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalEntityMockDSL.g:11510:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,154,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalEntityMockDSL.g:11514:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:11515:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:11515:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:11516: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:11537: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:11537:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalEntityMockDSL.g:11538: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:11544: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:11550:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalEntityMockDSL.g:11551:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalEntityMockDSL.g:11551:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalEntityMockDSL.g:11552:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| 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_150); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,91,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:11576: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:11576:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalEntityMockDSL.g:11577: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:11583: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:11589:2: (this_ID_0= RULE_ID ) |
| // InternalEntityMockDSL.g:11590: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:11600: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:11600:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalEntityMockDSL.g:11601: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:11607: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:11613:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalEntityMockDSL.g:11614:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalEntityMockDSL.g:11614:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt201=0; |
| loop201: |
| do { |
| int alt201=2; |
| int LA201_0 = input.LA(1); |
| |
| if ( (LA201_0==88) ) { |
| alt201=1; |
| } |
| |
| |
| switch (alt201) { |
| case 1 : |
| // InternalEntityMockDSL.g:11615:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalEntityMockDSL.g:11615:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalEntityMockDSL.g:11616:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_151); |
| 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 ( 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 "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalEntityMockDSL.g:11636: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:11636:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalEntityMockDSL.g:11637: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:11643: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:11649:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalEntityMockDSL.g:11650:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalEntityMockDSL.g:11650:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt202=0; |
| loop202: |
| do { |
| int alt202=2; |
| int LA202_0 = input.LA(1); |
| |
| if ( (LA202_0==RULE_ID) ) { |
| int LA202_2 = input.LA(2); |
| |
| if ( (LA202_2==34) ) { |
| alt202=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt202) { |
| case 1 : |
| // InternalEntityMockDSL.g:11651:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_73); |
| 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_152); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt202 >= 1 ) break loop202; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(202, input); |
| throw eee; |
| } |
| cnt202++; |
| } 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:11670: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:11676:2: ( ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) ) |
| // InternalEntityMockDSL.g:11677:2: ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) |
| { |
| // InternalEntityMockDSL.g:11677:2: ( (enumLiteral_0= 'days' ) | (enumLiteral_1= 'weeks' ) | (enumLiteral_2= 'months' ) | (enumLiteral_3= 'years' ) ) |
| int alt203=4; |
| switch ( input.LA(1) ) { |
| case 155: |
| { |
| alt203=1; |
| } |
| break; |
| case 156: |
| { |
| alt203=2; |
| } |
| break; |
| case 157: |
| { |
| alt203=3; |
| } |
| break; |
| case 44: |
| { |
| alt203=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 203, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt203) { |
| case 1 : |
| // InternalEntityMockDSL.g:11678:3: (enumLiteral_0= 'days' ) |
| { |
| // InternalEntityMockDSL.g:11678:3: (enumLiteral_0= 'days' ) |
| // InternalEntityMockDSL.g:11679:4: enumLiteral_0= 'days' |
| { |
| enumLiteral_0=(Token)match(input,155,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:11686:3: (enumLiteral_1= 'weeks' ) |
| { |
| // InternalEntityMockDSL.g:11686:3: (enumLiteral_1= 'weeks' ) |
| // InternalEntityMockDSL.g:11687:4: enumLiteral_1= 'weeks' |
| { |
| enumLiteral_1=(Token)match(input,156,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:11694:3: (enumLiteral_2= 'months' ) |
| { |
| // InternalEntityMockDSL.g:11694:3: (enumLiteral_2= 'months' ) |
| // InternalEntityMockDSL.g:11695:4: enumLiteral_2= 'months' |
| { |
| enumLiteral_2=(Token)match(input,157,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:11702:3: (enumLiteral_3= 'years' ) |
| { |
| // InternalEntityMockDSL.g:11702:3: (enumLiteral_3= 'years' ) |
| // InternalEntityMockDSL.g:11703:4: enumLiteral_3= 'years' |
| { |
| enumLiteral_3=(Token)match(input,44,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:5046:5: ( '(' ) |
| // InternalEntityMockDSL.g:5046: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:5055:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalEntityMockDSL.g:5055:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalEntityMockDSL.g:5055:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalEntityMockDSL.g:5056:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalEntityMockDSL.g:5056:8: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:5057:9: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:5057:9: ( ruleValidID ) |
| // InternalEntityMockDSL.g:5058:10: ruleValidID |
| { |
| pushFollow(FOLLOW_84); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,95,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalEntityMockDSL |
| |
| // $ANTLR start synpred5_InternalEntityMockDSL |
| public final void synpred5_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5235:5: ( ( () '#' '[' ) ) |
| // InternalEntityMockDSL.g:5235:6: ( () '#' '[' ) |
| { |
| // InternalEntityMockDSL.g:5235:6: ( () '#' '[' ) |
| // InternalEntityMockDSL.g:5236:6: () '#' '[' |
| { |
| // InternalEntityMockDSL.g:5236:6: () |
| // InternalEntityMockDSL.g:5237:6: |
| { |
| } |
| |
| match(input,96,FOLLOW_86); if (state.failed) return ; |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalEntityMockDSL |
| |
| // $ANTLR start synpred6_InternalEntityMockDSL |
| public final void synpred6_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5377:5: ( ( () '#' '[' ) ) |
| // InternalEntityMockDSL.g:5377:6: ( () '#' '[' ) |
| { |
| // InternalEntityMockDSL.g:5377:6: ( () '#' '[' ) |
| // InternalEntityMockDSL.g:5378:6: () '#' '[' |
| { |
| // InternalEntityMockDSL.g:5378:6: () |
| // InternalEntityMockDSL.g:5379:6: |
| { |
| } |
| |
| match(input,96,FOLLOW_86); if (state.failed) return ; |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalEntityMockDSL |
| |
| // $ANTLR start synpred7_InternalEntityMockDSL |
| public final void synpred7_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:5605:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalEntityMockDSL.g:5605:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalEntityMockDSL.g:5605:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalEntityMockDSL.g:5606:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalEntityMockDSL.g:5606:7: () |
| // InternalEntityMockDSL.g:5607:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5608:7: ( ( ruleOpMultiAssign ) ) |
| // InternalEntityMockDSL.g:5609:8: ( ruleOpMultiAssign ) |
| { |
| // InternalEntityMockDSL.g:5609:8: ( ruleOpMultiAssign ) |
| // InternalEntityMockDSL.g:5610: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:5799:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalEntityMockDSL.g:5799:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalEntityMockDSL.g:5799:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalEntityMockDSL.g:5800:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalEntityMockDSL.g:5800:6: () |
| // InternalEntityMockDSL.g:5801:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5802:6: ( ( ruleOpOr ) ) |
| // InternalEntityMockDSL.g:5803:7: ( ruleOpOr ) |
| { |
| // InternalEntityMockDSL.g:5803:7: ( ruleOpOr ) |
| // InternalEntityMockDSL.g:5804: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:5906:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalEntityMockDSL.g:5906:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalEntityMockDSL.g:5906:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalEntityMockDSL.g:5907:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalEntityMockDSL.g:5907:6: () |
| // InternalEntityMockDSL.g:5908:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:5909:6: ( ( ruleOpAnd ) ) |
| // InternalEntityMockDSL.g:5910:7: ( ruleOpAnd ) |
| { |
| // InternalEntityMockDSL.g:5910:7: ( ruleOpAnd ) |
| // InternalEntityMockDSL.g:5911: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:6013:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalEntityMockDSL.g:6013:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalEntityMockDSL.g:6013:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalEntityMockDSL.g:6014:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalEntityMockDSL.g:6014:6: () |
| // InternalEntityMockDSL.g:6015:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6016:6: ( ( ruleOpEquality ) ) |
| // InternalEntityMockDSL.g:6017:7: ( ruleOpEquality ) |
| { |
| // InternalEntityMockDSL.g:6017:7: ( ruleOpEquality ) |
| // InternalEntityMockDSL.g:6018: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:6141:6: ( ( () 'instanceof' ) ) |
| // InternalEntityMockDSL.g:6141:7: ( () 'instanceof' ) |
| { |
| // InternalEntityMockDSL.g:6141:7: ( () 'instanceof' ) |
| // InternalEntityMockDSL.g:6142:7: () 'instanceof' |
| { |
| // InternalEntityMockDSL.g:6142:7: () |
| // InternalEntityMockDSL.g:6143:7: |
| { |
| } |
| |
| match(input,113,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalEntityMockDSL |
| |
| // $ANTLR start synpred12_InternalEntityMockDSL |
| public final void synpred12_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6184:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalEntityMockDSL.g:6184:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalEntityMockDSL.g:6184:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalEntityMockDSL.g:6185:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalEntityMockDSL.g:6185:7: () |
| // InternalEntityMockDSL.g:6186:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6187:7: ( ( ruleOpCompare ) ) |
| // InternalEntityMockDSL.g:6188:8: ( ruleOpCompare ) |
| { |
| // InternalEntityMockDSL.g:6188:8: ( ruleOpCompare ) |
| // InternalEntityMockDSL.g:6189: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:6319:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalEntityMockDSL.g:6319:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalEntityMockDSL.g:6319:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalEntityMockDSL.g:6320:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalEntityMockDSL.g:6320:6: () |
| // InternalEntityMockDSL.g:6321:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6322:6: ( ( ruleOpOther ) ) |
| // InternalEntityMockDSL.g:6323:7: ( ruleOpOther ) |
| { |
| // InternalEntityMockDSL.g:6323:7: ( ruleOpOther ) |
| // InternalEntityMockDSL.g:6324: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:6439:6: ( ( '>' '>' ) ) |
| // InternalEntityMockDSL.g:6439:7: ( '>' '>' ) |
| { |
| // InternalEntityMockDSL.g:6439:7: ( '>' '>' ) |
| // InternalEntityMockDSL.g:6440:7: '>' '>' |
| { |
| match(input,105,FOLLOW_100); if (state.failed) return ; |
| match(input,105,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalEntityMockDSL |
| |
| // $ANTLR start synpred15_InternalEntityMockDSL |
| public final void synpred15_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6474:6: ( ( '<' '<' ) ) |
| // InternalEntityMockDSL.g:6474:7: ( '<' '<' ) |
| { |
| // InternalEntityMockDSL.g:6474:7: ( '<' '<' ) |
| // InternalEntityMockDSL.g:6475:7: '<' '<' |
| { |
| match(input,104,FOLLOW_91); if (state.failed) return ; |
| match(input,104,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalEntityMockDSL |
| |
| // $ANTLR start synpred16_InternalEntityMockDSL |
| public final void synpred16_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6547:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalEntityMockDSL.g:6547:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalEntityMockDSL.g:6547:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalEntityMockDSL.g:6548:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalEntityMockDSL.g:6548:6: () |
| // InternalEntityMockDSL.g:6549:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6550:6: ( ( ruleOpAdd ) ) |
| // InternalEntityMockDSL.g:6551:7: ( ruleOpAdd ) |
| { |
| // InternalEntityMockDSL.g:6551:7: ( ruleOpAdd ) |
| // InternalEntityMockDSL.g:6552: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:6662:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalEntityMockDSL.g:6662:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalEntityMockDSL.g:6662:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalEntityMockDSL.g:6663:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalEntityMockDSL.g:6663:6: () |
| // InternalEntityMockDSL.g:6664:6: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6665:6: ( ( ruleOpMulti ) ) |
| // InternalEntityMockDSL.g:6666:7: ( ruleOpMulti ) |
| { |
| // InternalEntityMockDSL.g:6666:7: ( ruleOpMulti ) |
| // InternalEntityMockDSL.g:6667: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:6897:5: ( ( () 'as' ) ) |
| // InternalEntityMockDSL.g:6897:6: ( () 'as' ) |
| { |
| // InternalEntityMockDSL.g:6897:6: ( () 'as' ) |
| // InternalEntityMockDSL.g:6898:6: () 'as' |
| { |
| // InternalEntityMockDSL.g:6898:6: () |
| // InternalEntityMockDSL.g:6899:6: |
| { |
| } |
| |
| match(input,79,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalEntityMockDSL |
| |
| // $ANTLR start synpred19_InternalEntityMockDSL |
| public final void synpred19_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:6965:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalEntityMockDSL.g:6965:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalEntityMockDSL.g:6965:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalEntityMockDSL.g:6966:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalEntityMockDSL.g:6966:5: () |
| // InternalEntityMockDSL.g:6967:5: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:6968:5: ( ( ruleOpPostfix ) ) |
| // InternalEntityMockDSL.g:6969:6: ( ruleOpPostfix ) |
| { |
| // InternalEntityMockDSL.g:6969:6: ( ruleOpPostfix ) |
| // InternalEntityMockDSL.g:6970: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:7061:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalEntityMockDSL.g:7061:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalEntityMockDSL.g:7061:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalEntityMockDSL.g:7062:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalEntityMockDSL.g:7062:7: () |
| // InternalEntityMockDSL.g:7063:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:7064:7: ( '.' | ( ( '::' ) ) ) |
| int alt204=2; |
| int LA204_0 = input.LA(1); |
| |
| if ( (LA204_0==34) ) { |
| alt204=1; |
| } |
| else if ( (LA204_0==127) ) { |
| alt204=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 204, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt204) { |
| case 1 : |
| // InternalEntityMockDSL.g:7065:8: '.' |
| { |
| match(input,34,FOLLOW_107); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7067:8: ( ( '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7067:8: ( ( '::' ) ) |
| // InternalEntityMockDSL.g:7068:9: ( '::' ) |
| { |
| // InternalEntityMockDSL.g:7068:9: ( '::' ) |
| // InternalEntityMockDSL.g:7069:10: '::' |
| { |
| match(input,127,FOLLOW_107); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7073:7: ( ( ruleFeatureCallID ) ) |
| // InternalEntityMockDSL.g:7074:8: ( ruleFeatureCallID ) |
| { |
| // InternalEntityMockDSL.g:7074:8: ( ruleFeatureCallID ) |
| // InternalEntityMockDSL.g:7075:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_84); |
| 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:7158:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalEntityMockDSL.g:7158:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalEntityMockDSL.g:7158:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalEntityMockDSL.g:7159:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7159:7: () |
| // InternalEntityMockDSL.g:7160:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:7161:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt205=3; |
| switch ( input.LA(1) ) { |
| case 34: |
| { |
| alt205=1; |
| } |
| break; |
| case 128: |
| { |
| alt205=2; |
| } |
| break; |
| case 127: |
| { |
| alt205=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 205, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt205) { |
| case 1 : |
| // InternalEntityMockDSL.g:7162:8: '.' |
| { |
| match(input,34,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalEntityMockDSL.g:7164:8: ( ( '?.' ) ) |
| { |
| // InternalEntityMockDSL.g:7164:8: ( ( '?.' ) ) |
| // InternalEntityMockDSL.g:7165:9: ( '?.' ) |
| { |
| // InternalEntityMockDSL.g:7165:9: ( '?.' ) |
| // InternalEntityMockDSL.g:7166:10: '?.' |
| { |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalEntityMockDSL.g:7170:8: ( ( '::' ) ) |
| { |
| // InternalEntityMockDSL.g:7170:8: ( ( '::' ) ) |
| // InternalEntityMockDSL.g:7171:9: ( '::' ) |
| { |
| // InternalEntityMockDSL.g:7171:9: ( '::' ) |
| // InternalEntityMockDSL.g:7172:10: '::' |
| { |
| match(input,127,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:7296:7: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:7296:8: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:7296:8: ( '(' ) |
| // InternalEntityMockDSL.g:7297: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:7315:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:7315:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7315:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:7316:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7316:9: () |
| // InternalEntityMockDSL.g:7317:9: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:7318:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt207=2; |
| int LA207_0 = input.LA(1); |
| |
| if ( (LA207_0==RULE_ID||LA207_0==25||LA207_0==117) ) { |
| alt207=1; |
| } |
| switch (alt207) { |
| case 1 : |
| // InternalEntityMockDSL.g:7319:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7319:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7320:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7320:11: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7321:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7324:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop206: |
| do { |
| int alt206=2; |
| int LA206_0 = input.LA(1); |
| |
| if ( (LA206_0==26) ) { |
| alt206=1; |
| } |
| |
| |
| switch (alt206) { |
| case 1 : |
| // InternalEntityMockDSL.g:7325:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7326:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7327:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7327:12: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7328:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop206; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7333:9: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:7334:10: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:7334:10: ( '|' ) |
| // InternalEntityMockDSL.g:7335:11: '|' |
| { |
| match(input,129,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalEntityMockDSL |
| |
| // $ANTLR start synpred24_InternalEntityMockDSL |
| public final void synpred24_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7412:6: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:7412:7: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:7412:7: ( () '[' ) |
| // InternalEntityMockDSL.g:7413:7: () '[' |
| { |
| // InternalEntityMockDSL.g:7413:7: () |
| // InternalEntityMockDSL.g:7414:7: |
| { |
| } |
| |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalEntityMockDSL |
| |
| // $ANTLR start synpred25_InternalEntityMockDSL |
| public final void synpred25_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7485:4: ( ( () 'synchronized' '(' ) ) |
| // InternalEntityMockDSL.g:7485:5: ( () 'synchronized' '(' ) |
| { |
| // InternalEntityMockDSL.g:7485:5: ( () 'synchronized' '(' ) |
| // InternalEntityMockDSL.g:7486:5: () 'synchronized' '(' |
| { |
| // InternalEntityMockDSL.g:7486:5: () |
| // InternalEntityMockDSL.g:7487:5: |
| { |
| } |
| |
| match(input,151,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:7530:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:7530:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:7530:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:7531:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalEntityMockDSL.g:7531:5: () |
| // InternalEntityMockDSL.g:7532:5: |
| { |
| } |
| |
| match(input,136,FOLLOW_17); if (state.failed) return ; |
| match(input,25,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7535:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7536:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7536:6: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7537:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_124); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,133,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalEntityMockDSL |
| |
| // $ANTLR start synpred27_InternalEntityMockDSL |
| public final void synpred27_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7644:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:7644:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:7644:5: ( () '[' ) |
| // InternalEntityMockDSL.g:7645:5: () '[' |
| { |
| // InternalEntityMockDSL.g:7645:5: () |
| // InternalEntityMockDSL.g:7646:5: |
| { |
| } |
| |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalEntityMockDSL |
| |
| // $ANTLR start synpred29_InternalEntityMockDSL |
| public final void synpred29_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:7949:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:7949:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:7949:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:7950:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:7950:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt209=2; |
| int LA209_0 = input.LA(1); |
| |
| if ( (LA209_0==RULE_ID||LA209_0==25||LA209_0==117) ) { |
| alt209=1; |
| } |
| switch (alt209) { |
| case 1 : |
| // InternalEntityMockDSL.g:7951:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:7951:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7952:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7952:7: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7953:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:7956:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop208: |
| do { |
| int alt208=2; |
| int LA208_0 = input.LA(1); |
| |
| if ( (LA208_0==26) ) { |
| alt208=1; |
| } |
| |
| |
| switch (alt208) { |
| case 1 : |
| // InternalEntityMockDSL.g:7957:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:7958:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:7959:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:7959:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:7960:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop208; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:7965:5: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:7966:6: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:7966:6: ( '|' ) |
| // InternalEntityMockDSL.g:7967:7: '|' |
| { |
| match(input,129,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalEntityMockDSL |
| |
| // $ANTLR start synpred31_InternalEntityMockDSL |
| public final void synpred31_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8358:5: ( 'else' ) |
| // InternalEntityMockDSL.g:8358:6: 'else' |
| { |
| match(input,131,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalEntityMockDSL |
| |
| // $ANTLR start synpred32_InternalEntityMockDSL |
| public final void synpred32_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8417:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:8417:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:8417:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:8418:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,25,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:8419:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8420:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8420:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8421:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_124); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,133,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalEntityMockDSL |
| |
| // $ANTLR start synpred33_InternalEntityMockDSL |
| public final void synpred33_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:8484:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalEntityMockDSL.g:8484:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalEntityMockDSL.g:8484:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalEntityMockDSL.g:8485:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalEntityMockDSL.g:8485:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:8486:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:8486:8: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:8487:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_124); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,133,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalEntityMockDSL |
| |
| // $ANTLR start synpred35_InternalEntityMockDSL |
| public final void synpred35_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9302:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalEntityMockDSL.g:9302:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalEntityMockDSL.g:9302:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalEntityMockDSL.g:9303:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalEntityMockDSL.g:9303:6: ( ( ruleJvmTypeReference ) ) |
| // InternalEntityMockDSL.g:9304:7: ( ruleJvmTypeReference ) |
| { |
| // InternalEntityMockDSL.g:9304:7: ( ruleJvmTypeReference ) |
| // InternalEntityMockDSL.g:9305:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9308:6: ( ( ruleValidID ) ) |
| // InternalEntityMockDSL.g:9309:7: ( ruleValidID ) |
| { |
| // InternalEntityMockDSL.g:9309:7: ( ruleValidID ) |
| // InternalEntityMockDSL.g:9310: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:9614:5: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:9614:6: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:9614:6: ( '(' ) |
| // InternalEntityMockDSL.g:9615: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:9633:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:9633:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:9633:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:9634:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:9634:7: () |
| // InternalEntityMockDSL.g:9635:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:9636:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt213=2; |
| int LA213_0 = input.LA(1); |
| |
| if ( (LA213_0==RULE_ID||LA213_0==25||LA213_0==117) ) { |
| alt213=1; |
| } |
| switch (alt213) { |
| case 1 : |
| // InternalEntityMockDSL.g:9637:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:9637:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9638:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9638:9: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9639:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9642:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop212: |
| do { |
| int alt212=2; |
| int LA212_0 = input.LA(1); |
| |
| if ( (LA212_0==26) ) { |
| alt212=1; |
| } |
| |
| |
| switch (alt212) { |
| case 1 : |
| // InternalEntityMockDSL.g:9643:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:9644:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9645:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9645:10: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9646:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop212; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9651:7: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:9652:8: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:9652:8: ( '|' ) |
| // InternalEntityMockDSL.g:9653:9: '|' |
| { |
| match(input,129,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalEntityMockDSL |
| |
| // $ANTLR start synpred38_InternalEntityMockDSL |
| public final void synpred38_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9730:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:9730:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:9730:5: ( () '[' ) |
| // InternalEntityMockDSL.g:9731:5: () '[' |
| { |
| // InternalEntityMockDSL.g:9731:5: () |
| // InternalEntityMockDSL.g:9732:5: |
| { |
| } |
| |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalEntityMockDSL |
| |
| // $ANTLR start synpred39_InternalEntityMockDSL |
| public final void synpred39_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9890:5: ( '<' ) |
| // InternalEntityMockDSL.g:9890:6: '<' |
| { |
| match(input,104,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalEntityMockDSL |
| |
| // $ANTLR start synpred40_InternalEntityMockDSL |
| public final void synpred40_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:9947:5: ( ( '(' ) ) |
| // InternalEntityMockDSL.g:9947:6: ( '(' ) |
| { |
| // InternalEntityMockDSL.g:9947:6: ( '(' ) |
| // InternalEntityMockDSL.g:9948: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:9966:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalEntityMockDSL.g:9966:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalEntityMockDSL.g:9966:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalEntityMockDSL.g:9967:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalEntityMockDSL.g:9967:7: () |
| // InternalEntityMockDSL.g:9968:7: |
| { |
| } |
| |
| // InternalEntityMockDSL.g:9969:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt215=2; |
| int LA215_0 = input.LA(1); |
| |
| if ( (LA215_0==RULE_ID||LA215_0==25||LA215_0==117) ) { |
| alt215=1; |
| } |
| switch (alt215) { |
| case 1 : |
| // InternalEntityMockDSL.g:9970:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalEntityMockDSL.g:9970:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9971:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9971:9: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9972:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalEntityMockDSL.g:9975:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop214: |
| do { |
| int alt214=2; |
| int LA214_0 = input.LA(1); |
| |
| if ( (LA214_0==26) ) { |
| alt214=1; |
| } |
| |
| |
| switch (alt214) { |
| case 1 : |
| // InternalEntityMockDSL.g:9976:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,26,FOLLOW_39); if (state.failed) return ; |
| // InternalEntityMockDSL.g:9977:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalEntityMockDSL.g:9978:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalEntityMockDSL.g:9978:10: ( ruleJvmFormalParameter ) |
| // InternalEntityMockDSL.g:9979:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_117); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop214; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalEntityMockDSL.g:9984:7: ( ( '|' ) ) |
| // InternalEntityMockDSL.g:9985:8: ( '|' ) |
| { |
| // InternalEntityMockDSL.g:9985:8: ( '|' ) |
| // InternalEntityMockDSL.g:9986:9: '|' |
| { |
| match(input,129,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalEntityMockDSL |
| |
| // $ANTLR start synpred42_InternalEntityMockDSL |
| public final void synpred42_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10063:4: ( ( () '[' ) ) |
| // InternalEntityMockDSL.g:10063:5: ( () '[' ) |
| { |
| // InternalEntityMockDSL.g:10063:5: ( () '[' ) |
| // InternalEntityMockDSL.g:10064:5: () '[' |
| { |
| // InternalEntityMockDSL.g:10064:5: () |
| // InternalEntityMockDSL.g:10065:5: |
| { |
| } |
| |
| match(input,97,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalEntityMockDSL |
| |
| // $ANTLR start synpred43_InternalEntityMockDSL |
| public final void synpred43_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10406: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)==78||(input.LA(1)>=88 && input.LA(1)<=90)||(input.LA(1)>=96 && input.LA(1)<=97)||input.LA(1)==104||input.LA(1)==120||input.LA(1)==124||input.LA(1)==130||input.LA(1)==132||(input.LA(1)>=136 && input.LA(1)<=138)||(input.LA(1)>=140 && input.LA(1)<=149)||input.LA(1)==151 ) { |
| 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:10477:6: ( 'catch' ) |
| // InternalEntityMockDSL.g:10477:7: 'catch' |
| { |
| match(input,152,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalEntityMockDSL |
| |
| // $ANTLR start synpred45_InternalEntityMockDSL |
| public final void synpred45_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10498:7: ( 'finally' ) |
| // InternalEntityMockDSL.g:10498:8: 'finally' |
| { |
| match(input,150,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalEntityMockDSL |
| |
| // $ANTLR start synpred48_InternalEntityMockDSL |
| public final void synpred48_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:10742:5: ( '.' ) |
| // InternalEntityMockDSL.g:10742: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:10868:5: ( ( () ruleArrayBrackets ) ) |
| // InternalEntityMockDSL.g:10868:6: ( () ruleArrayBrackets ) |
| { |
| // InternalEntityMockDSL.g:10868:6: ( () ruleArrayBrackets ) |
| // InternalEntityMockDSL.g:10869:6: () ruleArrayBrackets |
| { |
| // InternalEntityMockDSL.g:10869:6: () |
| // InternalEntityMockDSL.g:10870: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:11065:5: ( '<' ) |
| // InternalEntityMockDSL.g:11065:6: '<' |
| { |
| match(input,104,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalEntityMockDSL |
| |
| // $ANTLR start synpred51_InternalEntityMockDSL |
| public final void synpred51_InternalEntityMockDSL_fragment() throws RecognitionException { |
| // InternalEntityMockDSL.g:11121:6: ( ( () '.' ) ) |
| // InternalEntityMockDSL.g:11121:7: ( () '.' ) |
| { |
| // InternalEntityMockDSL.g:11121:7: ( () '.' ) |
| // InternalEntityMockDSL.g:11122:7: () '.' |
| { |
| // InternalEntityMockDSL.g:11122:7: () |
| // InternalEntityMockDSL.g:11123: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:11159:7: ( '<' ) |
| // InternalEntityMockDSL.g:11159:8: '<' |
| { |
| match(input,104,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 DFA82 dfa82 = new DFA82(this); |
| protected DFA85 dfa85 = new DFA85(this); |
| protected DFA91 dfa91 = new DFA91(this); |
| protected DFA94 dfa94 = new DFA94(this); |
| protected DFA96 dfa96 = new DFA96(this); |
| protected DFA106 dfa106 = new DFA106(this); |
| protected DFA109 dfa109 = new DFA109(this); |
| protected DFA125 dfa125 = new DFA125(this); |
| protected DFA124 dfa124 = new DFA124(this); |
| protected DFA126 dfa126 = new DFA126(this); |
| protected DFA128 dfa128 = new DFA128(this); |
| protected DFA137 dfa137 = new DFA137(this); |
| protected DFA144 dfa144 = new DFA144(this); |
| protected DFA143 dfa143 = new DFA143(this); |
| protected DFA166 dfa166 = new DFA166(this); |
| protected DFA165 dfa165 = new DFA165(this); |
| protected DFA167 dfa167 = new DFA167(this); |
| protected DFA171 dfa171 = new DFA171(this); |
| protected DFA174 dfa174 = new DFA174(this); |
| protected DFA173 dfa173 = new DFA173(this); |
| protected DFA175 dfa175 = new DFA175(this); |
| protected DFA178 dfa178 = new DFA178(this); |
| protected DFA196 dfa196 = new DFA196(this); |
| protected DFA194 dfa194 = new DFA194(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\3\uffff\1\5\1\uffff"; |
| static final String dfa_3s = "\1\4\1\uffff\1\15\1\uffff\1\4\1\uffff\1\15\1\uffff"; |
| static final String dfa_4s = "\1\134\1\uffff\1\135\1\uffff\1\133\1\uffff\1\135\1\uffff"; |
| static final String dfa_5s = "\1\uffff\1\1\1\uffff\1\4\1\uffff\1\2\1\uffff\1\3"; |
| static final String dfa_6s = "\10\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\124\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\24\uffff\1\4\65\uffff\1\5\4\uffff\1\5", |
| "", |
| "\1\6\126\uffff\1\7", |
| "", |
| "\1\5\24\uffff\1\4\65\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 DFA82 extends DFA { |
| |
| public DFA82(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 82; |
| 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 "4835: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\u0097\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\62\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 DFA85 extends DFA { |
| |
| public DFA85(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 85; |
| 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 "5052: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 LA85_1 = input.LA(1); |
| |
| |
| int index85_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalEntityMockDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index85_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 85, _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\u0097\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\64\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 DFA91 extends DFA { |
| |
| public DFA91(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 91; |
| 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 "5232: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 LA91_1 = input.LA(1); |
| |
| |
| int index91_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index91_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 91, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA94 extends DFA { |
| |
| public DFA94(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 94; |
| 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 "5374: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 LA94_1 = input.LA(1); |
| |
| |
| int index94_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index94_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 94, _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\u0098\7\0\2\uffff"; |
| static final String dfa_24s = "\10\uffff\1\2\1\1"; |
| static final String dfa_25s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\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\53\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 DFA96 extends DFA { |
| |
| public DFA96(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 96; |
| 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 "5603: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 LA96_1 = input.LA(1); |
| |
| |
| int index96_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA96_2 = input.LA(1); |
| |
| |
| int index96_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA96_3 = input.LA(1); |
| |
| |
| int index96_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA96_4 = input.LA(1); |
| |
| |
| int index96_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA96_5 = input.LA(1); |
| |
| |
| int index96_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA96_6 = input.LA(1); |
| |
| |
| int index96_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA96_7 = input.LA(1); |
| |
| |
| int index96_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalEntityMockDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index96_7); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 96, _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\u0098\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\4\1\0\1\1\1\3\1\2\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\53\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 DFA106 extends DFA { |
| |
| public DFA106(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 106; |
| 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 6317: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 LA106_4 = input.LA(1); |
| |
| |
| int index106_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_4); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA106_5 = input.LA(1); |
| |
| |
| int index106_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_5); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA106_7 = input.LA(1); |
| |
| |
| int index106_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_7); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA106_6 = input.LA(1); |
| |
| |
| int index106_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_6); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA106_3 = input.LA(1); |
| |
| |
| int index106_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_3); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA106_8 = input.LA(1); |
| |
| |
| int index106_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_8); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA106_9 = input.LA(1); |
| |
| |
| int index106_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_9); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA106_2 = input.LA(1); |
| |
| |
| int index106_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalEntityMockDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index106_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 106, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\150\2\uffff\1\151\7\uffff"; |
| static final String dfa_35s = "\1\167\2\uffff\1\164\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 DFA109 extends DFA { |
| |
| public DFA109(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 109; |
| 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 "6393: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\u0098\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\53\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 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_45; |
| } |
| public String getDescription() { |
| return "7294: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 LA125_1 = input.LA(1); |
| |
| |
| int index125_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_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_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u0097\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\62\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 DFA124 extends DFA { |
| |
| public DFA124(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 124; |
| 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 "7313: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 LA124_0 = input.LA(1); |
| |
| |
| int index124_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA124_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA124_0==25) ) {s = 2;} |
| |
| else if ( (LA124_0==117) && (synpred23_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA124_0==129) && (synpred23_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA124_0>=RULE_STRING && LA124_0<=RULE_DECIMAL)||LA124_0==14||LA124_0==78||(LA124_0>=88 && LA124_0<=90)||(LA124_0>=96 && LA124_0<=97)||LA124_0==104||LA124_0==120||LA124_0==124||LA124_0==130||LA124_0==132||(LA124_0>=136 && LA124_0<=138)||(LA124_0>=140 && LA124_0<=149)||LA124_0==151) ) {s = 5;} |
| |
| else if ( (LA124_0==27) ) {s = 35;} |
| |
| |
| input.seek(index124_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA124_1 = input.LA(1); |
| |
| |
| int index124_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index124_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA124_2 = input.LA(1); |
| |
| |
| int index124_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index124_2); |
| 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_51s = { |
| "\5\2\5\uffff\2\2\11\uffff\3\2\3\uffff\1\2\2\uffff\1\2\53\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 DFA126 extends DFA { |
| |
| public DFA126(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 126; |
| 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 "7411: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 LA126_1 = input.LA(1); |
| |
| |
| int index126_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index126_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 126, _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\u0097\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\76\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 DFA128 extends DFA { |
| |
| public DFA128(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 128; |
| 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 "7456: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 LA128_0 = input.LA(1); |
| |
| |
| int index128_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA128_0==142) ) {s = 1;} |
| |
| else if ( (LA128_0==14) ) {s = 2;} |
| |
| else if ( (LA128_0==132) ) {s = 3;} |
| |
| else if ( (LA128_0==151) && (synpred25_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( (LA128_0==RULE_ID||(LA128_0>=88 && LA128_0<=90)||LA128_0==104||(LA128_0>=140 && LA128_0<=141)) ) {s = 5;} |
| |
| else if ( ((LA128_0>=RULE_STRING && LA128_0<=RULE_DECIMAL)||(LA128_0>=96 && LA128_0<=97)||(LA128_0>=143 && LA128_0<=146)) ) {s = 12;} |
| |
| else if ( (LA128_0==130) ) {s = 22;} |
| |
| else if ( (LA128_0==136) ) {s = 23;} |
| |
| else if ( (LA128_0==137) ) {s = 24;} |
| |
| else if ( (LA128_0==138) ) {s = 25;} |
| |
| else if ( (LA128_0==147) ) {s = 26;} |
| |
| else if ( (LA128_0==148) ) {s = 27;} |
| |
| else if ( (LA128_0==149) ) {s = 28;} |
| |
| else if ( (LA128_0==25) ) {s = 29;} |
| |
| |
| input.seek(index128_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA128_23 = input.LA(1); |
| |
| |
| int index128_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalEntityMockDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index128_23); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 128, _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\u0097\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\56\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 DFA137 extends DFA { |
| |
| public DFA137(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 137; |
| 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 "7948: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 LA137_0 = input.LA(1); |
| |
| |
| int index137_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA137_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA137_0==25) ) {s = 2;} |
| |
| else if ( (LA137_0==117) && (synpred29_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA137_0==129) && (synpred29_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA137_0>=RULE_STRING && LA137_0<=RULE_DECIMAL)||LA137_0==14||LA137_0==31||LA137_0==78||(LA137_0>=88 && LA137_0<=90)||(LA137_0>=96 && LA137_0<=98)||LA137_0==104||LA137_0==120||LA137_0==124||LA137_0==130||LA137_0==132||(LA137_0>=136 && LA137_0<=149)||LA137_0==151) ) {s = 5;} |
| |
| |
| input.seek(index137_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA137_1 = input.LA(1); |
| |
| |
| int index137_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index137_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA137_2 = input.LA(1); |
| |
| |
| int index137_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index137_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 137, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\5\2\5\uffff\1\2\12\uffff\1\1\64\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 DFA144 extends DFA { |
| |
| public DFA144(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 144; |
| 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 "8414: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 LA144_1 = input.LA(1); |
| |
| |
| int index144_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalEntityMockDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index144_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 144, _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\u0097\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\64\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 DFA143 extends DFA { |
| |
| public DFA143(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 143; |
| 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 "8483: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 LA143_0 = input.LA(1); |
| |
| |
| int index143_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA143_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA143_0==25) ) {s = 2;} |
| |
| else if ( (LA143_0==117) && (synpred33_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( ((LA143_0>=RULE_STRING && LA143_0<=RULE_DECIMAL)||LA143_0==14||LA143_0==78||(LA143_0>=88 && LA143_0<=90)||(LA143_0>=96 && LA143_0<=97)||LA143_0==104||LA143_0==120||LA143_0==124||LA143_0==130||LA143_0==132||(LA143_0>=136 && LA143_0<=138)||(LA143_0>=140 && LA143_0<=149)||LA143_0==151) ) {s = 4;} |
| |
| |
| input.seek(index143_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA143_1 = input.LA(1); |
| |
| |
| int index143_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalEntityMockDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index143_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA143_2 = input.LA(1); |
| |
| |
| int index143_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalEntityMockDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index143_2); |
| 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; |
| } |
| } |
| |
| 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_45; |
| } |
| public String getDescription() { |
| return "9612: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 LA166_1 = input.LA(1); |
| |
| |
| int index166_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_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; |
| } |
| } |
| |
| class DFA165 extends DFA { |
| |
| public DFA165(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 165; |
| 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 "9631: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 LA165_0 = input.LA(1); |
| |
| |
| int index165_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA165_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA165_0==25) ) {s = 2;} |
| |
| else if ( (LA165_0==117) && (synpred37_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA165_0==129) && (synpred37_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA165_0>=RULE_STRING && LA165_0<=RULE_DECIMAL)||LA165_0==14||LA165_0==78||(LA165_0>=88 && LA165_0<=90)||(LA165_0>=96 && LA165_0<=97)||LA165_0==104||LA165_0==120||LA165_0==124||LA165_0==130||LA165_0==132||(LA165_0>=136 && LA165_0<=138)||(LA165_0>=140 && LA165_0<=149)||LA165_0==151) ) {s = 5;} |
| |
| else if ( (LA165_0==27) ) {s = 35;} |
| |
| |
| input.seek(index165_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA165_1 = input.LA(1); |
| |
| |
| int index165_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index165_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA165_2 = input.LA(1); |
| |
| |
| int index165_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index165_2); |
| 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 DFA167 extends DFA { |
| |
| public DFA167(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 167; |
| 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 "9729: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 LA167_1 = input.LA(1); |
| |
| |
| int index167_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index167_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 167, _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\53\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 DFA171 extends DFA { |
| |
| public DFA171(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 171; |
| 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 "9888: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 LA171_1 = input.LA(1); |
| |
| |
| int index171_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index171_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 171, _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_45; |
| } |
| public String getDescription() { |
| return "9945: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 LA174_1 = input.LA(1); |
| |
| |
| int index174_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_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; |
| } |
| } |
| |
| class DFA173 extends DFA { |
| |
| public DFA173(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 173; |
| 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 "9964: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 LA173_0 = input.LA(1); |
| |
| |
| int index173_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA173_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA173_0==25) ) {s = 2;} |
| |
| else if ( (LA173_0==117) && (synpred41_InternalEntityMockDSL())) {s = 3;} |
| |
| else if ( (LA173_0==129) && (synpred41_InternalEntityMockDSL())) {s = 4;} |
| |
| else if ( ((LA173_0>=RULE_STRING && LA173_0<=RULE_DECIMAL)||LA173_0==14||LA173_0==78||(LA173_0>=88 && LA173_0<=90)||(LA173_0>=96 && LA173_0<=97)||LA173_0==104||LA173_0==120||LA173_0==124||LA173_0==130||LA173_0==132||(LA173_0>=136 && LA173_0<=138)||(LA173_0>=140 && LA173_0<=149)||LA173_0==151) ) {s = 5;} |
| |
| else if ( (LA173_0==27) ) {s = 35;} |
| |
| |
| input.seek(index173_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA173_1 = input.LA(1); |
| |
| |
| int index173_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index173_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA173_2 = input.LA(1); |
| |
| |
| int index173_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalEntityMockDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index173_2); |
| 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 DFA175 extends DFA { |
| |
| public DFA175(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 175; |
| 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 "10062: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 LA175_1 = input.LA(1); |
| |
| |
| int index175_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index175_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 175, _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\u0098\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\53\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 DFA178 extends DFA { |
| |
| public DFA178(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 178; |
| 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 "10405: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 LA178_1 = input.LA(1); |
| |
| |
| int index178_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA178_2 = input.LA(1); |
| |
| |
| int index178_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA178_3 = input.LA(1); |
| |
| |
| int index178_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA178_4 = input.LA(1); |
| |
| |
| int index178_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA178_5 = input.LA(1); |
| |
| |
| int index178_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA178_6 = input.LA(1); |
| |
| |
| int index178_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA178_7 = input.LA(1); |
| |
| |
| int index178_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA178_8 = input.LA(1); |
| |
| |
| int index178_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA178_9 = input.LA(1); |
| |
| |
| int index178_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA178_10 = input.LA(1); |
| |
| |
| int index178_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA178_11 = input.LA(1); |
| |
| |
| int index178_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA178_12 = input.LA(1); |
| |
| |
| int index178_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA178_13 = input.LA(1); |
| |
| |
| int index178_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA178_14 = input.LA(1); |
| |
| |
| int index178_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA178_15 = input.LA(1); |
| |
| |
| int index178_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA178_16 = input.LA(1); |
| |
| |
| int index178_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA178_17 = input.LA(1); |
| |
| |
| int index178_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA178_18 = input.LA(1); |
| |
| |
| int index178_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA178_19 = input.LA(1); |
| |
| |
| int index178_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA178_20 = input.LA(1); |
| |
| |
| int index178_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA178_21 = input.LA(1); |
| |
| |
| int index178_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA178_22 = input.LA(1); |
| |
| |
| int index178_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA178_23 = input.LA(1); |
| |
| |
| int index178_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA178_24 = input.LA(1); |
| |
| |
| int index178_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA178_25 = input.LA(1); |
| |
| |
| int index178_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA178_26 = input.LA(1); |
| |
| |
| int index178_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA178_27 = input.LA(1); |
| |
| |
| int index178_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA178_28 = input.LA(1); |
| |
| |
| int index178_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA178_29 = input.LA(1); |
| |
| |
| int index178_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA178_30 = input.LA(1); |
| |
| |
| int index178_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA178_31 = input.LA(1); |
| |
| |
| int index178_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA178_32 = input.LA(1); |
| |
| |
| int index178_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalEntityMockDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index178_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 178, _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\u009a\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\45\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 DFA196 extends DFA { |
| |
| public DFA196(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 196; |
| 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 "11063: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 LA196_1 = input.LA(1); |
| |
| |
| int index196_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalEntityMockDSL()) ) {s = 79;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index196_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 196, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA194 extends DFA { |
| |
| public DFA194(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 194; |
| 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 "11157: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 LA194_1 = input.LA(1); |
| |
| |
| int index194_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalEntityMockDSL()) ) {s = 79;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index194_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 194, _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,0x0020000000000000L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x000000000C000000L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000002000010L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000020000000000L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x7FF26C0000000000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000100000000000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000800000000000L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000000040L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0001000000000000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0001000200000050L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000000050L,0x0000000000004000L}); |
| 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,0x0000000000004000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0009000000000052L,0x0000000000004000L}); |
| 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,0x0000000000000064L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0000000080008000L,0x0000000000190000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000080008000L,0x0000000000180000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000080008000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000280L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000680000000000L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000100L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000040L,0x0000000000003800L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000400L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000100000000000L,0x0000000000000000L,0x0000000038000000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000000L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000000000000L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0000000000000000L,0x0000000000040000L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000400000000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000400000010L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000010L,0x0000000000200000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000002L,0x0000000000400000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000000000000010L,0x0000000012000000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000010L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000010L,0x0000000008000000L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x000000000A0041F0L,0x1100010347004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000008000000L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000000000L,0x0000000080000000L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x00000000020041F0L,0x1100010347004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x00000000020041F0L,0x1100010747004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000004000000L,0x0000000400000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000004000002L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x000003F800000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000000L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000000L,0x0000060000000000L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000002L,0x0000080000000000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000002L,0x0001E00000000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000002L,0x0002070000000000L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000002L,0x00FC030000000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000000L,0x0020010000000000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000002L,0x0100000000004000L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000002L,0x0E00000008000000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000002L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000002L,0x6000000000000000L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000400000002L,0x8000000000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000010L,0x0000000007000000L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x0000000000000010L,0x0000010007000000L,0x0000000000003000L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000002000010L,0x0020000000000000L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000004000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000402000002L,0x8000000200000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x000000000A0041F0L,0x1120010347004000L,0x0000000000BFF716L}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x0000000400000002L,0x8000000200000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x000000000200C1F0L,0x1100010347004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x0000000004008000L}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x00000000820041F0L,0x1120010747004000L,0x0000000000BFFF16L}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x00000000820041F0L,0x1100010747004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x0000000000000000L,0x0000000400000000L}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x00000000820041F2L,0x1100010367004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x00000000820041F2L,0x1100010347004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x00000000020041F0L,0x1120010347004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x0000000006008010L,0x0020000000000000L,0x00000000000000E0L}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x00000000000000A0L}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x0000000004000000L,0x0000000000000000L,0x0000000000000020L}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x00000000820041F0L,0x1100010367004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x0000000004000000L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x00000000820041F0L,0x1100010347004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x00000000020041F0L,0x1100010367004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000000L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000200L}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x000000008200C1F0L,0x1100010347004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x000000008200C1F0L,0x1100010367004000L,0x0000000000BFFF14L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x0000000000000002L,0x0000000080000000L}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x0000000002000002L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000000000002L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x0000000002000002L,0x0000010200000000L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x0000000008000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x00000000020041F2L,0x1100010347004000L,0x0000000000BFF714L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000001400000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000001400000L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000140L}); |
| public static final BitSet FOLLOW_145 = new BitSet(new long[]{0x0000000000000000L,0x0020000000000000L}); |
| public static final BitSet FOLLOW_146 = new BitSet(new long[]{0x0000000000000002L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_147 = new BitSet(new long[]{0x0000000400000002L,0x0000010000000000L}); |
| public static final BitSet FOLLOW_148 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000003000L}); |
| public static final BitSet FOLLOW_149 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_150 = new BitSet(new long[]{0x0000000000000000L,0x0000000008000000L}); |
| public static final BitSet FOLLOW_151 = new BitSet(new long[]{0x0000000000000002L,0x0000000001000000L}); |
| public static final BitSet FOLLOW_152 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |