blob: de1daa7984c09737a5effd9335efc81ce385963b [file] [log] [blame]
package org.eclipse.osbp.dsl.datatype.xtext.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.dsl.datatype.xtext.services.DatatypeGrammarGrammarAccess;
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, 2015 - Lunifera GmbH (Gross Enzersdorf), Loetz GmbH&Co.KG (Heidelberg)
* 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:
* Florian Pirchner - Initial implementation
*
* generated by Xtext 2.11.0
*/
@SuppressWarnings("all")
public class InternalDatatypeGrammarParser extends AbstractInternalAntlrParser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_STRING", "RULE_ID", "RULE_HEX", "RULE_DECIMAL", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'class'", "'datatype'", "'jvmType'", "'asPrimitive'", "'properties'", "'('", "','", "')'", "'dateType'", "'asBlob'", "'isFalse'", "'['", "'msgCode'", "'='", "'msgI18nKey'", "'severity'", "']'", "'isTrue'", "'maxDecimal'", "'minDecimal'", "'digits'", "'isFuture'", "'isPast'", "'maxNumber'", "'minNumber'", "'isNotNull'", "'isNull'", "'regex'", "'minMaxSize'", "'enum'", "'asDefault'", "'forNull'", "'key'", "'value'", "'cachable'", "'id'", "'uuid'", "'transient'", "'version'", "'derived'", "'collection'", "'refers'", "'settings'", "'lazy'", "'notnull'", "'dto'", "'date'", "'mapto'", "'ref'", "'cascadeMergePersist'", "'cascadeRemove'", "'var'", "'+'", "'-'", "'.'", "'import'", "'static'", "'extension'", "'*'", "'ns'", "';'", "'@'", "'#'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'**'", "'/'", "'%'", "'!'", "'as'", "'++'", "'--'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'default'", "'case'", "'for'", "'while'", "'do'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'info'", "'warn'", "'error'", "'time'", "'timestamp'", "'private'", "'protected'", "'public'", "'<='", "'0'", "'1'"
};
public static final int T__144=144;
public static final int T__143=143;
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=6;
public static final int T__131=131;
public static final int T__130=130;
public static final int RULE_INT=4;
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__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__41=41;
public static final int T__42=42;
public static final int T__43=43;
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 InternalDatatypeGrammarParser(TokenStream input) {
this(input, new RecognizerSharedState());
}
public InternalDatatypeGrammarParser(TokenStream input, RecognizerSharedState state) {
super(input, state);
}
public String[] getTokenNames() { return InternalDatatypeGrammarParser.tokenNames; }
public String getGrammarFileName() { return "InternalDatatypeGrammar.g"; }
private DatatypeGrammarGrammarAccess grammarAccess;
public InternalDatatypeGrammarParser(TokenStream input, DatatypeGrammarGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
registerRules(grammarAccess.getGrammar());
}
@Override
protected String getFirstRuleName() {
return "LCommonModel";
}
@Override
protected DatatypeGrammarGrammarAccess getGrammarAccess() {
return grammarAccess;
}
// $ANTLR start "entryRuleLCommonModel"
// InternalDatatypeGrammar.g:76:1: entryRuleLCommonModel returns [EObject current=null] : iv_ruleLCommonModel= ruleLCommonModel EOF ;
public final EObject entryRuleLCommonModel() throws RecognitionException {
EObject current = null;
EObject iv_ruleLCommonModel = null;
try {
// InternalDatatypeGrammar.g:76:53: (iv_ruleLCommonModel= ruleLCommonModel EOF )
// InternalDatatypeGrammar.g:77:2: iv_ruleLCommonModel= ruleLCommonModel EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLCommonModelRule());
}
pushFollow(FOLLOW_1);
iv_ruleLCommonModel=ruleLCommonModel();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleLCommonModel;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleLCommonModel"
// $ANTLR start "ruleLCommonModel"
// InternalDatatypeGrammar.g:83:1: ruleLCommonModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTypedPackage ) )* ) ;
public final EObject ruleLCommonModel() throws RecognitionException {
EObject current = null;
EObject lv_importSection_0_0 = null;
EObject lv_packages_1_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:89:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTypedPackage ) )* ) )
// InternalDatatypeGrammar.g:90:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTypedPackage ) )* )
{
// InternalDatatypeGrammar.g:90:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTypedPackage ) )* )
// InternalDatatypeGrammar.g:91:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTypedPackage ) )*
{
// InternalDatatypeGrammar.g:91:3: ( (lv_importSection_0_0= ruleXImportSection ) )?
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==71) ) {
alt1=1;
}
switch (alt1) {
case 1 :
// InternalDatatypeGrammar.g:92:4: (lv_importSection_0_0= ruleXImportSection )
{
// InternalDatatypeGrammar.g:92:4: (lv_importSection_0_0= ruleXImportSection )
// InternalDatatypeGrammar.g:93:5: lv_importSection_0_0= ruleXImportSection
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLCommonModelAccess().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.getLCommonModelRule());
}
set(
current,
"importSection",
lv_importSection_0_0,
"org.eclipse.xtext.xbase.Xtype.XImportSection");
afterParserOrEnumRuleCall();
}
}
}
break;
}
// InternalDatatypeGrammar.g:110:3: ( (lv_packages_1_0= ruleTypedPackage ) )*
loop2:
do {
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==13) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// InternalDatatypeGrammar.g:111:4: (lv_packages_1_0= ruleTypedPackage )
{
// InternalDatatypeGrammar.g:111:4: (lv_packages_1_0= ruleTypedPackage )
// InternalDatatypeGrammar.g:112:5: lv_packages_1_0= ruleTypedPackage
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLCommonModelAccess().getPackagesTypedPackageParserRuleCall_1_0());
}
pushFollow(FOLLOW_3);
lv_packages_1_0=ruleTypedPackage();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getLCommonModelRule());
}
add(
current,
"packages",
lv_packages_1_0,
"org.eclipse.osbp.dsl.datatype.xtext.DatatypeGrammar.TypedPackage");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop2;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLCommonModel"
// $ANTLR start "entryRuleTypedPackage"
// InternalDatatypeGrammar.g:133:1: entryRuleTypedPackage returns [EObject current=null] : iv_ruleTypedPackage= ruleTypedPackage EOF ;
public final EObject entryRuleTypedPackage() throws RecognitionException {
EObject current = null;
EObject iv_ruleTypedPackage = null;
try {
// InternalDatatypeGrammar.g:133:53: (iv_ruleTypedPackage= ruleTypedPackage EOF )
// InternalDatatypeGrammar.g:134:2: iv_ruleTypedPackage= ruleTypedPackage EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypedPackageRule());
}
pushFollow(FOLLOW_1);
iv_ruleTypedPackage=ruleTypedPackage();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTypedPackage;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleTypedPackage"
// $ANTLR start "ruleTypedPackage"
// InternalDatatypeGrammar.g:140:1: ruleTypedPackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )? ) ;
public final EObject ruleTypedPackage() 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_types_4_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:146:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )? ) )
// InternalDatatypeGrammar.g:147:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )? )
{
// InternalDatatypeGrammar.g:147:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )? )
// InternalDatatypeGrammar.g:148:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )?
{
// InternalDatatypeGrammar.g:148:3: ()
// InternalDatatypeGrammar.g:149:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getTypedPackageAccess().getLTypedPackageAction_0(),
current);
}
}
otherlv_1=(Token)match(input,13,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getTypedPackageAccess().getPackageKeyword_1());
}
// InternalDatatypeGrammar.g:159:3: ( (lv_name_2_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:160:4: (lv_name_2_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:160:4: (lv_name_2_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:161:5: lv_name_2_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypedPackageAccess().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.getTypedPackageRule());
}
set(
current,
"name",
lv_name_2_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:178:3: (otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}' )?
int alt4=2;
int LA4_0 = input.LA(1);
if ( (LA4_0==14) ) {
alt4=1;
}
switch (alt4) {
case 1 :
// InternalDatatypeGrammar.g:179:4: otherlv_3= '{' ( (lv_types_4_0= ruleScalarType ) )* otherlv_5= '}'
{
otherlv_3=(Token)match(input,14,FOLLOW_6); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getTypedPackageAccess().getLeftCurlyBracketKeyword_3_0());
}
// InternalDatatypeGrammar.g:183:4: ( (lv_types_4_0= ruleScalarType ) )*
loop3:
do {
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==17||LA3_0==45) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// InternalDatatypeGrammar.g:184:5: (lv_types_4_0= ruleScalarType )
{
// InternalDatatypeGrammar.g:184:5: (lv_types_4_0= ruleScalarType )
// InternalDatatypeGrammar.g:185:6: lv_types_4_0= ruleScalarType
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTypedPackageAccess().getTypesScalarTypeParserRuleCall_3_1_0());
}
pushFollow(FOLLOW_6);
lv_types_4_0=ruleScalarType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getTypedPackageRule());
}
add(
current,
"types",
lv_types_4_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ScalarType");
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.getTypedPackageAccess().getRightCurlyBracketKeyword_3_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleTypedPackage"
// $ANTLR start "entryRuleClass"
// InternalDatatypeGrammar.g:211:1: entryRuleClass returns [EObject current=null] : iv_ruleClass= ruleClass EOF ;
public final EObject entryRuleClass() throws RecognitionException {
EObject current = null;
EObject iv_ruleClass = null;
try {
// InternalDatatypeGrammar.g:211:46: (iv_ruleClass= ruleClass EOF )
// InternalDatatypeGrammar.g:212:2: iv_ruleClass= ruleClass EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getClassRule());
}
pushFollow(FOLLOW_1);
iv_ruleClass=ruleClass();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleClass;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleClass"
// $ANTLR start "ruleClass"
// InternalDatatypeGrammar.g:218:1: ruleClass returns [EObject current=null] : ( () ( (lv_annotations_1_0= ruleAnnotationDef ) )* () otherlv_3= 'class' ) ;
public final EObject ruleClass() throws RecognitionException {
EObject current = null;
Token otherlv_3=null;
EObject lv_annotations_1_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:224:2: ( ( () ( (lv_annotations_1_0= ruleAnnotationDef ) )* () otherlv_3= 'class' ) )
// InternalDatatypeGrammar.g:225:2: ( () ( (lv_annotations_1_0= ruleAnnotationDef ) )* () otherlv_3= 'class' )
{
// InternalDatatypeGrammar.g:225:2: ( () ( (lv_annotations_1_0= ruleAnnotationDef ) )* () otherlv_3= 'class' )
// InternalDatatypeGrammar.g:226:3: () ( (lv_annotations_1_0= ruleAnnotationDef ) )* () otherlv_3= 'class'
{
// InternalDatatypeGrammar.g:226:3: ()
// InternalDatatypeGrammar.g:227:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getClassAccess().getLClassAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:233:3: ( (lv_annotations_1_0= ruleAnnotationDef ) )*
loop5:
do {
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==77) ) {
alt5=1;
}
switch (alt5) {
case 1 :
// InternalDatatypeGrammar.g:234:4: (lv_annotations_1_0= ruleAnnotationDef )
{
// InternalDatatypeGrammar.g:234:4: (lv_annotations_1_0= ruleAnnotationDef )
// InternalDatatypeGrammar.g:235:5: lv_annotations_1_0= ruleAnnotationDef
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getClassAccess().getAnnotationsAnnotationDefParserRuleCall_1_0());
}
pushFollow(FOLLOW_7);
lv_annotations_1_0=ruleAnnotationDef();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getClassRule());
}
add(
current,
"annotations",
lv_annotations_1_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.AnnotationDef");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop5;
}
} while (true);
// InternalDatatypeGrammar.g:252:3: ()
// InternalDatatypeGrammar.g:253:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getClassAccess().getLClassAnnotationInfoAction_2(),
current);
}
}
otherlv_3=(Token)match(input,16,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getClassAccess().getClassKeyword_3());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleClass"
// $ANTLR start "entryRuleDataType"
// InternalDatatypeGrammar.g:267:1: entryRuleDataType returns [EObject current=null] : iv_ruleDataType= ruleDataType EOF ;
public final EObject entryRuleDataType() throws RecognitionException {
EObject current = null;
EObject iv_ruleDataType = null;
try {
// InternalDatatypeGrammar.g:267:49: (iv_ruleDataType= ruleDataType EOF )
// InternalDatatypeGrammar.g:268:2: iv_ruleDataType= ruleDataType EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeRule());
}
pushFollow(FOLLOW_1);
iv_ruleDataType=ruleDataType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDataType;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDataType"
// $ANTLR start "ruleDataType"
// InternalDatatypeGrammar.g:274:1: ruleDataType returns [EObject current=null] : (otherlv_0= 'datatype' ( (lv_name_1_0= ruleValidIDWithKeywords ) ) ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) ) ) ;
public final EObject ruleDataType() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
Token lv_asPrimitive_4_0=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_11=null;
Token lv_date_12_0=null;
Token otherlv_15=null;
Token otherlv_16=null;
Token otherlv_18=null;
Token otherlv_20=null;
Token lv_asBlob_21_0=null;
Token otherlv_23=null;
Token otherlv_24=null;
Token otherlv_26=null;
Token otherlv_28=null;
AntlrDatatypeRuleToken lv_name_1_0 = null;
EObject lv_jvmTypeReference_3_0 = null;
EObject lv_constraints_5_0 = null;
EObject lv_properties_8_0 = null;
EObject lv_properties_10_0 = null;
Enumerator lv_dateType_13_0 = null;
EObject lv_constraints_14_0 = null;
EObject lv_properties_17_0 = null;
EObject lv_properties_19_0 = null;
EObject lv_constraints_22_0 = null;
EObject lv_properties_25_0 = null;
EObject lv_properties_27_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:280:2: ( (otherlv_0= 'datatype' ( (lv_name_1_0= ruleValidIDWithKeywords ) ) ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) ) ) )
// InternalDatatypeGrammar.g:281:2: (otherlv_0= 'datatype' ( (lv_name_1_0= ruleValidIDWithKeywords ) ) ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) ) )
{
// InternalDatatypeGrammar.g:281:2: (otherlv_0= 'datatype' ( (lv_name_1_0= ruleValidIDWithKeywords ) ) ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) ) )
// InternalDatatypeGrammar.g:282:3: otherlv_0= 'datatype' ( (lv_name_1_0= ruleValidIDWithKeywords ) ) ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) )
{
otherlv_0=(Token)match(input,17,FOLLOW_8); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getDataTypeAccess().getDatatypeKeyword_0());
}
// InternalDatatypeGrammar.g:286:3: ( (lv_name_1_0= ruleValidIDWithKeywords ) )
// InternalDatatypeGrammar.g:287:4: (lv_name_1_0= ruleValidIDWithKeywords )
{
// InternalDatatypeGrammar.g:287:4: (lv_name_1_0= ruleValidIDWithKeywords )
// InternalDatatypeGrammar.g:288:5: lv_name_1_0= ruleValidIDWithKeywords
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getNameValidIDWithKeywordsParserRuleCall_1_0());
}
pushFollow(FOLLOW_9);
lv_name_1_0=ruleValidIDWithKeywords();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
set(
current,
"name",
lv_name_1_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ValidIDWithKeywords");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:305:3: ( (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? ) | ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? ) | ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? ) )
int alt16=3;
switch ( input.LA(1) ) {
case 18:
{
alt16=1;
}
break;
case 24:
{
alt16=2;
}
break;
case 25:
{
alt16=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 16, 0, input);
throw nvae;
}
switch (alt16) {
case 1 :
// InternalDatatypeGrammar.g:306:4: (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? )
{
// InternalDatatypeGrammar.g:306:4: (otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )? )
// InternalDatatypeGrammar.g:307:5: otherlv_2= 'jvmType' ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) ) ( (lv_asPrimitive_4_0= 'asPrimitive' ) )? ( (lv_constraints_5_0= ruleDataTypeConstraint ) )* (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )?
{
otherlv_2=(Token)match(input,18,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDataTypeAccess().getJvmTypeKeyword_2_0_0());
}
// InternalDatatypeGrammar.g:311:5: ( (lv_jvmTypeReference_3_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:312:6: (lv_jvmTypeReference_3_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:312:6: (lv_jvmTypeReference_3_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:313:7: lv_jvmTypeReference_3_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getJvmTypeReferenceJvmTypeReferenceParserRuleCall_2_0_1_0());
}
pushFollow(FOLLOW_11);
lv_jvmTypeReference_3_0=ruleJvmTypeReference();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
set(
current,
"jvmTypeReference",
lv_jvmTypeReference_3_0,
"org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:330:5: ( (lv_asPrimitive_4_0= 'asPrimitive' ) )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==19) ) {
alt6=1;
}
switch (alt6) {
case 1 :
// InternalDatatypeGrammar.g:331:6: (lv_asPrimitive_4_0= 'asPrimitive' )
{
// InternalDatatypeGrammar.g:331:6: (lv_asPrimitive_4_0= 'asPrimitive' )
// InternalDatatypeGrammar.g:332:7: lv_asPrimitive_4_0= 'asPrimitive'
{
lv_asPrimitive_4_0=(Token)match(input,19,FOLLOW_12); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_asPrimitive_4_0, grammarAccess.getDataTypeAccess().getAsPrimitiveAsPrimitiveKeyword_2_0_2_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDataTypeRule());
}
setWithLastConsumed(current, "asPrimitive", true, "asPrimitive");
}
}
}
break;
}
// InternalDatatypeGrammar.g:344:5: ( (lv_constraints_5_0= ruleDataTypeConstraint ) )*
loop7:
do {
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==26||(LA7_0>=33 && LA7_0<=36)||(LA7_0>=39 && LA7_0<=44)) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// InternalDatatypeGrammar.g:345:6: (lv_constraints_5_0= ruleDataTypeConstraint )
{
// InternalDatatypeGrammar.g:345:6: (lv_constraints_5_0= ruleDataTypeConstraint )
// InternalDatatypeGrammar.g:346:7: lv_constraints_5_0= ruleDataTypeConstraint
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getConstraintsDataTypeConstraintParserRuleCall_2_0_3_0());
}
pushFollow(FOLLOW_12);
lv_constraints_5_0=ruleDataTypeConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"constraints",
lv_constraints_5_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.DataTypeConstraint");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop7;
}
} while (true);
// InternalDatatypeGrammar.g:363:5: (otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')' )?
int alt9=2;
int LA9_0 = input.LA(1);
if ( (LA9_0==20) ) {
alt9=1;
}
switch (alt9) {
case 1 :
// InternalDatatypeGrammar.g:364:6: otherlv_6= 'properties' otherlv_7= '(' ( (lv_properties_8_0= ruleKeyAndValue ) ) (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )* otherlv_11= ')'
{
otherlv_6=(Token)match(input,20,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDataTypeAccess().getPropertiesKeyword_2_0_4_0());
}
otherlv_7=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDataTypeAccess().getLeftParenthesisKeyword_2_0_4_1());
}
// InternalDatatypeGrammar.g:372:6: ( (lv_properties_8_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:373:7: (lv_properties_8_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:373:7: (lv_properties_8_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:374:8: lv_properties_8_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_0_4_2_0());
}
pushFollow(FOLLOW_15);
lv_properties_8_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_8_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:391:6: (otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) ) )*
loop8:
do {
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==22) ) {
alt8=1;
}
switch (alt8) {
case 1 :
// InternalDatatypeGrammar.g:392:7: otherlv_9= ',' ( (lv_properties_10_0= ruleKeyAndValue ) )
{
otherlv_9=(Token)match(input,22,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDataTypeAccess().getCommaKeyword_2_0_4_3_0());
}
// InternalDatatypeGrammar.g:396:7: ( (lv_properties_10_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:397:8: (lv_properties_10_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:397:8: (lv_properties_10_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:398:9: lv_properties_10_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_0_4_3_1_0());
}
pushFollow(FOLLOW_15);
lv_properties_10_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_10_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
}
break;
default :
break loop8;
}
} while (true);
otherlv_11=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDataTypeAccess().getRightParenthesisKeyword_2_0_4_4());
}
}
break;
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:423:4: ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? )
{
// InternalDatatypeGrammar.g:423:4: ( ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )? )
// InternalDatatypeGrammar.g:424:5: ( (lv_date_12_0= 'dateType' ) ) ( (lv_dateType_13_0= ruleDateType ) ) ( (lv_constraints_14_0= ruleDateConstraint ) )* (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )?
{
// InternalDatatypeGrammar.g:424:5: ( (lv_date_12_0= 'dateType' ) )
// InternalDatatypeGrammar.g:425:6: (lv_date_12_0= 'dateType' )
{
// InternalDatatypeGrammar.g:425:6: (lv_date_12_0= 'dateType' )
// InternalDatatypeGrammar.g:426:7: lv_date_12_0= 'dateType'
{
lv_date_12_0=(Token)match(input,24,FOLLOW_16); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_date_12_0, grammarAccess.getDataTypeAccess().getDateDateTypeKeyword_2_1_0_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDataTypeRule());
}
setWithLastConsumed(current, "date", true, "dateType");
}
}
}
// InternalDatatypeGrammar.g:438:5: ( (lv_dateType_13_0= ruleDateType ) )
// InternalDatatypeGrammar.g:439:6: (lv_dateType_13_0= ruleDateType )
{
// InternalDatatypeGrammar.g:439:6: (lv_dateType_13_0= ruleDateType )
// InternalDatatypeGrammar.g:440:7: lv_dateType_13_0= ruleDateType
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getDateTypeDateTypeEnumRuleCall_2_1_1_0());
}
pushFollow(FOLLOW_17);
lv_dateType_13_0=ruleDateType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
set(
current,
"dateType",
lv_dateType_13_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.DateType");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:457:5: ( (lv_constraints_14_0= ruleDateConstraint ) )*
loop10:
do {
int alt10=2;
int LA10_0 = input.LA(1);
if ( ((LA10_0>=37 && LA10_0<=38)||(LA10_0>=41 && LA10_0<=42)) ) {
alt10=1;
}
switch (alt10) {
case 1 :
// InternalDatatypeGrammar.g:458:6: (lv_constraints_14_0= ruleDateConstraint )
{
// InternalDatatypeGrammar.g:458:6: (lv_constraints_14_0= ruleDateConstraint )
// InternalDatatypeGrammar.g:459:7: lv_constraints_14_0= ruleDateConstraint
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getConstraintsDateConstraintParserRuleCall_2_1_2_0());
}
pushFollow(FOLLOW_17);
lv_constraints_14_0=ruleDateConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"constraints",
lv_constraints_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.DateConstraint");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop10;
}
} while (true);
// InternalDatatypeGrammar.g:476:5: (otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')' )?
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0==20) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// InternalDatatypeGrammar.g:477:6: otherlv_15= 'properties' otherlv_16= '(' ( (lv_properties_17_0= ruleKeyAndValue ) ) (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )* otherlv_20= ')'
{
otherlv_15=(Token)match(input,20,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDataTypeAccess().getPropertiesKeyword_2_1_3_0());
}
otherlv_16=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDataTypeAccess().getLeftParenthesisKeyword_2_1_3_1());
}
// InternalDatatypeGrammar.g:485:6: ( (lv_properties_17_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:486:7: (lv_properties_17_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:486:7: (lv_properties_17_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:487:8: lv_properties_17_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_1_3_2_0());
}
pushFollow(FOLLOW_15);
lv_properties_17_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_17_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:504:6: (otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) ) )*
loop11:
do {
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==22) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// InternalDatatypeGrammar.g:505:7: otherlv_18= ',' ( (lv_properties_19_0= ruleKeyAndValue ) )
{
otherlv_18=(Token)match(input,22,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_18, grammarAccess.getDataTypeAccess().getCommaKeyword_2_1_3_3_0());
}
// InternalDatatypeGrammar.g:509:7: ( (lv_properties_19_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:510:8: (lv_properties_19_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:510:8: (lv_properties_19_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:511:9: lv_properties_19_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_1_3_3_1_0());
}
pushFollow(FOLLOW_15);
lv_properties_19_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_19_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
}
break;
default :
break loop11;
}
} while (true);
otherlv_20=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_20, grammarAccess.getDataTypeAccess().getRightParenthesisKeyword_2_1_3_4());
}
}
break;
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:536:4: ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? )
{
// InternalDatatypeGrammar.g:536:4: ( ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )? )
// InternalDatatypeGrammar.g:537:5: ( (lv_asBlob_21_0= 'asBlob' ) ) ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )* (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )?
{
// InternalDatatypeGrammar.g:537:5: ( (lv_asBlob_21_0= 'asBlob' ) )
// InternalDatatypeGrammar.g:538:6: (lv_asBlob_21_0= 'asBlob' )
{
// InternalDatatypeGrammar.g:538:6: (lv_asBlob_21_0= 'asBlob' )
// InternalDatatypeGrammar.g:539:7: lv_asBlob_21_0= 'asBlob'
{
lv_asBlob_21_0=(Token)match(input,25,FOLLOW_18); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_asBlob_21_0, grammarAccess.getDataTypeAccess().getAsBlobAsBlobKeyword_2_2_0_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDataTypeRule());
}
setWithLastConsumed(current, "asBlob", true, "asBlob");
}
}
}
// InternalDatatypeGrammar.g:551:5: ( (lv_constraints_22_0= ruleBlobTypeConstraint ) )*
loop13:
do {
int alt13=2;
int LA13_0 = input.LA(1);
if ( ((LA13_0>=41 && LA13_0<=42)) ) {
alt13=1;
}
switch (alt13) {
case 1 :
// InternalDatatypeGrammar.g:552:6: (lv_constraints_22_0= ruleBlobTypeConstraint )
{
// InternalDatatypeGrammar.g:552:6: (lv_constraints_22_0= ruleBlobTypeConstraint )
// InternalDatatypeGrammar.g:553:7: lv_constraints_22_0= ruleBlobTypeConstraint
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getConstraintsBlobTypeConstraintParserRuleCall_2_2_1_0());
}
pushFollow(FOLLOW_18);
lv_constraints_22_0=ruleBlobTypeConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"constraints",
lv_constraints_22_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.BlobTypeConstraint");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop13;
}
} while (true);
// InternalDatatypeGrammar.g:570:5: (otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')' )?
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==20) ) {
alt15=1;
}
switch (alt15) {
case 1 :
// InternalDatatypeGrammar.g:571:6: otherlv_23= 'properties' otherlv_24= '(' ( (lv_properties_25_0= ruleKeyAndValue ) ) (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )* otherlv_28= ')'
{
otherlv_23=(Token)match(input,20,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_23, grammarAccess.getDataTypeAccess().getPropertiesKeyword_2_2_2_0());
}
otherlv_24=(Token)match(input,21,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_24, grammarAccess.getDataTypeAccess().getLeftParenthesisKeyword_2_2_2_1());
}
// InternalDatatypeGrammar.g:579:6: ( (lv_properties_25_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:580:7: (lv_properties_25_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:580:7: (lv_properties_25_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:581:8: lv_properties_25_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_2_2_2_0());
}
pushFollow(FOLLOW_15);
lv_properties_25_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_25_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:598:6: (otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) ) )*
loop14:
do {
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==22) ) {
alt14=1;
}
switch (alt14) {
case 1 :
// InternalDatatypeGrammar.g:599:7: otherlv_26= ',' ( (lv_properties_27_0= ruleKeyAndValue ) )
{
otherlv_26=(Token)match(input,22,FOLLOW_14); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_26, grammarAccess.getDataTypeAccess().getCommaKeyword_2_2_2_3_0());
}
// InternalDatatypeGrammar.g:603:7: ( (lv_properties_27_0= ruleKeyAndValue ) )
// InternalDatatypeGrammar.g:604:8: (lv_properties_27_0= ruleKeyAndValue )
{
// InternalDatatypeGrammar.g:604:8: (lv_properties_27_0= ruleKeyAndValue )
// InternalDatatypeGrammar.g:605:9: lv_properties_27_0= ruleKeyAndValue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeAccess().getPropertiesKeyAndValueParserRuleCall_2_2_2_3_1_0());
}
pushFollow(FOLLOW_15);
lv_properties_27_0=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDataTypeRule());
}
add(
current,
"properties",
lv_properties_27_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.KeyAndValue");
afterParserOrEnumRuleCall();
}
}
}
}
break;
default :
break loop14;
}
} while (true);
otherlv_28=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_28, grammarAccess.getDataTypeAccess().getRightParenthesisKeyword_2_2_2_4());
}
}
break;
}
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDataType"
// $ANTLR start "entryRuleDataTypeConstraint"
// InternalDatatypeGrammar.g:634:1: entryRuleDataTypeConstraint returns [EObject current=null] : iv_ruleDataTypeConstraint= ruleDataTypeConstraint EOF ;
public final EObject entryRuleDataTypeConstraint() throws RecognitionException {
EObject current = null;
EObject iv_ruleDataTypeConstraint = null;
try {
// InternalDatatypeGrammar.g:634:59: (iv_ruleDataTypeConstraint= ruleDataTypeConstraint EOF )
// InternalDatatypeGrammar.g:635:2: iv_ruleDataTypeConstraint= ruleDataTypeConstraint EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintRule());
}
pushFollow(FOLLOW_1);
iv_ruleDataTypeConstraint=ruleDataTypeConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDataTypeConstraint;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDataTypeConstraint"
// $ANTLR start "ruleDataTypeConstraint"
// InternalDatatypeGrammar.g:641:1: ruleDataTypeConstraint returns [EObject current=null] : (this_DtCAssertFalse_0= ruleDtCAssertFalse | this_DtCAssertTrue_1= ruleDtCAssertTrue | this_DtCDecimalMax_2= ruleDtCDecimalMax | this_DtCDecimalMin_3= ruleDtCDecimalMin | this_DtCDigits_4= ruleDtCDigits | this_DtCNumericMax_5= ruleDtCNumericMax | this_DtCNumericMin_6= ruleDtCNumericMin | this_DtCNotNull_7= ruleDtCNotNull | this_DtCNull_8= ruleDtCNull | this_DtCRegEx_9= ruleDtCRegEx | this_DtCSize_10= ruleDtCSize ) ;
public final EObject ruleDataTypeConstraint() throws RecognitionException {
EObject current = null;
EObject this_DtCAssertFalse_0 = null;
EObject this_DtCAssertTrue_1 = null;
EObject this_DtCDecimalMax_2 = null;
EObject this_DtCDecimalMin_3 = null;
EObject this_DtCDigits_4 = null;
EObject this_DtCNumericMax_5 = null;
EObject this_DtCNumericMin_6 = null;
EObject this_DtCNotNull_7 = null;
EObject this_DtCNull_8 = null;
EObject this_DtCRegEx_9 = null;
EObject this_DtCSize_10 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:647:2: ( (this_DtCAssertFalse_0= ruleDtCAssertFalse | this_DtCAssertTrue_1= ruleDtCAssertTrue | this_DtCDecimalMax_2= ruleDtCDecimalMax | this_DtCDecimalMin_3= ruleDtCDecimalMin | this_DtCDigits_4= ruleDtCDigits | this_DtCNumericMax_5= ruleDtCNumericMax | this_DtCNumericMin_6= ruleDtCNumericMin | this_DtCNotNull_7= ruleDtCNotNull | this_DtCNull_8= ruleDtCNull | this_DtCRegEx_9= ruleDtCRegEx | this_DtCSize_10= ruleDtCSize ) )
// InternalDatatypeGrammar.g:648:2: (this_DtCAssertFalse_0= ruleDtCAssertFalse | this_DtCAssertTrue_1= ruleDtCAssertTrue | this_DtCDecimalMax_2= ruleDtCDecimalMax | this_DtCDecimalMin_3= ruleDtCDecimalMin | this_DtCDigits_4= ruleDtCDigits | this_DtCNumericMax_5= ruleDtCNumericMax | this_DtCNumericMin_6= ruleDtCNumericMin | this_DtCNotNull_7= ruleDtCNotNull | this_DtCNull_8= ruleDtCNull | this_DtCRegEx_9= ruleDtCRegEx | this_DtCSize_10= ruleDtCSize )
{
// InternalDatatypeGrammar.g:648:2: (this_DtCAssertFalse_0= ruleDtCAssertFalse | this_DtCAssertTrue_1= ruleDtCAssertTrue | this_DtCDecimalMax_2= ruleDtCDecimalMax | this_DtCDecimalMin_3= ruleDtCDecimalMin | this_DtCDigits_4= ruleDtCDigits | this_DtCNumericMax_5= ruleDtCNumericMax | this_DtCNumericMin_6= ruleDtCNumericMin | this_DtCNotNull_7= ruleDtCNotNull | this_DtCNull_8= ruleDtCNull | this_DtCRegEx_9= ruleDtCRegEx | this_DtCSize_10= ruleDtCSize )
int alt17=11;
switch ( input.LA(1) ) {
case 26:
{
alt17=1;
}
break;
case 33:
{
alt17=2;
}
break;
case 34:
{
alt17=3;
}
break;
case 35:
{
alt17=4;
}
break;
case 36:
{
alt17=5;
}
break;
case 39:
{
alt17=6;
}
break;
case 40:
{
alt17=7;
}
break;
case 41:
{
alt17=8;
}
break;
case 42:
{
alt17=9;
}
break;
case 43:
{
alt17=10;
}
break;
case 44:
{
alt17=11;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 17, 0, input);
throw nvae;
}
switch (alt17) {
case 1 :
// InternalDatatypeGrammar.g:649:3: this_DtCAssertFalse_0= ruleDtCAssertFalse
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCAssertFalseParserRuleCall_0());
}
pushFollow(FOLLOW_2);
this_DtCAssertFalse_0=ruleDtCAssertFalse();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCAssertFalse_0;
afterParserOrEnumRuleCall();
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:658:3: this_DtCAssertTrue_1= ruleDtCAssertTrue
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCAssertTrueParserRuleCall_1());
}
pushFollow(FOLLOW_2);
this_DtCAssertTrue_1=ruleDtCAssertTrue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCAssertTrue_1;
afterParserOrEnumRuleCall();
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:667:3: this_DtCDecimalMax_2= ruleDtCDecimalMax
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCDecimalMaxParserRuleCall_2());
}
pushFollow(FOLLOW_2);
this_DtCDecimalMax_2=ruleDtCDecimalMax();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCDecimalMax_2;
afterParserOrEnumRuleCall();
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:676:3: this_DtCDecimalMin_3= ruleDtCDecimalMin
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCDecimalMinParserRuleCall_3());
}
pushFollow(FOLLOW_2);
this_DtCDecimalMin_3=ruleDtCDecimalMin();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCDecimalMin_3;
afterParserOrEnumRuleCall();
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:685:3: this_DtCDigits_4= ruleDtCDigits
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCDigitsParserRuleCall_4());
}
pushFollow(FOLLOW_2);
this_DtCDigits_4=ruleDtCDigits();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCDigits_4;
afterParserOrEnumRuleCall();
}
}
break;
case 6 :
// InternalDatatypeGrammar.g:694:3: this_DtCNumericMax_5= ruleDtCNumericMax
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCNumericMaxParserRuleCall_5());
}
pushFollow(FOLLOW_2);
this_DtCNumericMax_5=ruleDtCNumericMax();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNumericMax_5;
afterParserOrEnumRuleCall();
}
}
break;
case 7 :
// InternalDatatypeGrammar.g:703:3: this_DtCNumericMin_6= ruleDtCNumericMin
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCNumericMinParserRuleCall_6());
}
pushFollow(FOLLOW_2);
this_DtCNumericMin_6=ruleDtCNumericMin();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNumericMin_6;
afterParserOrEnumRuleCall();
}
}
break;
case 8 :
// InternalDatatypeGrammar.g:712:3: this_DtCNotNull_7= ruleDtCNotNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCNotNullParserRuleCall_7());
}
pushFollow(FOLLOW_2);
this_DtCNotNull_7=ruleDtCNotNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNotNull_7;
afterParserOrEnumRuleCall();
}
}
break;
case 9 :
// InternalDatatypeGrammar.g:721:3: this_DtCNull_8= ruleDtCNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCNullParserRuleCall_8());
}
pushFollow(FOLLOW_2);
this_DtCNull_8=ruleDtCNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNull_8;
afterParserOrEnumRuleCall();
}
}
break;
case 10 :
// InternalDatatypeGrammar.g:730:3: this_DtCRegEx_9= ruleDtCRegEx
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCRegExParserRuleCall_9());
}
pushFollow(FOLLOW_2);
this_DtCRegEx_9=ruleDtCRegEx();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCRegEx_9;
afterParserOrEnumRuleCall();
}
}
break;
case 11 :
// InternalDatatypeGrammar.g:739:3: this_DtCSize_10= ruleDtCSize
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDataTypeConstraintAccess().getDtCSizeParserRuleCall_10());
}
pushFollow(FOLLOW_2);
this_DtCSize_10=ruleDtCSize();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCSize_10;
afterParserOrEnumRuleCall();
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDataTypeConstraint"
// $ANTLR start "entryRuleDateConstraint"
// InternalDatatypeGrammar.g:751:1: entryRuleDateConstraint returns [EObject current=null] : iv_ruleDateConstraint= ruleDateConstraint EOF ;
public final EObject entryRuleDateConstraint() throws RecognitionException {
EObject current = null;
EObject iv_ruleDateConstraint = null;
try {
// InternalDatatypeGrammar.g:751:55: (iv_ruleDateConstraint= ruleDateConstraint EOF )
// InternalDatatypeGrammar.g:752:2: iv_ruleDateConstraint= ruleDateConstraint EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDateConstraintRule());
}
pushFollow(FOLLOW_1);
iv_ruleDateConstraint=ruleDateConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDateConstraint;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDateConstraint"
// $ANTLR start "ruleDateConstraint"
// InternalDatatypeGrammar.g:758:1: ruleDateConstraint returns [EObject current=null] : (this_DtCFuture_0= ruleDtCFuture | this_DtCPast_1= ruleDtCPast | this_DtCNotNull_2= ruleDtCNotNull | this_DtCNull_3= ruleDtCNull ) ;
public final EObject ruleDateConstraint() throws RecognitionException {
EObject current = null;
EObject this_DtCFuture_0 = null;
EObject this_DtCPast_1 = null;
EObject this_DtCNotNull_2 = null;
EObject this_DtCNull_3 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:764:2: ( (this_DtCFuture_0= ruleDtCFuture | this_DtCPast_1= ruleDtCPast | this_DtCNotNull_2= ruleDtCNotNull | this_DtCNull_3= ruleDtCNull ) )
// InternalDatatypeGrammar.g:765:2: (this_DtCFuture_0= ruleDtCFuture | this_DtCPast_1= ruleDtCPast | this_DtCNotNull_2= ruleDtCNotNull | this_DtCNull_3= ruleDtCNull )
{
// InternalDatatypeGrammar.g:765:2: (this_DtCFuture_0= ruleDtCFuture | this_DtCPast_1= ruleDtCPast | this_DtCNotNull_2= ruleDtCNotNull | this_DtCNull_3= ruleDtCNull )
int alt18=4;
switch ( input.LA(1) ) {
case 37:
{
alt18=1;
}
break;
case 38:
{
alt18=2;
}
break;
case 41:
{
alt18=3;
}
break;
case 42:
{
alt18=4;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 18, 0, input);
throw nvae;
}
switch (alt18) {
case 1 :
// InternalDatatypeGrammar.g:766:3: this_DtCFuture_0= ruleDtCFuture
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDateConstraintAccess().getDtCFutureParserRuleCall_0());
}
pushFollow(FOLLOW_2);
this_DtCFuture_0=ruleDtCFuture();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCFuture_0;
afterParserOrEnumRuleCall();
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:775:3: this_DtCPast_1= ruleDtCPast
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDateConstraintAccess().getDtCPastParserRuleCall_1());
}
pushFollow(FOLLOW_2);
this_DtCPast_1=ruleDtCPast();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCPast_1;
afterParserOrEnumRuleCall();
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:784:3: this_DtCNotNull_2= ruleDtCNotNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDateConstraintAccess().getDtCNotNullParserRuleCall_2());
}
pushFollow(FOLLOW_2);
this_DtCNotNull_2=ruleDtCNotNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNotNull_2;
afterParserOrEnumRuleCall();
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:793:3: this_DtCNull_3= ruleDtCNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDateConstraintAccess().getDtCNullParserRuleCall_3());
}
pushFollow(FOLLOW_2);
this_DtCNull_3=ruleDtCNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNull_3;
afterParserOrEnumRuleCall();
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDateConstraint"
// $ANTLR start "entryRuleBlobTypeConstraint"
// InternalDatatypeGrammar.g:805:1: entryRuleBlobTypeConstraint returns [EObject current=null] : iv_ruleBlobTypeConstraint= ruleBlobTypeConstraint EOF ;
public final EObject entryRuleBlobTypeConstraint() throws RecognitionException {
EObject current = null;
EObject iv_ruleBlobTypeConstraint = null;
try {
// InternalDatatypeGrammar.g:805:59: (iv_ruleBlobTypeConstraint= ruleBlobTypeConstraint EOF )
// InternalDatatypeGrammar.g:806:2: iv_ruleBlobTypeConstraint= ruleBlobTypeConstraint EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getBlobTypeConstraintRule());
}
pushFollow(FOLLOW_1);
iv_ruleBlobTypeConstraint=ruleBlobTypeConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleBlobTypeConstraint;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleBlobTypeConstraint"
// $ANTLR start "ruleBlobTypeConstraint"
// InternalDatatypeGrammar.g:812:1: ruleBlobTypeConstraint returns [EObject current=null] : (this_DtCNotNull_0= ruleDtCNotNull | this_DtCNull_1= ruleDtCNull ) ;
public final EObject ruleBlobTypeConstraint() throws RecognitionException {
EObject current = null;
EObject this_DtCNotNull_0 = null;
EObject this_DtCNull_1 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:818:2: ( (this_DtCNotNull_0= ruleDtCNotNull | this_DtCNull_1= ruleDtCNull ) )
// InternalDatatypeGrammar.g:819:2: (this_DtCNotNull_0= ruleDtCNotNull | this_DtCNull_1= ruleDtCNull )
{
// InternalDatatypeGrammar.g:819:2: (this_DtCNotNull_0= ruleDtCNotNull | this_DtCNull_1= ruleDtCNull )
int alt19=2;
int LA19_0 = input.LA(1);
if ( (LA19_0==41) ) {
alt19=1;
}
else if ( (LA19_0==42) ) {
alt19=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 19, 0, input);
throw nvae;
}
switch (alt19) {
case 1 :
// InternalDatatypeGrammar.g:820:3: this_DtCNotNull_0= ruleDtCNotNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getBlobTypeConstraintAccess().getDtCNotNullParserRuleCall_0());
}
pushFollow(FOLLOW_2);
this_DtCNotNull_0=ruleDtCNotNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNotNull_0;
afterParserOrEnumRuleCall();
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:829:3: this_DtCNull_1= ruleDtCNull
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getBlobTypeConstraintAccess().getDtCNullParserRuleCall_1());
}
pushFollow(FOLLOW_2);
this_DtCNull_1=ruleDtCNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DtCNull_1;
afterParserOrEnumRuleCall();
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleBlobTypeConstraint"
// $ANTLR start "entryRuleDtCAssertFalse"
// InternalDatatypeGrammar.g:841:1: entryRuleDtCAssertFalse returns [EObject current=null] : iv_ruleDtCAssertFalse= ruleDtCAssertFalse EOF ;
public final EObject entryRuleDtCAssertFalse() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCAssertFalse = null;
try {
// InternalDatatypeGrammar.g:841:55: (iv_ruleDtCAssertFalse= ruleDtCAssertFalse EOF )
// InternalDatatypeGrammar.g:842:2: iv_ruleDtCAssertFalse= ruleDtCAssertFalse EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertFalseRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCAssertFalse=ruleDtCAssertFalse();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCAssertFalse;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCAssertFalse"
// $ANTLR start "ruleDtCAssertFalse"
// InternalDatatypeGrammar.g:848:1: ruleDtCAssertFalse returns [EObject current=null] : ( () otherlv_1= 'isFalse' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCAssertFalse() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:854:2: ( ( () otherlv_1= 'isFalse' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:855:2: ( () otherlv_1= 'isFalse' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:855:2: ( () otherlv_1= 'isFalse' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:856:3: () otherlv_1= 'isFalse' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:856:3: ()
// InternalDatatypeGrammar.g:857:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCAssertFalseAccess().getLDtCAssertFalseAction_0(),
current);
}
}
otherlv_1=(Token)match(input,26,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCAssertFalseAccess().getIsFalseKeyword_1());
}
// InternalDatatypeGrammar.g:867:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt21=2;
int LA21_0 = input.LA(1);
if ( (LA21_0==27) ) {
alt21=1;
}
switch (alt21) {
case 1 :
// InternalDatatypeGrammar.g:868:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCAssertFalseAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:872:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:873:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:873:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:874:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:877:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:878:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:878:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop20:
do {
int alt20=4;
int LA20_0 = input.LA(1);
if ( LA20_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 0) ) {
alt20=1;
}
else if ( LA20_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 1) ) {
alt20=2;
}
else if ( LA20_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 2) ) {
alt20=3;
}
switch (alt20) {
case 1 :
// InternalDatatypeGrammar.g:879:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:879:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:880:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:880:114: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:881:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:884:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:884:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "true");
}
// InternalDatatypeGrammar.g:884:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:884:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCAssertFalseAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCAssertFalseAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:892:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:893:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:893:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:894:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertFalseAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertFalseRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:917:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:917:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:918:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:918:114: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:919:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:922:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:922:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "true");
}
// InternalDatatypeGrammar.g:922:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:922:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCAssertFalseAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCAssertFalseAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:930:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:931:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:931:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:932:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertFalseAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertFalseRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:955:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:955:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:956:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:956:114: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:957:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:960:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:960:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertFalse", "true");
}
// InternalDatatypeGrammar.g:960:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:960:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCAssertFalseAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCAssertFalseAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:968:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:969:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:969:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:970:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertFalseAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertFalseRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop20;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCAssertFalseAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCAssertFalseAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCAssertFalse"
// $ANTLR start "entryRuleDtCAssertTrue"
// InternalDatatypeGrammar.g:1009:1: entryRuleDtCAssertTrue returns [EObject current=null] : iv_ruleDtCAssertTrue= ruleDtCAssertTrue EOF ;
public final EObject entryRuleDtCAssertTrue() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCAssertTrue = null;
try {
// InternalDatatypeGrammar.g:1009:54: (iv_ruleDtCAssertTrue= ruleDtCAssertTrue EOF )
// InternalDatatypeGrammar.g:1010:2: iv_ruleDtCAssertTrue= ruleDtCAssertTrue EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertTrueRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCAssertTrue=ruleDtCAssertTrue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCAssertTrue;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCAssertTrue"
// $ANTLR start "ruleDtCAssertTrue"
// InternalDatatypeGrammar.g:1016:1: ruleDtCAssertTrue returns [EObject current=null] : ( () otherlv_1= 'isTrue' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCAssertTrue() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1022:2: ( ( () otherlv_1= 'isTrue' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:1023:2: ( () otherlv_1= 'isTrue' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:1023:2: ( () otherlv_1= 'isTrue' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:1024:3: () otherlv_1= 'isTrue' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:1024:3: ()
// InternalDatatypeGrammar.g:1025:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCAssertTrueAccess().getLDtCAssertTrueAction_0(),
current);
}
}
otherlv_1=(Token)match(input,33,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCAssertTrueAccess().getIsTrueKeyword_1());
}
// InternalDatatypeGrammar.g:1035:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt23=2;
int LA23_0 = input.LA(1);
if ( (LA23_0==27) ) {
alt23=1;
}
switch (alt23) {
case 1 :
// InternalDatatypeGrammar.g:1036:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCAssertTrueAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:1040:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1041:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1041:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1042:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:1045:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1046:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1046:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop22:
do {
int alt22=4;
int LA22_0 = input.LA(1);
if ( LA22_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 0) ) {
alt22=1;
}
else if ( LA22_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 1) ) {
alt22=2;
}
else if ( LA22_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 2) ) {
alt22=3;
}
switch (alt22) {
case 1 :
// InternalDatatypeGrammar.g:1047:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1047:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1048:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:1048:113: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1049:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:1052:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1052:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "true");
}
// InternalDatatypeGrammar.g:1052:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1052:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCAssertTrueAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCAssertTrueAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:1060:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1061:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1061:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1062:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertTrueAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertTrueRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:1085:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1085:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1086:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:1086:113: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1087:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:1090:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1090:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "true");
}
// InternalDatatypeGrammar.g:1090:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1090:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCAssertTrueAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCAssertTrueAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:1098:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1099:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1099:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1100:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertTrueAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertTrueRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:1123:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1123:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:1124:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:1124:113: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:1125:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:1128:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:1128:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCAssertTrue", "true");
}
// InternalDatatypeGrammar.g:1128:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:1128:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCAssertTrueAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCAssertTrueAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:1136:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:1137:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:1137:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:1138:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCAssertTrueAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCAssertTrueRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop22;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCAssertTrueAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCAssertTrueAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCAssertTrue"
// $ANTLR start "entryRuleDtCDecimalMax"
// InternalDatatypeGrammar.g:1177:1: entryRuleDtCDecimalMax returns [EObject current=null] : iv_ruleDtCDecimalMax= ruleDtCDecimalMax EOF ;
public final EObject entryRuleDtCDecimalMax() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCDecimalMax = null;
try {
// InternalDatatypeGrammar.g:1177:54: (iv_ruleDtCDecimalMax= ruleDtCDecimalMax EOF )
// InternalDatatypeGrammar.g:1178:2: iv_ruleDtCDecimalMax= ruleDtCDecimalMax EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMaxRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCDecimalMax=ruleDtCDecimalMax();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCDecimalMax;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCDecimalMax"
// $ANTLR start "ruleDtCDecimalMax"
// InternalDatatypeGrammar.g:1184:1: ruleDtCDecimalMax returns [EObject current=null] : ( () otherlv_1= 'maxDecimal' otherlv_2= '(' ( (lv_max_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) ;
public final EObject ruleDtCDecimalMax() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
AntlrDatatypeRuleToken lv_max_3_0 = null;
AntlrDatatypeRuleToken lv_msgCode_8_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_11_0 = null;
Enumerator lv_severity_14_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1190:2: ( ( () otherlv_1= 'maxDecimal' otherlv_2= '(' ( (lv_max_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) )
// InternalDatatypeGrammar.g:1191:2: ( () otherlv_1= 'maxDecimal' otherlv_2= '(' ( (lv_max_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
{
// InternalDatatypeGrammar.g:1191:2: ( () otherlv_1= 'maxDecimal' otherlv_2= '(' ( (lv_max_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
// InternalDatatypeGrammar.g:1192:3: () otherlv_1= 'maxDecimal' otherlv_2= '(' ( (lv_max_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')'
{
// InternalDatatypeGrammar.g:1192:3: ()
// InternalDatatypeGrammar.g:1193:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCDecimalMaxAccess().getLDtCDecimalMaxAction_0(),
current);
}
}
otherlv_1=(Token)match(input,34,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCDecimalMaxAccess().getMaxDecimalKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_23); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCDecimalMaxAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:1207:3: ( (lv_max_3_0= ruleLDecimal ) )
// InternalDatatypeGrammar.g:1208:4: (lv_max_3_0= ruleLDecimal )
{
// InternalDatatypeGrammar.g:1208:4: (lv_max_3_0= ruleLDecimal )
// InternalDatatypeGrammar.g:1209:5: lv_max_3_0= ruleLDecimal
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMaxAccess().getMaxLDecimalParserRuleCall_3_0());
}
pushFollow(FOLLOW_24);
lv_max_3_0=ruleLDecimal();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMaxRule());
}
set(
current,
"max",
lv_max_3_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.LDecimal");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:1226:3: (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )?
int alt25=2;
int LA25_0 = input.LA(1);
if ( (LA25_0==27) ) {
alt25=1;
}
switch (alt25) {
case 1 :
// InternalDatatypeGrammar.g:1227:4: otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']'
{
otherlv_4=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCDecimalMaxAccess().getLeftSquareBracketKeyword_4_0());
}
// InternalDatatypeGrammar.g:1231:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1232:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1232:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1233:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1());
// InternalDatatypeGrammar.g:1236:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1237:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1237:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop24:
do {
int alt24=4;
int LA24_0 = input.LA(1);
if ( LA24_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 0) ) {
alt24=1;
}
else if ( LA24_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 1) ) {
alt24=2;
}
else if ( LA24_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 2) ) {
alt24=3;
}
switch (alt24) {
case 1 :
// InternalDatatypeGrammar.g:1238:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1238:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1239:6: {...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 0)");
}
// InternalDatatypeGrammar.g:1239:113: ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1240:7: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 0);
// InternalDatatypeGrammar.g:1243:10: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1243:11: {...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "true");
}
// InternalDatatypeGrammar.g:1243:20: (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1243:21: otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) )
{
otherlv_6=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCDecimalMaxAccess().getMsgCodeKeyword_4_1_0_0());
}
otherlv_7=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCDecimalMaxAccess().getEqualsSignKeyword_4_1_0_1());
}
// InternalDatatypeGrammar.g:1251:10: ( (lv_msgCode_8_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1252:11: (lv_msgCode_8_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1252:11: (lv_msgCode_8_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1253:12: lv_msgCode_8_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMaxAccess().getMsgCodeQualifiedNameParserRuleCall_4_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_8_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMaxRule());
}
set(
current,
"msgCode",
lv_msgCode_8_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:1276:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1276:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1277:6: {...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 1)");
}
// InternalDatatypeGrammar.g:1277:113: ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1278:7: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 1);
// InternalDatatypeGrammar.g:1281:10: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1281:11: {...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "true");
}
// InternalDatatypeGrammar.g:1281:20: (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1281:21: otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
{
otherlv_9=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCDecimalMaxAccess().getMsgI18nKeyKeyword_4_1_1_0());
}
otherlv_10=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCDecimalMaxAccess().getEqualsSignKeyword_4_1_1_1());
}
// InternalDatatypeGrammar.g:1289:10: ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1290:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1290:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1291:12: lv_msgI18nKey_11_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMaxAccess().getMsgI18nKeyQualifiedNameParserRuleCall_4_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_11_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMaxRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_11_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:1314:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1314:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:1315:6: {...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 2)");
}
// InternalDatatypeGrammar.g:1315:113: ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:1316:7: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1(), 2);
// InternalDatatypeGrammar.g:1319:10: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:1319:11: {...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMax", "true");
}
// InternalDatatypeGrammar.g:1319:20: (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:1319:21: otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) )
{
otherlv_12=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCDecimalMaxAccess().getSeverityKeyword_4_1_2_0());
}
otherlv_13=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCDecimalMaxAccess().getEqualsSignKeyword_4_1_2_1());
}
// InternalDatatypeGrammar.g:1327:10: ( (lv_severity_14_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:1328:11: (lv_severity_14_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:1328:11: (lv_severity_14_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:1329:12: lv_severity_14_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMaxAccess().getSeverityConstraintSeverityEnumRuleCall_4_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_14_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMaxRule());
}
set(
current,
"severity",
lv_severity_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
default :
break loop24;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCDecimalMaxAccess().getUnorderedGroup_4_1());
}
otherlv_15=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCDecimalMaxAccess().getRightSquareBracketKeyword_4_2());
}
}
break;
}
otherlv_16=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDtCDecimalMaxAccess().getRightParenthesisKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCDecimalMax"
// $ANTLR start "entryRuleDtCDecimalMin"
// InternalDatatypeGrammar.g:1372:1: entryRuleDtCDecimalMin returns [EObject current=null] : iv_ruleDtCDecimalMin= ruleDtCDecimalMin EOF ;
public final EObject entryRuleDtCDecimalMin() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCDecimalMin = null;
try {
// InternalDatatypeGrammar.g:1372:54: (iv_ruleDtCDecimalMin= ruleDtCDecimalMin EOF )
// InternalDatatypeGrammar.g:1373:2: iv_ruleDtCDecimalMin= ruleDtCDecimalMin EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMinRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCDecimalMin=ruleDtCDecimalMin();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCDecimalMin;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCDecimalMin"
// $ANTLR start "ruleDtCDecimalMin"
// InternalDatatypeGrammar.g:1379:1: ruleDtCDecimalMin returns [EObject current=null] : ( () otherlv_1= 'minDecimal' otherlv_2= '(' ( (lv_min_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) ;
public final EObject ruleDtCDecimalMin() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
AntlrDatatypeRuleToken lv_min_3_0 = null;
AntlrDatatypeRuleToken lv_msgCode_8_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_11_0 = null;
Enumerator lv_severity_14_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1385:2: ( ( () otherlv_1= 'minDecimal' otherlv_2= '(' ( (lv_min_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) )
// InternalDatatypeGrammar.g:1386:2: ( () otherlv_1= 'minDecimal' otherlv_2= '(' ( (lv_min_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
{
// InternalDatatypeGrammar.g:1386:2: ( () otherlv_1= 'minDecimal' otherlv_2= '(' ( (lv_min_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
// InternalDatatypeGrammar.g:1387:3: () otherlv_1= 'minDecimal' otherlv_2= '(' ( (lv_min_3_0= ruleLDecimal ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')'
{
// InternalDatatypeGrammar.g:1387:3: ()
// InternalDatatypeGrammar.g:1388:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCDecimalMinAccess().getLDtCDecimalMinAction_0(),
current);
}
}
otherlv_1=(Token)match(input,35,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCDecimalMinAccess().getMinDecimalKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_23); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCDecimalMinAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:1402:3: ( (lv_min_3_0= ruleLDecimal ) )
// InternalDatatypeGrammar.g:1403:4: (lv_min_3_0= ruleLDecimal )
{
// InternalDatatypeGrammar.g:1403:4: (lv_min_3_0= ruleLDecimal )
// InternalDatatypeGrammar.g:1404:5: lv_min_3_0= ruleLDecimal
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMinAccess().getMinLDecimalParserRuleCall_3_0());
}
pushFollow(FOLLOW_24);
lv_min_3_0=ruleLDecimal();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMinRule());
}
set(
current,
"min",
lv_min_3_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.LDecimal");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:1421:3: (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )?
int alt27=2;
int LA27_0 = input.LA(1);
if ( (LA27_0==27) ) {
alt27=1;
}
switch (alt27) {
case 1 :
// InternalDatatypeGrammar.g:1422:4: otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']'
{
otherlv_4=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCDecimalMinAccess().getLeftSquareBracketKeyword_4_0());
}
// InternalDatatypeGrammar.g:1426:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1427:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1427:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1428:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1());
// InternalDatatypeGrammar.g:1431:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1432:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1432:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop26:
do {
int alt26=4;
int LA26_0 = input.LA(1);
if ( LA26_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 0) ) {
alt26=1;
}
else if ( LA26_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 1) ) {
alt26=2;
}
else if ( LA26_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 2) ) {
alt26=3;
}
switch (alt26) {
case 1 :
// InternalDatatypeGrammar.g:1433:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1433:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1434:6: {...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 0)");
}
// InternalDatatypeGrammar.g:1434:113: ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1435:7: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 0);
// InternalDatatypeGrammar.g:1438:10: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1438:11: {...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "true");
}
// InternalDatatypeGrammar.g:1438:20: (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1438:21: otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) )
{
otherlv_6=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCDecimalMinAccess().getMsgCodeKeyword_4_1_0_0());
}
otherlv_7=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCDecimalMinAccess().getEqualsSignKeyword_4_1_0_1());
}
// InternalDatatypeGrammar.g:1446:10: ( (lv_msgCode_8_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1447:11: (lv_msgCode_8_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1447:11: (lv_msgCode_8_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1448:12: lv_msgCode_8_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMinAccess().getMsgCodeQualifiedNameParserRuleCall_4_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_8_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMinRule());
}
set(
current,
"msgCode",
lv_msgCode_8_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:1471:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1471:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1472:6: {...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 1)");
}
// InternalDatatypeGrammar.g:1472:113: ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1473:7: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 1);
// InternalDatatypeGrammar.g:1476:10: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1476:11: {...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "true");
}
// InternalDatatypeGrammar.g:1476:20: (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1476:21: otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
{
otherlv_9=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCDecimalMinAccess().getMsgI18nKeyKeyword_4_1_1_0());
}
otherlv_10=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCDecimalMinAccess().getEqualsSignKeyword_4_1_1_1());
}
// InternalDatatypeGrammar.g:1484:10: ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1485:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1485:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1486:12: lv_msgI18nKey_11_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMinAccess().getMsgI18nKeyQualifiedNameParserRuleCall_4_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_11_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMinRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_11_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:1509:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1509:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:1510:6: {...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 2)");
}
// InternalDatatypeGrammar.g:1510:113: ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:1511:7: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1(), 2);
// InternalDatatypeGrammar.g:1514:10: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:1514:11: {...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDecimalMin", "true");
}
// InternalDatatypeGrammar.g:1514:20: (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:1514:21: otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) )
{
otherlv_12=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCDecimalMinAccess().getSeverityKeyword_4_1_2_0());
}
otherlv_13=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCDecimalMinAccess().getEqualsSignKeyword_4_1_2_1());
}
// InternalDatatypeGrammar.g:1522:10: ( (lv_severity_14_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:1523:11: (lv_severity_14_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:1523:11: (lv_severity_14_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:1524:12: lv_severity_14_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDecimalMinAccess().getSeverityConstraintSeverityEnumRuleCall_4_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_14_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDecimalMinRule());
}
set(
current,
"severity",
lv_severity_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
default :
break loop26;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCDecimalMinAccess().getUnorderedGroup_4_1());
}
otherlv_15=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCDecimalMinAccess().getRightSquareBracketKeyword_4_2());
}
}
break;
}
otherlv_16=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDtCDecimalMinAccess().getRightParenthesisKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCDecimalMin"
// $ANTLR start "entryRuleDtCDigits"
// InternalDatatypeGrammar.g:1567:1: entryRuleDtCDigits returns [EObject current=null] : iv_ruleDtCDigits= ruleDtCDigits EOF ;
public final EObject entryRuleDtCDigits() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCDigits = null;
try {
// InternalDatatypeGrammar.g:1567:50: (iv_ruleDtCDigits= ruleDtCDigits EOF )
// InternalDatatypeGrammar.g:1568:2: iv_ruleDtCDigits= ruleDtCDigits EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDigitsRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCDigits=ruleDtCDigits();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCDigits;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCDigits"
// $ANTLR start "ruleDtCDigits"
// InternalDatatypeGrammar.g:1574:1: ruleDtCDigits returns [EObject current=null] : ( () otherlv_1= 'digits' otherlv_2= '(' ( (lv_intDigits_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_fractionDigits_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' ) ;
public final EObject ruleDtCDigits() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token lv_intDigits_3_0=null;
Token otherlv_4=null;
Token lv_fractionDigits_5_0=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_17=null;
Token otherlv_18=null;
AntlrDatatypeRuleToken lv_msgCode_10_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_13_0 = null;
Enumerator lv_severity_16_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1580:2: ( ( () otherlv_1= 'digits' otherlv_2= '(' ( (lv_intDigits_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_fractionDigits_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' ) )
// InternalDatatypeGrammar.g:1581:2: ( () otherlv_1= 'digits' otherlv_2= '(' ( (lv_intDigits_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_fractionDigits_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' )
{
// InternalDatatypeGrammar.g:1581:2: ( () otherlv_1= 'digits' otherlv_2= '(' ( (lv_intDigits_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_fractionDigits_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' )
// InternalDatatypeGrammar.g:1582:3: () otherlv_1= 'digits' otherlv_2= '(' ( (lv_intDigits_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_fractionDigits_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')'
{
// InternalDatatypeGrammar.g:1582:3: ()
// InternalDatatypeGrammar.g:1583:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCDigitsAccess().getLDtCDigitsAction_0(),
current);
}
}
otherlv_1=(Token)match(input,36,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCDigitsAccess().getDigitsKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCDigitsAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:1597:3: ( (lv_intDigits_3_0= RULE_INT ) )
// InternalDatatypeGrammar.g:1598:4: (lv_intDigits_3_0= RULE_INT )
{
// InternalDatatypeGrammar.g:1598:4: (lv_intDigits_3_0= RULE_INT )
// InternalDatatypeGrammar.g:1599:5: lv_intDigits_3_0= RULE_INT
{
lv_intDigits_3_0=(Token)match(input,RULE_INT,FOLLOW_27); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_intDigits_3_0, grammarAccess.getDtCDigitsAccess().getIntDigitsINTTerminalRuleCall_3_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDtCDigitsRule());
}
setWithLastConsumed(
current,
"intDigits",
lv_intDigits_3_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
}
}
otherlv_4=(Token)match(input,22,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCDigitsAccess().getCommaKeyword_4());
}
// InternalDatatypeGrammar.g:1619:3: ( (lv_fractionDigits_5_0= RULE_INT ) )
// InternalDatatypeGrammar.g:1620:4: (lv_fractionDigits_5_0= RULE_INT )
{
// InternalDatatypeGrammar.g:1620:4: (lv_fractionDigits_5_0= RULE_INT )
// InternalDatatypeGrammar.g:1621:5: lv_fractionDigits_5_0= RULE_INT
{
lv_fractionDigits_5_0=(Token)match(input,RULE_INT,FOLLOW_24); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_fractionDigits_5_0, grammarAccess.getDtCDigitsAccess().getFractionDigitsINTTerminalRuleCall_5_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDtCDigitsRule());
}
setWithLastConsumed(
current,
"fractionDigits",
lv_fractionDigits_5_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
}
}
// InternalDatatypeGrammar.g:1637:3: (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )?
int alt29=2;
int LA29_0 = input.LA(1);
if ( (LA29_0==27) ) {
alt29=1;
}
switch (alt29) {
case 1 :
// InternalDatatypeGrammar.g:1638:4: otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']'
{
otherlv_6=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCDigitsAccess().getLeftSquareBracketKeyword_6_0());
}
// InternalDatatypeGrammar.g:1642:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1643:5: ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1643:5: ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1644:6: ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1());
// InternalDatatypeGrammar.g:1647:6: ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1648:7: ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1648:7: ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop28:
do {
int alt28=4;
int LA28_0 = input.LA(1);
if ( LA28_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 0) ) {
alt28=1;
}
else if ( LA28_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 1) ) {
alt28=2;
}
else if ( LA28_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 2) ) {
alt28=3;
}
switch (alt28) {
case 1 :
// InternalDatatypeGrammar.g:1649:5: ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1649:5: ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1650:6: {...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 0)");
}
// InternalDatatypeGrammar.g:1650:109: ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1651:7: ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 0);
// InternalDatatypeGrammar.g:1654:10: ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1654:11: {...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "true");
}
// InternalDatatypeGrammar.g:1654:20: (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1654:21: otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) )
{
otherlv_8=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCDigitsAccess().getMsgCodeKeyword_6_1_0_0());
}
otherlv_9=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCDigitsAccess().getEqualsSignKeyword_6_1_0_1());
}
// InternalDatatypeGrammar.g:1662:10: ( (lv_msgCode_10_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1663:11: (lv_msgCode_10_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1663:11: (lv_msgCode_10_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1664:12: lv_msgCode_10_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDigitsAccess().getMsgCodeQualifiedNameParserRuleCall_6_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_10_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDigitsRule());
}
set(
current,
"msgCode",
lv_msgCode_10_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:1687:5: ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1687:5: ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1688:6: {...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 1)");
}
// InternalDatatypeGrammar.g:1688:109: ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1689:7: ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 1);
// InternalDatatypeGrammar.g:1692:10: ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1692:11: {...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "true");
}
// InternalDatatypeGrammar.g:1692:20: (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1692:21: otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) )
{
otherlv_11=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCDigitsAccess().getMsgI18nKeyKeyword_6_1_1_0());
}
otherlv_12=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCDigitsAccess().getEqualsSignKeyword_6_1_1_1());
}
// InternalDatatypeGrammar.g:1700:10: ( (lv_msgI18nKey_13_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1701:11: (lv_msgI18nKey_13_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1701:11: (lv_msgI18nKey_13_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1702:12: lv_msgI18nKey_13_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDigitsAccess().getMsgI18nKeyQualifiedNameParserRuleCall_6_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_13_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDigitsRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_13_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:1725:5: ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1725:5: ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:1726:6: {...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 2)");
}
// InternalDatatypeGrammar.g:1726:109: ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:1727:7: ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1(), 2);
// InternalDatatypeGrammar.g:1730:10: ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:1730:11: {...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCDigits", "true");
}
// InternalDatatypeGrammar.g:1730:20: (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:1730:21: otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) )
{
otherlv_14=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_14, grammarAccess.getDtCDigitsAccess().getSeverityKeyword_6_1_2_0());
}
otherlv_15=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCDigitsAccess().getEqualsSignKeyword_6_1_2_1());
}
// InternalDatatypeGrammar.g:1738:10: ( (lv_severity_16_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:1739:11: (lv_severity_16_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:1739:11: (lv_severity_16_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:1740:12: lv_severity_16_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCDigitsAccess().getSeverityConstraintSeverityEnumRuleCall_6_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_16_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCDigitsRule());
}
set(
current,
"severity",
lv_severity_16_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1());
}
}
}
break;
default :
break loop28;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCDigitsAccess().getUnorderedGroup_6_1());
}
otherlv_17=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_17, grammarAccess.getDtCDigitsAccess().getRightSquareBracketKeyword_6_2());
}
}
break;
}
otherlv_18=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_18, grammarAccess.getDtCDigitsAccess().getRightParenthesisKeyword_7());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCDigits"
// $ANTLR start "entryRuleDtCFuture"
// InternalDatatypeGrammar.g:1783:1: entryRuleDtCFuture returns [EObject current=null] : iv_ruleDtCFuture= ruleDtCFuture EOF ;
public final EObject entryRuleDtCFuture() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCFuture = null;
try {
// InternalDatatypeGrammar.g:1783:50: (iv_ruleDtCFuture= ruleDtCFuture EOF )
// InternalDatatypeGrammar.g:1784:2: iv_ruleDtCFuture= ruleDtCFuture EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCFutureRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCFuture=ruleDtCFuture();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCFuture;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCFuture"
// $ANTLR start "ruleDtCFuture"
// InternalDatatypeGrammar.g:1790:1: ruleDtCFuture returns [EObject current=null] : ( () otherlv_1= 'isFuture' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCFuture() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1796:2: ( ( () otherlv_1= 'isFuture' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:1797:2: ( () otherlv_1= 'isFuture' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:1797:2: ( () otherlv_1= 'isFuture' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:1798:3: () otherlv_1= 'isFuture' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:1798:3: ()
// InternalDatatypeGrammar.g:1799:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCFutureAccess().getLDtCFutureAction_0(),
current);
}
}
otherlv_1=(Token)match(input,37,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCFutureAccess().getIsFutureKeyword_1());
}
// InternalDatatypeGrammar.g:1809:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt31=2;
int LA31_0 = input.LA(1);
if ( (LA31_0==27) ) {
alt31=1;
}
switch (alt31) {
case 1 :
// InternalDatatypeGrammar.g:1810:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCFutureAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:1814:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1815:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1815:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1816:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:1819:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1820:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1820:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop30:
do {
int alt30=4;
int LA30_0 = input.LA(1);
if ( LA30_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 0) ) {
alt30=1;
}
else if ( LA30_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 1) ) {
alt30=2;
}
else if ( LA30_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 2) ) {
alt30=3;
}
switch (alt30) {
case 1 :
// InternalDatatypeGrammar.g:1821:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1821:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1822:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:1822:109: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1823:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:1826:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1826:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "true");
}
// InternalDatatypeGrammar.g:1826:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1826:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCFutureAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCFutureAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:1834:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1835:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1835:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1836:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCFutureAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCFutureRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:1859:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1859:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1860:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:1860:109: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1861:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:1864:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1864:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "true");
}
// InternalDatatypeGrammar.g:1864:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1864:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCFutureAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCFutureAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:1872:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:1873:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:1873:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:1874:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCFutureAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCFutureRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:1897:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1897:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:1898:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:1898:109: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:1899:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:1902:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:1902:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCFuture", "true");
}
// InternalDatatypeGrammar.g:1902:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:1902:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCFutureAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCFutureAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:1910:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:1911:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:1911:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:1912:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCFutureAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCFutureRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop30;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCFutureAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCFutureAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCFuture"
// $ANTLR start "entryRuleDtCPast"
// InternalDatatypeGrammar.g:1951:1: entryRuleDtCPast returns [EObject current=null] : iv_ruleDtCPast= ruleDtCPast EOF ;
public final EObject entryRuleDtCPast() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCPast = null;
try {
// InternalDatatypeGrammar.g:1951:48: (iv_ruleDtCPast= ruleDtCPast EOF )
// InternalDatatypeGrammar.g:1952:2: iv_ruleDtCPast= ruleDtCPast EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCPastRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCPast=ruleDtCPast();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCPast;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCPast"
// $ANTLR start "ruleDtCPast"
// InternalDatatypeGrammar.g:1958:1: ruleDtCPast returns [EObject current=null] : ( () otherlv_1= 'isPast' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCPast() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:1964:2: ( ( () otherlv_1= 'isPast' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:1965:2: ( () otherlv_1= 'isPast' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:1965:2: ( () otherlv_1= 'isPast' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:1966:3: () otherlv_1= 'isPast' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:1966:3: ()
// InternalDatatypeGrammar.g:1967:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCPastAccess().getLDtCPastAction_0(),
current);
}
}
otherlv_1=(Token)match(input,38,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCPastAccess().getIsPastKeyword_1());
}
// InternalDatatypeGrammar.g:1977:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt33=2;
int LA33_0 = input.LA(1);
if ( (LA33_0==27) ) {
alt33=1;
}
switch (alt33) {
case 1 :
// InternalDatatypeGrammar.g:1978:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCPastAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:1982:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:1983:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:1983:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:1984:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:1987:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:1988:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:1988:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop32:
do {
int alt32=4;
int LA32_0 = input.LA(1);
if ( LA32_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 0) ) {
alt32=1;
}
else if ( LA32_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 1) ) {
alt32=2;
}
else if ( LA32_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 2) ) {
alt32=3;
}
switch (alt32) {
case 1 :
// InternalDatatypeGrammar.g:1989:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:1989:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:1990:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:1990:107: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:1991:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:1994:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:1994:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "true");
}
// InternalDatatypeGrammar.g:1994:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:1994:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCPastAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCPastAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:2002:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2003:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2003:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2004:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCPastAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCPastRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2027:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2027:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2028:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:2028:107: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2029:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:2032:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2032:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "true");
}
// InternalDatatypeGrammar.g:2032:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2032:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCPastAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCPastAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:2040:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2041:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2041:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2042:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCPastAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCPastRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2065:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2065:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2066:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:2066:107: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2067:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:2070:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2070:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCPast", "true");
}
// InternalDatatypeGrammar.g:2070:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2070:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCPastAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCPastAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:2078:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2079:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2079:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2080:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCPastAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCPastRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop32;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCPastAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCPastAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCPast"
// $ANTLR start "entryRuleDtCNumericMax"
// InternalDatatypeGrammar.g:2119:1: entryRuleDtCNumericMax returns [EObject current=null] : iv_ruleDtCNumericMax= ruleDtCNumericMax EOF ;
public final EObject entryRuleDtCNumericMax() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCNumericMax = null;
try {
// InternalDatatypeGrammar.g:2119:54: (iv_ruleDtCNumericMax= ruleDtCNumericMax EOF )
// InternalDatatypeGrammar.g:2120:2: iv_ruleDtCNumericMax= ruleDtCNumericMax EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMaxRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCNumericMax=ruleDtCNumericMax();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCNumericMax;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCNumericMax"
// $ANTLR start "ruleDtCNumericMax"
// InternalDatatypeGrammar.g:2126:1: ruleDtCNumericMax returns [EObject current=null] : ( () otherlv_1= 'maxNumber' otherlv_2= '(' ( (lv_max_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) ;
public final EObject ruleDtCNumericMax() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
AntlrDatatypeRuleToken lv_max_3_0 = null;
AntlrDatatypeRuleToken lv_msgCode_8_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_11_0 = null;
Enumerator lv_severity_14_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:2132:2: ( ( () otherlv_1= 'maxNumber' otherlv_2= '(' ( (lv_max_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) )
// InternalDatatypeGrammar.g:2133:2: ( () otherlv_1= 'maxNumber' otherlv_2= '(' ( (lv_max_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
{
// InternalDatatypeGrammar.g:2133:2: ( () otherlv_1= 'maxNumber' otherlv_2= '(' ( (lv_max_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
// InternalDatatypeGrammar.g:2134:3: () otherlv_1= 'maxNumber' otherlv_2= '(' ( (lv_max_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')'
{
// InternalDatatypeGrammar.g:2134:3: ()
// InternalDatatypeGrammar.g:2135:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCNumericMaxAccess().getLDtCNumericMaxAction_0(),
current);
}
}
otherlv_1=(Token)match(input,39,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCNumericMaxAccess().getMaxNumberKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_23); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCNumericMaxAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:2149:3: ( (lv_max_3_0= ruleLInt ) )
// InternalDatatypeGrammar.g:2150:4: (lv_max_3_0= ruleLInt )
{
// InternalDatatypeGrammar.g:2150:4: (lv_max_3_0= ruleLInt )
// InternalDatatypeGrammar.g:2151:5: lv_max_3_0= ruleLInt
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMaxAccess().getMaxLIntParserRuleCall_3_0());
}
pushFollow(FOLLOW_24);
lv_max_3_0=ruleLInt();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMaxRule());
}
set(
current,
"max",
lv_max_3_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.LInt");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:2168:3: (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )?
int alt35=2;
int LA35_0 = input.LA(1);
if ( (LA35_0==27) ) {
alt35=1;
}
switch (alt35) {
case 1 :
// InternalDatatypeGrammar.g:2169:4: otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']'
{
otherlv_4=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCNumericMaxAccess().getLeftSquareBracketKeyword_4_0());
}
// InternalDatatypeGrammar.g:2173:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:2174:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:2174:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:2175:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1());
// InternalDatatypeGrammar.g:2178:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:2179:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:2179:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop34:
do {
int alt34=4;
int LA34_0 = input.LA(1);
if ( LA34_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 0) ) {
alt34=1;
}
else if ( LA34_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 1) ) {
alt34=2;
}
else if ( LA34_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 2) ) {
alt34=3;
}
switch (alt34) {
case 1 :
// InternalDatatypeGrammar.g:2180:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2180:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2181:6: {...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 0)");
}
// InternalDatatypeGrammar.g:2181:113: ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2182:7: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 0);
// InternalDatatypeGrammar.g:2185:10: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2185:11: {...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "true");
}
// InternalDatatypeGrammar.g:2185:20: (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2185:21: otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) )
{
otherlv_6=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCNumericMaxAccess().getMsgCodeKeyword_4_1_0_0());
}
otherlv_7=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCNumericMaxAccess().getEqualsSignKeyword_4_1_0_1());
}
// InternalDatatypeGrammar.g:2193:10: ( (lv_msgCode_8_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2194:11: (lv_msgCode_8_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2194:11: (lv_msgCode_8_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2195:12: lv_msgCode_8_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMaxAccess().getMsgCodeQualifiedNameParserRuleCall_4_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_8_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMaxRule());
}
set(
current,
"msgCode",
lv_msgCode_8_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2218:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2218:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2219:6: {...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 1)");
}
// InternalDatatypeGrammar.g:2219:113: ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2220:7: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 1);
// InternalDatatypeGrammar.g:2223:10: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2223:11: {...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "true");
}
// InternalDatatypeGrammar.g:2223:20: (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2223:21: otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
{
otherlv_9=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCNumericMaxAccess().getMsgI18nKeyKeyword_4_1_1_0());
}
otherlv_10=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCNumericMaxAccess().getEqualsSignKeyword_4_1_1_1());
}
// InternalDatatypeGrammar.g:2231:10: ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2232:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2232:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2233:12: lv_msgI18nKey_11_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMaxAccess().getMsgI18nKeyQualifiedNameParserRuleCall_4_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_11_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMaxRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_11_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2256:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2256:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2257:6: {...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 2)");
}
// InternalDatatypeGrammar.g:2257:113: ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2258:7: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1(), 2);
// InternalDatatypeGrammar.g:2261:10: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2261:11: {...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMax", "true");
}
// InternalDatatypeGrammar.g:2261:20: (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2261:21: otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) )
{
otherlv_12=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCNumericMaxAccess().getSeverityKeyword_4_1_2_0());
}
otherlv_13=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCNumericMaxAccess().getEqualsSignKeyword_4_1_2_1());
}
// InternalDatatypeGrammar.g:2269:10: ( (lv_severity_14_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2270:11: (lv_severity_14_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2270:11: (lv_severity_14_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2271:12: lv_severity_14_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMaxAccess().getSeverityConstraintSeverityEnumRuleCall_4_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_14_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMaxRule());
}
set(
current,
"severity",
lv_severity_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1());
}
}
}
break;
default :
break loop34;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCNumericMaxAccess().getUnorderedGroup_4_1());
}
otherlv_15=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCNumericMaxAccess().getRightSquareBracketKeyword_4_2());
}
}
break;
}
otherlv_16=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDtCNumericMaxAccess().getRightParenthesisKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCNumericMax"
// $ANTLR start "entryRuleDtCNumericMin"
// InternalDatatypeGrammar.g:2314:1: entryRuleDtCNumericMin returns [EObject current=null] : iv_ruleDtCNumericMin= ruleDtCNumericMin EOF ;
public final EObject entryRuleDtCNumericMin() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCNumericMin = null;
try {
// InternalDatatypeGrammar.g:2314:54: (iv_ruleDtCNumericMin= ruleDtCNumericMin EOF )
// InternalDatatypeGrammar.g:2315:2: iv_ruleDtCNumericMin= ruleDtCNumericMin EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMinRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCNumericMin=ruleDtCNumericMin();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCNumericMin;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCNumericMin"
// $ANTLR start "ruleDtCNumericMin"
// InternalDatatypeGrammar.g:2321:1: ruleDtCNumericMin returns [EObject current=null] : ( () otherlv_1= 'minNumber' otherlv_2= '(' ( (lv_min_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) ;
public final EObject ruleDtCNumericMin() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
AntlrDatatypeRuleToken lv_min_3_0 = null;
AntlrDatatypeRuleToken lv_msgCode_8_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_11_0 = null;
Enumerator lv_severity_14_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:2327:2: ( ( () otherlv_1= 'minNumber' otherlv_2= '(' ( (lv_min_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) )
// InternalDatatypeGrammar.g:2328:2: ( () otherlv_1= 'minNumber' otherlv_2= '(' ( (lv_min_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
{
// InternalDatatypeGrammar.g:2328:2: ( () otherlv_1= 'minNumber' otherlv_2= '(' ( (lv_min_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
// InternalDatatypeGrammar.g:2329:3: () otherlv_1= 'minNumber' otherlv_2= '(' ( (lv_min_3_0= ruleLInt ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')'
{
// InternalDatatypeGrammar.g:2329:3: ()
// InternalDatatypeGrammar.g:2330:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCNumericMinAccess().getLDtCNumericMinAction_0(),
current);
}
}
otherlv_1=(Token)match(input,40,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCNumericMinAccess().getMinNumberKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_23); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCNumericMinAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:2344:3: ( (lv_min_3_0= ruleLInt ) )
// InternalDatatypeGrammar.g:2345:4: (lv_min_3_0= ruleLInt )
{
// InternalDatatypeGrammar.g:2345:4: (lv_min_3_0= ruleLInt )
// InternalDatatypeGrammar.g:2346:5: lv_min_3_0= ruleLInt
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMinAccess().getMinLIntParserRuleCall_3_0());
}
pushFollow(FOLLOW_24);
lv_min_3_0=ruleLInt();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMinRule());
}
set(
current,
"min",
lv_min_3_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.LInt");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:2363:3: (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )?
int alt37=2;
int LA37_0 = input.LA(1);
if ( (LA37_0==27) ) {
alt37=1;
}
switch (alt37) {
case 1 :
// InternalDatatypeGrammar.g:2364:4: otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']'
{
otherlv_4=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCNumericMinAccess().getLeftSquareBracketKeyword_4_0());
}
// InternalDatatypeGrammar.g:2368:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:2369:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:2369:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:2370:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1());
// InternalDatatypeGrammar.g:2373:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:2374:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:2374:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop36:
do {
int alt36=4;
int LA36_0 = input.LA(1);
if ( LA36_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 0) ) {
alt36=1;
}
else if ( LA36_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 1) ) {
alt36=2;
}
else if ( LA36_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 2) ) {
alt36=3;
}
switch (alt36) {
case 1 :
// InternalDatatypeGrammar.g:2375:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2375:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2376:6: {...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 0)");
}
// InternalDatatypeGrammar.g:2376:113: ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2377:7: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 0);
// InternalDatatypeGrammar.g:2380:10: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2380:11: {...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "true");
}
// InternalDatatypeGrammar.g:2380:20: (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2380:21: otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) )
{
otherlv_6=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCNumericMinAccess().getMsgCodeKeyword_4_1_0_0());
}
otherlv_7=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCNumericMinAccess().getEqualsSignKeyword_4_1_0_1());
}
// InternalDatatypeGrammar.g:2388:10: ( (lv_msgCode_8_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2389:11: (lv_msgCode_8_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2389:11: (lv_msgCode_8_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2390:12: lv_msgCode_8_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMinAccess().getMsgCodeQualifiedNameParserRuleCall_4_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_8_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMinRule());
}
set(
current,
"msgCode",
lv_msgCode_8_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2413:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2413:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2414:6: {...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 1)");
}
// InternalDatatypeGrammar.g:2414:113: ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2415:7: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 1);
// InternalDatatypeGrammar.g:2418:10: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2418:11: {...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "true");
}
// InternalDatatypeGrammar.g:2418:20: (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2418:21: otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
{
otherlv_9=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCNumericMinAccess().getMsgI18nKeyKeyword_4_1_1_0());
}
otherlv_10=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCNumericMinAccess().getEqualsSignKeyword_4_1_1_1());
}
// InternalDatatypeGrammar.g:2426:10: ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2427:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2427:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2428:12: lv_msgI18nKey_11_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMinAccess().getMsgI18nKeyQualifiedNameParserRuleCall_4_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_11_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMinRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_11_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2451:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2451:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2452:6: {...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 2)");
}
// InternalDatatypeGrammar.g:2452:113: ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2453:7: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1(), 2);
// InternalDatatypeGrammar.g:2456:10: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2456:11: {...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNumericMin", "true");
}
// InternalDatatypeGrammar.g:2456:20: (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2456:21: otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) )
{
otherlv_12=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCNumericMinAccess().getSeverityKeyword_4_1_2_0());
}
otherlv_13=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCNumericMinAccess().getEqualsSignKeyword_4_1_2_1());
}
// InternalDatatypeGrammar.g:2464:10: ( (lv_severity_14_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2465:11: (lv_severity_14_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2465:11: (lv_severity_14_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2466:12: lv_severity_14_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNumericMinAccess().getSeverityConstraintSeverityEnumRuleCall_4_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_14_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNumericMinRule());
}
set(
current,
"severity",
lv_severity_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1());
}
}
}
break;
default :
break loop36;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCNumericMinAccess().getUnorderedGroup_4_1());
}
otherlv_15=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCNumericMinAccess().getRightSquareBracketKeyword_4_2());
}
}
break;
}
otherlv_16=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDtCNumericMinAccess().getRightParenthesisKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCNumericMin"
// $ANTLR start "entryRuleDtCNotNull"
// InternalDatatypeGrammar.g:2509:1: entryRuleDtCNotNull returns [EObject current=null] : iv_ruleDtCNotNull= ruleDtCNotNull EOF ;
public final EObject entryRuleDtCNotNull() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCNotNull = null;
try {
// InternalDatatypeGrammar.g:2509:51: (iv_ruleDtCNotNull= ruleDtCNotNull EOF )
// InternalDatatypeGrammar.g:2510:2: iv_ruleDtCNotNull= ruleDtCNotNull EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNotNullRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCNotNull=ruleDtCNotNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCNotNull;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCNotNull"
// $ANTLR start "ruleDtCNotNull"
// InternalDatatypeGrammar.g:2516:1: ruleDtCNotNull returns [EObject current=null] : ( () otherlv_1= 'isNotNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCNotNull() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:2522:2: ( ( () otherlv_1= 'isNotNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:2523:2: ( () otherlv_1= 'isNotNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:2523:2: ( () otherlv_1= 'isNotNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:2524:3: () otherlv_1= 'isNotNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:2524:3: ()
// InternalDatatypeGrammar.g:2525:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCNotNullAccess().getLDtCNotNullAction_0(),
current);
}
}
otherlv_1=(Token)match(input,41,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCNotNullAccess().getIsNotNullKeyword_1());
}
// InternalDatatypeGrammar.g:2535:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt39=2;
int LA39_0 = input.LA(1);
if ( (LA39_0==27) ) {
alt39=1;
}
switch (alt39) {
case 1 :
// InternalDatatypeGrammar.g:2536:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCNotNullAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:2540:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:2541:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:2541:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:2542:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:2545:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:2546:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:2546:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop38:
do {
int alt38=4;
int LA38_0 = input.LA(1);
if ( LA38_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 0) ) {
alt38=1;
}
else if ( LA38_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 1) ) {
alt38=2;
}
else if ( LA38_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 2) ) {
alt38=3;
}
switch (alt38) {
case 1 :
// InternalDatatypeGrammar.g:2547:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2547:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2548:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:2548:110: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2549:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:2552:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2552:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "true");
}
// InternalDatatypeGrammar.g:2552:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2552:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCNotNullAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCNotNullAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:2560:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2561:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2561:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2562:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNotNullAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNotNullRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2585:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2585:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2586:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:2586:110: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2587:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:2590:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2590:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "true");
}
// InternalDatatypeGrammar.g:2590:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2590:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCNotNullAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCNotNullAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:2598:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2599:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2599:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2600:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNotNullAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNotNullRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2623:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2623:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2624:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:2624:110: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2625:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:2628:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2628:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNotNull", "true");
}
// InternalDatatypeGrammar.g:2628:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2628:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCNotNullAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCNotNullAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:2636:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2637:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2637:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2638:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNotNullAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNotNullRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop38;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCNotNullAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCNotNullAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCNotNull"
// $ANTLR start "entryRuleDtCNull"
// InternalDatatypeGrammar.g:2677:1: entryRuleDtCNull returns [EObject current=null] : iv_ruleDtCNull= ruleDtCNull EOF ;
public final EObject entryRuleDtCNull() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCNull = null;
try {
// InternalDatatypeGrammar.g:2677:48: (iv_ruleDtCNull= ruleDtCNull EOF )
// InternalDatatypeGrammar.g:2678:2: iv_ruleDtCNull= ruleDtCNull EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNullRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCNull=ruleDtCNull();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCNull;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCNull"
// $ANTLR start "ruleDtCNull"
// InternalDatatypeGrammar.g:2684:1: ruleDtCNull returns [EObject current=null] : ( () otherlv_1= 'isNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) ;
public final EObject ruleDtCNull() 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 otherlv_10=null;
Token otherlv_11=null;
Token otherlv_13=null;
AntlrDatatypeRuleToken lv_msgCode_6_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_9_0 = null;
Enumerator lv_severity_12_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:2690:2: ( ( () otherlv_1= 'isNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? ) )
// InternalDatatypeGrammar.g:2691:2: ( () otherlv_1= 'isNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
{
// InternalDatatypeGrammar.g:2691:2: ( () otherlv_1= 'isNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )? )
// InternalDatatypeGrammar.g:2692:3: () otherlv_1= 'isNull' (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
{
// InternalDatatypeGrammar.g:2692:3: ()
// InternalDatatypeGrammar.g:2693:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCNullAccess().getLDtCNullAction_0(),
current);
}
}
otherlv_1=(Token)match(input,42,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCNullAccess().getIsNullKeyword_1());
}
// InternalDatatypeGrammar.g:2703:3: (otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']' )?
int alt41=2;
int LA41_0 = input.LA(1);
if ( (LA41_0==27) ) {
alt41=1;
}
switch (alt41) {
case 1 :
// InternalDatatypeGrammar.g:2704:4: otherlv_2= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_13= ']'
{
otherlv_2=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCNullAccess().getLeftSquareBracketKeyword_2_0());
}
// InternalDatatypeGrammar.g:2708:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:2709:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:2709:5: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:2710:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1());
// InternalDatatypeGrammar.g:2713:6: ( ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:2714:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:2714:7: ( ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop40:
do {
int alt40=4;
int LA40_0 = input.LA(1);
if ( LA40_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 0) ) {
alt40=1;
}
else if ( LA40_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 1) ) {
alt40=2;
}
else if ( LA40_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 2) ) {
alt40=3;
}
switch (alt40) {
case 1 :
// InternalDatatypeGrammar.g:2715:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2715:5: ({...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2716:6: {...}? => ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 0)");
}
// InternalDatatypeGrammar.g:2716:107: ( ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2717:7: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 0);
// InternalDatatypeGrammar.g:2720:10: ({...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2720:11: {...}? => (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "true");
}
// InternalDatatypeGrammar.g:2720:20: (otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2720:21: otherlv_4= 'msgCode' otherlv_5= '=' ( (lv_msgCode_6_0= ruleQualifiedName ) )
{
otherlv_4=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCNullAccess().getMsgCodeKeyword_2_1_0_0());
}
otherlv_5=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getDtCNullAccess().getEqualsSignKeyword_2_1_0_1());
}
// InternalDatatypeGrammar.g:2728:10: ( (lv_msgCode_6_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2729:11: (lv_msgCode_6_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2729:11: (lv_msgCode_6_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2730:12: lv_msgCode_6_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNullAccess().getMsgCodeQualifiedNameParserRuleCall_2_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_6_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNullRule());
}
set(
current,
"msgCode",
lv_msgCode_6_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2753:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2753:5: ({...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2754:6: {...}? => ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 1)");
}
// InternalDatatypeGrammar.g:2754:107: ( ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2755:7: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 1);
// InternalDatatypeGrammar.g:2758:10: ({...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2758:11: {...}? => (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "true");
}
// InternalDatatypeGrammar.g:2758:20: (otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2758:21: otherlv_7= 'msgI18nKey' otherlv_8= '=' ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
{
otherlv_7=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCNullAccess().getMsgI18nKeyKeyword_2_1_1_0());
}
otherlv_8=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCNullAccess().getEqualsSignKeyword_2_1_1_1());
}
// InternalDatatypeGrammar.g:2766:10: ( (lv_msgI18nKey_9_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2767:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2767:11: (lv_msgI18nKey_9_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2768:12: lv_msgI18nKey_9_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNullAccess().getMsgI18nKeyQualifiedNameParserRuleCall_2_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_9_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNullRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_9_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2791:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2791:5: ({...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2792:6: {...}? => ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 2)");
}
// InternalDatatypeGrammar.g:2792:107: ( ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2793:7: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1(), 2);
// InternalDatatypeGrammar.g:2796:10: ({...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2796:11: {...}? => (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCNull", "true");
}
// InternalDatatypeGrammar.g:2796:20: (otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2796:21: otherlv_10= 'severity' otherlv_11= '=' ( (lv_severity_12_0= ruleConstraintSeverity ) )
{
otherlv_10=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCNullAccess().getSeverityKeyword_2_1_2_0());
}
otherlv_11=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCNullAccess().getEqualsSignKeyword_2_1_2_1());
}
// InternalDatatypeGrammar.g:2804:10: ( (lv_severity_12_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2805:11: (lv_severity_12_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2805:11: (lv_severity_12_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2806:12: lv_severity_12_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCNullAccess().getSeverityConstraintSeverityEnumRuleCall_2_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_12_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCNullRule());
}
set(
current,
"severity",
lv_severity_12_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1());
}
}
}
break;
default :
break loop40;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCNullAccess().getUnorderedGroup_2_1());
}
otherlv_13=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCNullAccess().getRightSquareBracketKeyword_2_2());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCNull"
// $ANTLR start "entryRuleDtCRegEx"
// InternalDatatypeGrammar.g:2845:1: entryRuleDtCRegEx returns [EObject current=null] : iv_ruleDtCRegEx= ruleDtCRegEx EOF ;
public final EObject entryRuleDtCRegEx() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCRegEx = null;
try {
// InternalDatatypeGrammar.g:2845:49: (iv_ruleDtCRegEx= ruleDtCRegEx EOF )
// InternalDatatypeGrammar.g:2846:2: iv_ruleDtCRegEx= ruleDtCRegEx EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCRegExRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCRegEx=ruleDtCRegEx();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCRegEx;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCRegEx"
// $ANTLR start "ruleDtCRegEx"
// InternalDatatypeGrammar.g:2852:1: ruleDtCRegEx returns [EObject current=null] : ( () otherlv_1= 'regex' otherlv_2= '(' ( (lv_pattern_3_0= RULE_STRING ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) ;
public final EObject ruleDtCRegEx() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token lv_pattern_3_0=null;
Token otherlv_4=null;
Token otherlv_6=null;
Token otherlv_7=null;
Token otherlv_9=null;
Token otherlv_10=null;
Token otherlv_12=null;
Token otherlv_13=null;
Token otherlv_15=null;
Token otherlv_16=null;
AntlrDatatypeRuleToken lv_msgCode_8_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_11_0 = null;
Enumerator lv_severity_14_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:2858:2: ( ( () otherlv_1= 'regex' otherlv_2= '(' ( (lv_pattern_3_0= RULE_STRING ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' ) )
// InternalDatatypeGrammar.g:2859:2: ( () otherlv_1= 'regex' otherlv_2= '(' ( (lv_pattern_3_0= RULE_STRING ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
{
// InternalDatatypeGrammar.g:2859:2: ( () otherlv_1= 'regex' otherlv_2= '(' ( (lv_pattern_3_0= RULE_STRING ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')' )
// InternalDatatypeGrammar.g:2860:3: () otherlv_1= 'regex' otherlv_2= '(' ( (lv_pattern_3_0= RULE_STRING ) ) (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )? otherlv_16= ')'
{
// InternalDatatypeGrammar.g:2860:3: ()
// InternalDatatypeGrammar.g:2861:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCRegExAccess().getLDtCRegExAction_0(),
current);
}
}
otherlv_1=(Token)match(input,43,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCRegExAccess().getRegexKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_28); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCRegExAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:2875:3: ( (lv_pattern_3_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:2876:4: (lv_pattern_3_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:2876:4: (lv_pattern_3_0= RULE_STRING )
// InternalDatatypeGrammar.g:2877:5: lv_pattern_3_0= RULE_STRING
{
lv_pattern_3_0=(Token)match(input,RULE_STRING,FOLLOW_24); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_pattern_3_0, grammarAccess.getDtCRegExAccess().getPatternSTRINGTerminalRuleCall_3_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDtCRegExRule());
}
setWithLastConsumed(
current,
"pattern",
lv_pattern_3_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
}
}
// InternalDatatypeGrammar.g:2893:3: (otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']' )?
int alt43=2;
int LA43_0 = input.LA(1);
if ( (LA43_0==27) ) {
alt43=1;
}
switch (alt43) {
case 1 :
// InternalDatatypeGrammar.g:2894:4: otherlv_4= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_15= ']'
{
otherlv_4=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCRegExAccess().getLeftSquareBracketKeyword_4_0());
}
// InternalDatatypeGrammar.g:2898:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:2899:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:2899:5: ( ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:2900:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1());
// InternalDatatypeGrammar.g:2903:6: ( ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:2904:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:2904:7: ( ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop42:
do {
int alt42=4;
int LA42_0 = input.LA(1);
if ( LA42_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 0) ) {
alt42=1;
}
else if ( LA42_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 1) ) {
alt42=2;
}
else if ( LA42_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 2) ) {
alt42=3;
}
switch (alt42) {
case 1 :
// InternalDatatypeGrammar.g:2905:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2905:5: ({...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2906:6: {...}? => ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 0)");
}
// InternalDatatypeGrammar.g:2906:108: ( ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2907:7: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 0);
// InternalDatatypeGrammar.g:2910:10: ({...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2910:11: {...}? => (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "true");
}
// InternalDatatypeGrammar.g:2910:20: (otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2910:21: otherlv_6= 'msgCode' otherlv_7= '=' ( (lv_msgCode_8_0= ruleQualifiedName ) )
{
otherlv_6=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCRegExAccess().getMsgCodeKeyword_4_1_0_0());
}
otherlv_7=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getDtCRegExAccess().getEqualsSignKeyword_4_1_0_1());
}
// InternalDatatypeGrammar.g:2918:10: ( (lv_msgCode_8_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2919:11: (lv_msgCode_8_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2919:11: (lv_msgCode_8_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2920:12: lv_msgCode_8_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCRegExAccess().getMsgCodeQualifiedNameParserRuleCall_4_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_8_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCRegExRule());
}
set(
current,
"msgCode",
lv_msgCode_8_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:2943:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2943:5: ({...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:2944:6: {...}? => ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 1)");
}
// InternalDatatypeGrammar.g:2944:108: ( ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:2945:7: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 1);
// InternalDatatypeGrammar.g:2948:10: ({...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:2948:11: {...}? => (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "true");
}
// InternalDatatypeGrammar.g:2948:20: (otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:2948:21: otherlv_9= 'msgI18nKey' otherlv_10= '=' ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
{
otherlv_9=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCRegExAccess().getMsgI18nKeyKeyword_4_1_1_0());
}
otherlv_10=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getDtCRegExAccess().getEqualsSignKeyword_4_1_1_1());
}
// InternalDatatypeGrammar.g:2956:10: ( (lv_msgI18nKey_11_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:2957:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:2957:11: (lv_msgI18nKey_11_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:2958:12: lv_msgI18nKey_11_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCRegExAccess().getMsgI18nKeyQualifiedNameParserRuleCall_4_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_11_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCRegExRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_11_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:2981:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:2981:5: ({...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:2982:6: {...}? => ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 2)");
}
// InternalDatatypeGrammar.g:2982:108: ( ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:2983:7: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1(), 2);
// InternalDatatypeGrammar.g:2986:10: ({...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:2986:11: {...}? => (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCRegEx", "true");
}
// InternalDatatypeGrammar.g:2986:20: (otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:2986:21: otherlv_12= 'severity' otherlv_13= '=' ( (lv_severity_14_0= ruleConstraintSeverity ) )
{
otherlv_12=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCRegExAccess().getSeverityKeyword_4_1_2_0());
}
otherlv_13=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getDtCRegExAccess().getEqualsSignKeyword_4_1_2_1());
}
// InternalDatatypeGrammar.g:2994:10: ( (lv_severity_14_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:2995:11: (lv_severity_14_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:2995:11: (lv_severity_14_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:2996:12: lv_severity_14_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCRegExAccess().getSeverityConstraintSeverityEnumRuleCall_4_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_14_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCRegExRule());
}
set(
current,
"severity",
lv_severity_14_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1());
}
}
}
break;
default :
break loop42;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCRegExAccess().getUnorderedGroup_4_1());
}
otherlv_15=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCRegExAccess().getRightSquareBracketKeyword_4_2());
}
}
break;
}
otherlv_16=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_16, grammarAccess.getDtCRegExAccess().getRightParenthesisKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCRegEx"
// $ANTLR start "entryRuleDtCSize"
// InternalDatatypeGrammar.g:3039:1: entryRuleDtCSize returns [EObject current=null] : iv_ruleDtCSize= ruleDtCSize EOF ;
public final EObject entryRuleDtCSize() throws RecognitionException {
EObject current = null;
EObject iv_ruleDtCSize = null;
try {
// InternalDatatypeGrammar.g:3039:48: (iv_ruleDtCSize= ruleDtCSize EOF )
// InternalDatatypeGrammar.g:3040:2: iv_ruleDtCSize= ruleDtCSize EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCSizeRule());
}
pushFollow(FOLLOW_1);
iv_ruleDtCSize=ruleDtCSize();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleDtCSize;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleDtCSize"
// $ANTLR start "ruleDtCSize"
// InternalDatatypeGrammar.g:3046:1: ruleDtCSize returns [EObject current=null] : ( () otherlv_1= 'minMaxSize' otherlv_2= '(' ( (lv_min_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_max_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' ) ;
public final EObject ruleDtCSize() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_2=null;
Token lv_min_3_0=null;
Token otherlv_4=null;
Token lv_max_5_0=null;
Token otherlv_6=null;
Token otherlv_8=null;
Token otherlv_9=null;
Token otherlv_11=null;
Token otherlv_12=null;
Token otherlv_14=null;
Token otherlv_15=null;
Token otherlv_17=null;
Token otherlv_18=null;
AntlrDatatypeRuleToken lv_msgCode_10_0 = null;
AntlrDatatypeRuleToken lv_msgI18nKey_13_0 = null;
Enumerator lv_severity_16_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3052:2: ( ( () otherlv_1= 'minMaxSize' otherlv_2= '(' ( (lv_min_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_max_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' ) )
// InternalDatatypeGrammar.g:3053:2: ( () otherlv_1= 'minMaxSize' otherlv_2= '(' ( (lv_min_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_max_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' )
{
// InternalDatatypeGrammar.g:3053:2: ( () otherlv_1= 'minMaxSize' otherlv_2= '(' ( (lv_min_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_max_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')' )
// InternalDatatypeGrammar.g:3054:3: () otherlv_1= 'minMaxSize' otherlv_2= '(' ( (lv_min_3_0= RULE_INT ) ) otherlv_4= ',' ( (lv_max_5_0= RULE_INT ) ) (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )? otherlv_18= ')'
{
// InternalDatatypeGrammar.g:3054:3: ()
// InternalDatatypeGrammar.g:3055:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getDtCSizeAccess().getLDtCSizeAction_0(),
current);
}
}
otherlv_1=(Token)match(input,44,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getDtCSizeAccess().getMinMaxSizeKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getDtCSizeAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:3069:3: ( (lv_min_3_0= RULE_INT ) )
// InternalDatatypeGrammar.g:3070:4: (lv_min_3_0= RULE_INT )
{
// InternalDatatypeGrammar.g:3070:4: (lv_min_3_0= RULE_INT )
// InternalDatatypeGrammar.g:3071:5: lv_min_3_0= RULE_INT
{
lv_min_3_0=(Token)match(input,RULE_INT,FOLLOW_27); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_min_3_0, grammarAccess.getDtCSizeAccess().getMinINTTerminalRuleCall_3_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDtCSizeRule());
}
setWithLastConsumed(
current,
"min",
lv_min_3_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
}
}
otherlv_4=(Token)match(input,22,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getDtCSizeAccess().getCommaKeyword_4());
}
// InternalDatatypeGrammar.g:3091:3: ( (lv_max_5_0= RULE_INT ) )
// InternalDatatypeGrammar.g:3092:4: (lv_max_5_0= RULE_INT )
{
// InternalDatatypeGrammar.g:3092:4: (lv_max_5_0= RULE_INT )
// InternalDatatypeGrammar.g:3093:5: lv_max_5_0= RULE_INT
{
lv_max_5_0=(Token)match(input,RULE_INT,FOLLOW_24); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_max_5_0, grammarAccess.getDtCSizeAccess().getMaxINTTerminalRuleCall_5_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getDtCSizeRule());
}
setWithLastConsumed(
current,
"max",
lv_max_5_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
}
}
// InternalDatatypeGrammar.g:3109:3: (otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']' )?
int alt45=2;
int LA45_0 = input.LA(1);
if ( (LA45_0==27) ) {
alt45=1;
}
switch (alt45) {
case 1 :
// InternalDatatypeGrammar.g:3110:4: otherlv_6= '[' ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) ) otherlv_17= ']'
{
otherlv_6=(Token)match(input,27,FOLLOW_20); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getDtCSizeAccess().getLeftSquareBracketKeyword_6_0());
}
// InternalDatatypeGrammar.g:3114:4: ( ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:3115:5: ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:3115:5: ( ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:3116:6: ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1());
// InternalDatatypeGrammar.g:3119:6: ( ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:3120:7: ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:3120:7: ( ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) ) )*
loop44:
do {
int alt44=4;
int LA44_0 = input.LA(1);
if ( LA44_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 0) ) {
alt44=1;
}
else if ( LA44_0 == 30 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 1) ) {
alt44=2;
}
else if ( LA44_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 2) ) {
alt44=3;
}
switch (alt44) {
case 1 :
// InternalDatatypeGrammar.g:3121:5: ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:3121:5: ({...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:3122:6: {...}? => ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 0)");
}
// InternalDatatypeGrammar.g:3122:107: ( ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:3123:7: ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 0);
// InternalDatatypeGrammar.g:3126:10: ({...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:3126:11: {...}? => (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "true");
}
// InternalDatatypeGrammar.g:3126:20: (otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:3126:21: otherlv_8= 'msgCode' otherlv_9= '=' ( (lv_msgCode_10_0= ruleQualifiedName ) )
{
otherlv_8=(Token)match(input,28,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getDtCSizeAccess().getMsgCodeKeyword_6_1_0_0());
}
otherlv_9=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getDtCSizeAccess().getEqualsSignKeyword_6_1_0_1());
}
// InternalDatatypeGrammar.g:3134:10: ( (lv_msgCode_10_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:3135:11: (lv_msgCode_10_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:3135:11: (lv_msgCode_10_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:3136:12: lv_msgCode_10_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCSizeAccess().getMsgCodeQualifiedNameParserRuleCall_6_1_0_2_0());
}
pushFollow(FOLLOW_20);
lv_msgCode_10_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCSizeRule());
}
set(
current,
"msgCode",
lv_msgCode_10_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3159:5: ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:3159:5: ({...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) ) )
// InternalDatatypeGrammar.g:3160:6: {...}? => ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 1)");
}
// InternalDatatypeGrammar.g:3160:107: ( ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) ) )
// InternalDatatypeGrammar.g:3161:7: ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 1);
// InternalDatatypeGrammar.g:3164:10: ({...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) ) )
// InternalDatatypeGrammar.g:3164:11: {...}? => (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "true");
}
// InternalDatatypeGrammar.g:3164:20: (otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:3164:21: otherlv_11= 'msgI18nKey' otherlv_12= '=' ( (lv_msgI18nKey_13_0= ruleQualifiedName ) )
{
otherlv_11=(Token)match(input,30,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getDtCSizeAccess().getMsgI18nKeyKeyword_6_1_1_0());
}
otherlv_12=(Token)match(input,29,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getDtCSizeAccess().getEqualsSignKeyword_6_1_1_1());
}
// InternalDatatypeGrammar.g:3172:10: ( (lv_msgI18nKey_13_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:3173:11: (lv_msgI18nKey_13_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:3173:11: (lv_msgI18nKey_13_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:3174:12: lv_msgI18nKey_13_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCSizeAccess().getMsgI18nKeyQualifiedNameParserRuleCall_6_1_1_2_0());
}
pushFollow(FOLLOW_20);
lv_msgI18nKey_13_0=ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCSizeRule());
}
set(
current,
"msgI18nKey",
lv_msgI18nKey_13_0,
"org.eclipse.xtext.xbase.Xbase.QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:3197:5: ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) )
{
// InternalDatatypeGrammar.g:3197:5: ({...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) ) )
// InternalDatatypeGrammar.g:3198:6: {...}? => ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 2) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "getUnorderedGroupHelper().canSelect(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 2)");
}
// InternalDatatypeGrammar.g:3198:107: ( ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) ) )
// InternalDatatypeGrammar.g:3199:7: ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1(), 2);
// InternalDatatypeGrammar.g:3202:10: ({...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) ) )
// InternalDatatypeGrammar.g:3202:11: {...}? => (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleDtCSize", "true");
}
// InternalDatatypeGrammar.g:3202:20: (otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) ) )
// InternalDatatypeGrammar.g:3202:21: otherlv_14= 'severity' otherlv_15= '=' ( (lv_severity_16_0= ruleConstraintSeverity ) )
{
otherlv_14=(Token)match(input,31,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_14, grammarAccess.getDtCSizeAccess().getSeverityKeyword_6_1_2_0());
}
otherlv_15=(Token)match(input,29,FOLLOW_22); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getDtCSizeAccess().getEqualsSignKeyword_6_1_2_1());
}
// InternalDatatypeGrammar.g:3210:10: ( (lv_severity_16_0= ruleConstraintSeverity ) )
// InternalDatatypeGrammar.g:3211:11: (lv_severity_16_0= ruleConstraintSeverity )
{
// InternalDatatypeGrammar.g:3211:11: (lv_severity_16_0= ruleConstraintSeverity )
// InternalDatatypeGrammar.g:3212:12: lv_severity_16_0= ruleConstraintSeverity
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getDtCSizeAccess().getSeverityConstraintSeverityEnumRuleCall_6_1_2_2_0());
}
pushFollow(FOLLOW_20);
lv_severity_16_0=ruleConstraintSeverity();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getDtCSizeRule());
}
set(
current,
"severity",
lv_severity_16_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.ConstraintSeverity");
afterParserOrEnumRuleCall();
}
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1());
}
}
}
break;
default :
break loop44;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getDtCSizeAccess().getUnorderedGroup_6_1());
}
otherlv_17=(Token)match(input,32,FOLLOW_25); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_17, grammarAccess.getDtCSizeAccess().getRightSquareBracketKeyword_6_2());
}
}
break;
}
otherlv_18=(Token)match(input,23,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_18, grammarAccess.getDtCSizeAccess().getRightParenthesisKeyword_7());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDtCSize"
// $ANTLR start "entryRuleScalarType"
// InternalDatatypeGrammar.g:3255:1: entryRuleScalarType returns [EObject current=null] : iv_ruleScalarType= ruleScalarType EOF ;
public final EObject entryRuleScalarType() throws RecognitionException {
EObject current = null;
EObject iv_ruleScalarType = null;
try {
// InternalDatatypeGrammar.g:3255:51: (iv_ruleScalarType= ruleScalarType EOF )
// InternalDatatypeGrammar.g:3256:2: iv_ruleScalarType= ruleScalarType EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getScalarTypeRule());
}
pushFollow(FOLLOW_1);
iv_ruleScalarType=ruleScalarType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleScalarType;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleScalarType"
// $ANTLR start "ruleScalarType"
// InternalDatatypeGrammar.g:3262:1: ruleScalarType returns [EObject current=null] : (this_DataType_0= ruleDataType | this_Enum_1= ruleEnum ) ;
public final EObject ruleScalarType() throws RecognitionException {
EObject current = null;
EObject this_DataType_0 = null;
EObject this_Enum_1 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3268:2: ( (this_DataType_0= ruleDataType | this_Enum_1= ruleEnum ) )
// InternalDatatypeGrammar.g:3269:2: (this_DataType_0= ruleDataType | this_Enum_1= ruleEnum )
{
// InternalDatatypeGrammar.g:3269:2: (this_DataType_0= ruleDataType | this_Enum_1= ruleEnum )
int alt46=2;
int LA46_0 = input.LA(1);
if ( (LA46_0==17) ) {
alt46=1;
}
else if ( (LA46_0==45) ) {
alt46=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 46, 0, input);
throw nvae;
}
switch (alt46) {
case 1 :
// InternalDatatypeGrammar.g:3270:3: this_DataType_0= ruleDataType
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getScalarTypeAccess().getDataTypeParserRuleCall_0());
}
pushFollow(FOLLOW_2);
this_DataType_0=ruleDataType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_DataType_0;
afterParserOrEnumRuleCall();
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3279:3: this_Enum_1= ruleEnum
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getScalarTypeAccess().getEnumParserRuleCall_1());
}
pushFollow(FOLLOW_2);
this_Enum_1=ruleEnum();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_Enum_1;
afterParserOrEnumRuleCall();
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleScalarType"
// $ANTLR start "entryRuleEnum"
// InternalDatatypeGrammar.g:3291:1: entryRuleEnum returns [EObject current=null] : iv_ruleEnum= ruleEnum EOF ;
public final EObject entryRuleEnum() throws RecognitionException {
EObject current = null;
EObject iv_ruleEnum = null;
try {
// InternalDatatypeGrammar.g:3291:45: (iv_ruleEnum= ruleEnum EOF )
// InternalDatatypeGrammar.g:3292:2: iv_ruleEnum= ruleEnum EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getEnumRule());
}
pushFollow(FOLLOW_1);
iv_ruleEnum=ruleEnum();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleEnum;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleEnum"
// $ANTLR start "ruleEnum"
// InternalDatatypeGrammar.g:3298:1: ruleEnum returns [EObject current=null] : (otherlv_0= 'enum' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* otherlv_6= '}' ) ;
public final EObject ruleEnum() 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_6=null;
EObject lv_literals_3_0 = null;
EObject lv_literals_5_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3304:2: ( (otherlv_0= 'enum' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* otherlv_6= '}' ) )
// InternalDatatypeGrammar.g:3305:2: (otherlv_0= 'enum' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* otherlv_6= '}' )
{
// InternalDatatypeGrammar.g:3305:2: (otherlv_0= 'enum' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* otherlv_6= '}' )
// InternalDatatypeGrammar.g:3306:3: otherlv_0= 'enum' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* otherlv_6= '}'
{
otherlv_0=(Token)match(input,45,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getEnumAccess().getEnumKeyword_0());
}
// InternalDatatypeGrammar.g:3310:3: ( (lv_name_1_0= RULE_ID ) )
// InternalDatatypeGrammar.g:3311:4: (lv_name_1_0= RULE_ID )
{
// InternalDatatypeGrammar.g:3311:4: (lv_name_1_0= RULE_ID )
// InternalDatatypeGrammar.g:3312: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.getEnumAccess().getNameIDTerminalRuleCall_1_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getEnumRule());
}
setWithLastConsumed(
current,
"name",
lv_name_1_0,
"org.eclipse.xtext.xbase.Xtype.ID");
}
}
}
otherlv_2=(Token)match(input,14,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getEnumAccess().getLeftCurlyBracketKeyword_2());
}
// InternalDatatypeGrammar.g:3332:3: ( (lv_literals_3_0= ruleEnumLiteral ) )
// InternalDatatypeGrammar.g:3333:4: (lv_literals_3_0= ruleEnumLiteral )
{
// InternalDatatypeGrammar.g:3333:4: (lv_literals_3_0= ruleEnumLiteral )
// InternalDatatypeGrammar.g:3334:5: lv_literals_3_0= ruleEnumLiteral
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getEnumAccess().getLiteralsEnumLiteralParserRuleCall_3_0());
}
pushFollow(FOLLOW_30);
lv_literals_3_0=ruleEnumLiteral();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getEnumRule());
}
add(
current,
"literals",
lv_literals_3_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.EnumLiteral");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:3351:3: (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )*
loop47:
do {
int alt47=2;
int LA47_0 = input.LA(1);
if ( (LA47_0==22) ) {
alt47=1;
}
switch (alt47) {
case 1 :
// InternalDatatypeGrammar.g:3352:4: otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getEnumAccess().getCommaKeyword_4_0());
}
// InternalDatatypeGrammar.g:3356:4: ( (lv_literals_5_0= ruleEnumLiteral ) )
// InternalDatatypeGrammar.g:3357:5: (lv_literals_5_0= ruleEnumLiteral )
{
// InternalDatatypeGrammar.g:3357:5: (lv_literals_5_0= ruleEnumLiteral )
// InternalDatatypeGrammar.g:3358:6: lv_literals_5_0= ruleEnumLiteral
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getEnumAccess().getLiteralsEnumLiteralParserRuleCall_4_1_0());
}
pushFollow(FOLLOW_30);
lv_literals_5_0=ruleEnumLiteral();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getEnumRule());
}
add(
current,
"literals",
lv_literals_5_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.EnumLiteral");
afterParserOrEnumRuleCall();
}
}
}
}
break;
default :
break loop47;
}
} while (true);
otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getEnumAccess().getRightCurlyBracketKeyword_5());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleEnum"
// $ANTLR start "entryRuleEnumLiteral"
// InternalDatatypeGrammar.g:3384:1: entryRuleEnumLiteral returns [EObject current=null] : iv_ruleEnumLiteral= ruleEnumLiteral EOF ;
public final EObject entryRuleEnumLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleEnumLiteral = null;
try {
// InternalDatatypeGrammar.g:3384:52: (iv_ruleEnumLiteral= ruleEnumLiteral EOF )
// InternalDatatypeGrammar.g:3385:2: iv_ruleEnumLiteral= ruleEnumLiteral EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getEnumLiteralRule());
}
pushFollow(FOLLOW_1);
iv_ruleEnumLiteral=ruleEnumLiteral();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleEnumLiteral;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleEnumLiteral"
// $ANTLR start "ruleEnumLiteral"
// InternalDatatypeGrammar.g:3391:1: ruleEnumLiteral returns [EObject current=null] : ( ( (lv_name_0_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) ) (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )? ) ;
public final EObject ruleEnumLiteral() throws RecognitionException {
EObject current = null;
Token lv_default_2_0=null;
Token lv_null_3_0=null;
Token otherlv_4=null;
Token lv_value_5_0=null;
Token lv_stringValue_6_0=null;
AntlrDatatypeRuleToken lv_name_0_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3397:2: ( ( ( (lv_name_0_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) ) (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )? ) )
// InternalDatatypeGrammar.g:3398:2: ( ( (lv_name_0_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) ) (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )? )
{
// InternalDatatypeGrammar.g:3398:2: ( ( (lv_name_0_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) ) (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )? )
// InternalDatatypeGrammar.g:3399:3: ( (lv_name_0_0= ruleTRANSLATABLEID ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) ) (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )?
{
// InternalDatatypeGrammar.g:3399:3: ( (lv_name_0_0= ruleTRANSLATABLEID ) )
// InternalDatatypeGrammar.g:3400:4: (lv_name_0_0= ruleTRANSLATABLEID )
{
// InternalDatatypeGrammar.g:3400:4: (lv_name_0_0= ruleTRANSLATABLEID )
// InternalDatatypeGrammar.g:3401:5: lv_name_0_0= ruleTRANSLATABLEID
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getEnumLiteralAccess().getNameTRANSLATABLEIDParserRuleCall_0_0());
}
pushFollow(FOLLOW_31);
lv_name_0_0=ruleTRANSLATABLEID();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getEnumLiteralRule());
}
set(
current,
"name",
lv_name_0_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.TRANSLATABLEID");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:3418:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) ) )
// InternalDatatypeGrammar.g:3419:4: ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) )
{
// InternalDatatypeGrammar.g:3419:4: ( ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* ) )
// InternalDatatypeGrammar.g:3420:5: ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* )
{
getUnorderedGroupHelper().enter(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1());
// InternalDatatypeGrammar.g:3423:5: ( ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )* )
// InternalDatatypeGrammar.g:3424:6: ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )*
{
// InternalDatatypeGrammar.g:3424:6: ( ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) ) )*
loop48:
do {
int alt48=3;
int LA48_0 = input.LA(1);
if ( LA48_0 == 46 && getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 0) ) {
alt48=1;
}
else if ( LA48_0 == 47 && getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 1) ) {
alt48=2;
}
switch (alt48) {
case 1 :
// InternalDatatypeGrammar.g:3425:4: ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) )
{
// InternalDatatypeGrammar.g:3425:4: ({...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) ) )
// InternalDatatypeGrammar.g:3426:5: {...}? => ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 0) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleEnumLiteral", "getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 0)");
}
// InternalDatatypeGrammar.g:3426:108: ( ({...}? => ( (lv_default_2_0= 'asDefault' ) ) ) )
// InternalDatatypeGrammar.g:3427:6: ({...}? => ( (lv_default_2_0= 'asDefault' ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 0);
// InternalDatatypeGrammar.g:3430:9: ({...}? => ( (lv_default_2_0= 'asDefault' ) ) )
// InternalDatatypeGrammar.g:3430:10: {...}? => ( (lv_default_2_0= 'asDefault' ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleEnumLiteral", "true");
}
// InternalDatatypeGrammar.g:3430:19: ( (lv_default_2_0= 'asDefault' ) )
// InternalDatatypeGrammar.g:3430:20: (lv_default_2_0= 'asDefault' )
{
// InternalDatatypeGrammar.g:3430:20: (lv_default_2_0= 'asDefault' )
// InternalDatatypeGrammar.g:3431:10: lv_default_2_0= 'asDefault'
{
lv_default_2_0=(Token)match(input,46,FOLLOW_31); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_default_2_0, grammarAccess.getEnumLiteralAccess().getDefaultAsDefaultKeyword_1_0_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getEnumLiteralRule());
}
setWithLastConsumed(current, "default", true, "asDefault");
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3448:4: ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) )
{
// InternalDatatypeGrammar.g:3448:4: ({...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) ) )
// InternalDatatypeGrammar.g:3449:5: {...}? => ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) )
{
if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 1) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleEnumLiteral", "getUnorderedGroupHelper().canSelect(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 1)");
}
// InternalDatatypeGrammar.g:3449:108: ( ({...}? => ( (lv_null_3_0= 'forNull' ) ) ) )
// InternalDatatypeGrammar.g:3450:6: ({...}? => ( (lv_null_3_0= 'forNull' ) ) )
{
getUnorderedGroupHelper().select(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1(), 1);
// InternalDatatypeGrammar.g:3453:9: ({...}? => ( (lv_null_3_0= 'forNull' ) ) )
// InternalDatatypeGrammar.g:3453:10: {...}? => ( (lv_null_3_0= 'forNull' ) )
{
if ( !((true)) ) {
if (state.backtracking>0) {state.failed=true; return current;}
throw new FailedPredicateException(input, "ruleEnumLiteral", "true");
}
// InternalDatatypeGrammar.g:3453:19: ( (lv_null_3_0= 'forNull' ) )
// InternalDatatypeGrammar.g:3453:20: (lv_null_3_0= 'forNull' )
{
// InternalDatatypeGrammar.g:3453:20: (lv_null_3_0= 'forNull' )
// InternalDatatypeGrammar.g:3454:10: lv_null_3_0= 'forNull'
{
lv_null_3_0=(Token)match(input,47,FOLLOW_31); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_null_3_0, grammarAccess.getEnumLiteralAccess().getNullForNullKeyword_1_1_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getEnumLiteralRule());
}
setWithLastConsumed(current, "null", true, "forNull");
}
}
}
}
getUnorderedGroupHelper().returnFromSelection(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1());
}
}
}
break;
default :
break loop48;
}
} while (true);
}
}
getUnorderedGroupHelper().leave(grammarAccess.getEnumLiteralAccess().getUnorderedGroup_1());
}
// InternalDatatypeGrammar.g:3478:3: (otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) ) )?
int alt50=2;
int LA50_0 = input.LA(1);
if ( (LA50_0==29) ) {
alt50=1;
}
switch (alt50) {
case 1 :
// InternalDatatypeGrammar.g:3479:4: otherlv_4= '=' ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) )
{
otherlv_4=(Token)match(input,29,FOLLOW_32); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getEnumLiteralAccess().getEqualsSignKeyword_2_0());
}
// InternalDatatypeGrammar.g:3483:4: ( ( (lv_value_5_0= RULE_INT ) ) | ( (lv_stringValue_6_0= RULE_STRING ) ) )
int alt49=2;
int LA49_0 = input.LA(1);
if ( (LA49_0==RULE_INT) ) {
alt49=1;
}
else if ( (LA49_0==RULE_STRING) ) {
alt49=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 49, 0, input);
throw nvae;
}
switch (alt49) {
case 1 :
// InternalDatatypeGrammar.g:3484:5: ( (lv_value_5_0= RULE_INT ) )
{
// InternalDatatypeGrammar.g:3484:5: ( (lv_value_5_0= RULE_INT ) )
// InternalDatatypeGrammar.g:3485:6: (lv_value_5_0= RULE_INT )
{
// InternalDatatypeGrammar.g:3485:6: (lv_value_5_0= RULE_INT )
// InternalDatatypeGrammar.g:3486:7: lv_value_5_0= RULE_INT
{
lv_value_5_0=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_value_5_0, grammarAccess.getEnumLiteralAccess().getValueINTTerminalRuleCall_2_1_0_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getEnumLiteralRule());
}
setWithLastConsumed(
current,
"value",
lv_value_5_0,
"org.eclipse.xtext.xbase.Xbase.INT");
}
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3503:5: ( (lv_stringValue_6_0= RULE_STRING ) )
{
// InternalDatatypeGrammar.g:3503:5: ( (lv_stringValue_6_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:3504:6: (lv_stringValue_6_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:3504:6: (lv_stringValue_6_0= RULE_STRING )
// InternalDatatypeGrammar.g:3505:7: lv_stringValue_6_0= RULE_STRING
{
lv_stringValue_6_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_stringValue_6_0, grammarAccess.getEnumLiteralAccess().getStringValueSTRINGTerminalRuleCall_2_1_1_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getEnumLiteralRule());
}
setWithLastConsumed(
current,
"stringValue",
lv_stringValue_6_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
}
}
}
break;
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleEnumLiteral"
// $ANTLR start "entryRuleAnnotationDef"
// InternalDatatypeGrammar.g:3527:1: entryRuleAnnotationDef returns [EObject current=null] : iv_ruleAnnotationDef= ruleAnnotationDef EOF ;
public final EObject entryRuleAnnotationDef() throws RecognitionException {
EObject current = null;
EObject iv_ruleAnnotationDef = null;
try {
// InternalDatatypeGrammar.g:3527:54: (iv_ruleAnnotationDef= ruleAnnotationDef EOF )
// InternalDatatypeGrammar.g:3528:2: iv_ruleAnnotationDef= ruleAnnotationDef EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getAnnotationDefRule());
}
pushFollow(FOLLOW_1);
iv_ruleAnnotationDef=ruleAnnotationDef();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleAnnotationDef;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleAnnotationDef"
// $ANTLR start "ruleAnnotationDef"
// InternalDatatypeGrammar.g:3534:1: ruleAnnotationDef returns [EObject current=null] : ( ( ( ( ruleXAnnotation ) ) )=> ( (lv_annotation_0_0= ruleXAnnotation ) ) ) ;
public final EObject ruleAnnotationDef() throws RecognitionException {
EObject current = null;
EObject lv_annotation_0_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3540:2: ( ( ( ( ( ruleXAnnotation ) ) )=> ( (lv_annotation_0_0= ruleXAnnotation ) ) ) )
// InternalDatatypeGrammar.g:3541:2: ( ( ( ( ruleXAnnotation ) ) )=> ( (lv_annotation_0_0= ruleXAnnotation ) ) )
{
// InternalDatatypeGrammar.g:3541:2: ( ( ( ( ruleXAnnotation ) ) )=> ( (lv_annotation_0_0= ruleXAnnotation ) ) )
// InternalDatatypeGrammar.g:3542:3: ( ( ( ruleXAnnotation ) ) )=> ( (lv_annotation_0_0= ruleXAnnotation ) )
{
// InternalDatatypeGrammar.g:3548:3: ( (lv_annotation_0_0= ruleXAnnotation ) )
// InternalDatatypeGrammar.g:3549:4: (lv_annotation_0_0= ruleXAnnotation )
{
// InternalDatatypeGrammar.g:3549:4: (lv_annotation_0_0= ruleXAnnotation )
// InternalDatatypeGrammar.g:3550:5: lv_annotation_0_0= ruleXAnnotation
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getAnnotationDefAccess().getAnnotationXAnnotationParserRuleCall_0_0());
}
pushFollow(FOLLOW_2);
lv_annotation_0_0=ruleXAnnotation();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getAnnotationDefRule());
}
set(
current,
"annotation",
lv_annotation_0_0,
"org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations.XAnnotation");
afterParserOrEnumRuleCall();
}
}
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleAnnotationDef"
// $ANTLR start "entryRuleResultFilter"
// InternalDatatypeGrammar.g:3571:1: entryRuleResultFilter returns [EObject current=null] : iv_ruleResultFilter= ruleResultFilter EOF ;
public final EObject entryRuleResultFilter() throws RecognitionException {
EObject current = null;
EObject iv_ruleResultFilter = null;
try {
// InternalDatatypeGrammar.g:3571:53: (iv_ruleResultFilter= ruleResultFilter EOF )
// InternalDatatypeGrammar.g:3572:2: iv_ruleResultFilter= ruleResultFilter EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getResultFilterRule());
}
pushFollow(FOLLOW_1);
iv_ruleResultFilter=ruleResultFilter();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleResultFilter;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleResultFilter"
// $ANTLR start "ruleResultFilter"
// InternalDatatypeGrammar.g:3578:1: ruleResultFilter returns [EObject current=null] : this_AttributeMatchingConstraint_0= ruleAttributeMatchingConstraint ;
public final EObject ruleResultFilter() throws RecognitionException {
EObject current = null;
EObject this_AttributeMatchingConstraint_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3584:2: (this_AttributeMatchingConstraint_0= ruleAttributeMatchingConstraint )
// InternalDatatypeGrammar.g:3585:2: this_AttributeMatchingConstraint_0= ruleAttributeMatchingConstraint
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getResultFilterAccess().getAttributeMatchingConstraintParserRuleCall());
}
pushFollow(FOLLOW_2);
this_AttributeMatchingConstraint_0=ruleAttributeMatchingConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_AttributeMatchingConstraint_0;
afterParserOrEnumRuleCall();
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleResultFilter"
// $ANTLR start "entryRuleAttributeMatchingConstraint"
// InternalDatatypeGrammar.g:3596:1: entryRuleAttributeMatchingConstraint returns [EObject current=null] : iv_ruleAttributeMatchingConstraint= ruleAttributeMatchingConstraint EOF ;
public final EObject entryRuleAttributeMatchingConstraint() throws RecognitionException {
EObject current = null;
EObject iv_ruleAttributeMatchingConstraint = null;
try {
// InternalDatatypeGrammar.g:3596:68: (iv_ruleAttributeMatchingConstraint= ruleAttributeMatchingConstraint EOF )
// InternalDatatypeGrammar.g:3597:2: iv_ruleAttributeMatchingConstraint= ruleAttributeMatchingConstraint EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getAttributeMatchingConstraintRule());
}
pushFollow(FOLLOW_1);
iv_ruleAttributeMatchingConstraint=ruleAttributeMatchingConstraint();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleAttributeMatchingConstraint;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleAttributeMatchingConstraint"
// $ANTLR start "ruleAttributeMatchingConstraint"
// InternalDatatypeGrammar.g:3603:1: ruleAttributeMatchingConstraint returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( (lv_comparatorType_1_0= ruleLComparatorType ) ) ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) ) ) ;
public final EObject ruleAttributeMatchingConstraint() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token lv_matchingValue_2_0=null;
Token otherlv_3=null;
Enumerator lv_comparatorType_1_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3609:2: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_comparatorType_1_0= ruleLComparatorType ) ) ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) ) ) )
// InternalDatatypeGrammar.g:3610:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_comparatorType_1_0= ruleLComparatorType ) ) ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) ) )
{
// InternalDatatypeGrammar.g:3610:2: ( ( (otherlv_0= RULE_ID ) ) ( (lv_comparatorType_1_0= ruleLComparatorType ) ) ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) ) )
// InternalDatatypeGrammar.g:3611:3: ( (otherlv_0= RULE_ID ) ) ( (lv_comparatorType_1_0= ruleLComparatorType ) ) ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) )
{
// InternalDatatypeGrammar.g:3611:3: ( (otherlv_0= RULE_ID ) )
// InternalDatatypeGrammar.g:3612:4: (otherlv_0= RULE_ID )
{
// InternalDatatypeGrammar.g:3612:4: (otherlv_0= RULE_ID )
// InternalDatatypeGrammar.g:3613:5: otherlv_0= RULE_ID
{
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getAttributeMatchingConstraintRule());
}
}
otherlv_0=(Token)match(input,RULE_ID,FOLLOW_33); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getAttributeMatchingConstraintAccess().getAttributeLAttributeCrossReference_0_0());
}
}
}
// InternalDatatypeGrammar.g:3624:3: ( (lv_comparatorType_1_0= ruleLComparatorType ) )
// InternalDatatypeGrammar.g:3625:4: (lv_comparatorType_1_0= ruleLComparatorType )
{
// InternalDatatypeGrammar.g:3625:4: (lv_comparatorType_1_0= ruleLComparatorType )
// InternalDatatypeGrammar.g:3626:5: lv_comparatorType_1_0= ruleLComparatorType
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getAttributeMatchingConstraintAccess().getComparatorTypeLComparatorTypeEnumRuleCall_1_0());
}
pushFollow(FOLLOW_34);
lv_comparatorType_1_0=ruleLComparatorType();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElementForParent(grammarAccess.getAttributeMatchingConstraintRule());
}
set(
current,
"comparatorType",
lv_comparatorType_1_0,
"org.eclipse.osbp.dsl.common.xtext.CommonGrammar.LComparatorType");
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:3643:3: ( ( (lv_matchingValue_2_0= RULE_STRING ) ) | ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) ) )
int alt51=2;
int LA51_0 = input.LA(1);
if ( (LA51_0==RULE_STRING) ) {
alt51=1;
}
else if ( (LA51_0==RULE_ID) && (synpred2_InternalDatatypeGrammar())) {
alt51=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 51, 0, input);
throw nvae;
}
switch (alt51) {
case 1 :
// InternalDatatypeGrammar.g:3644:4: ( (lv_matchingValue_2_0= RULE_STRING ) )
{
// InternalDatatypeGrammar.g:3644:4: ( (lv_matchingValue_2_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:3645:5: (lv_matchingValue_2_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:3645:5: (lv_matchingValue_2_0= RULE_STRING )
// InternalDatatypeGrammar.g:3646:6: lv_matchingValue_2_0= RULE_STRING
{
lv_matchingValue_2_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_matchingValue_2_0, grammarAccess.getAttributeMatchingConstraintAccess().getMatchingValueSTRINGTerminalRuleCall_2_0_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getAttributeMatchingConstraintRule());
}
setWithLastConsumed(
current,
"matchingValue",
lv_matchingValue_2_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3663:4: ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) )
{
// InternalDatatypeGrammar.g:3663:4: ( ( ( RULE_ID ) )=> (otherlv_3= RULE_ID ) )
// InternalDatatypeGrammar.g:3664:5: ( ( RULE_ID ) )=> (otherlv_3= RULE_ID )
{
// InternalDatatypeGrammar.g:3668:5: (otherlv_3= RULE_ID )
// InternalDatatypeGrammar.g:3669:6: otherlv_3= RULE_ID
{
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getAttributeMatchingConstraintRule());
}
}
otherlv_3=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getAttributeMatchingConstraintAccess().getMatchingLiteralLEnumLiteralCrossReference_2_1_0());
}
}
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleAttributeMatchingConstraint"
// $ANTLR start "entryRuleKeyAndValue"
// InternalDatatypeGrammar.g:3685:1: entryRuleKeyAndValue returns [EObject current=null] : iv_ruleKeyAndValue= ruleKeyAndValue EOF ;
public final EObject entryRuleKeyAndValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleKeyAndValue = null;
try {
// InternalDatatypeGrammar.g:3685:52: (iv_ruleKeyAndValue= ruleKeyAndValue EOF )
// InternalDatatypeGrammar.g:3686:2: iv_ruleKeyAndValue= ruleKeyAndValue EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getKeyAndValueRule());
}
pushFollow(FOLLOW_1);
iv_ruleKeyAndValue=ruleKeyAndValue();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleKeyAndValue;
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleKeyAndValue"
// $ANTLR start "ruleKeyAndValue"
// InternalDatatypeGrammar.g:3692:1: ruleKeyAndValue returns [EObject current=null] : (otherlv_0= 'key' otherlv_1= '=' ( (lv_key_2_0= RULE_STRING ) ) otherlv_3= 'value' otherlv_4= '=' ( (lv_value_5_0= RULE_STRING ) ) ) ;
public final EObject ruleKeyAndValue() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token lv_key_2_0=null;
Token otherlv_3=null;
Token otherlv_4=null;
Token lv_value_5_0=null;
enterRule();
try {
// InternalDatatypeGrammar.g:3698:2: ( (otherlv_0= 'key' otherlv_1= '=' ( (lv_key_2_0= RULE_STRING ) ) otherlv_3= 'value' otherlv_4= '=' ( (lv_value_5_0= RULE_STRING ) ) ) )
// InternalDatatypeGrammar.g:3699:2: (otherlv_0= 'key' otherlv_1= '=' ( (lv_key_2_0= RULE_STRING ) ) otherlv_3= 'value' otherlv_4= '=' ( (lv_value_5_0= RULE_STRING ) ) )
{
// InternalDatatypeGrammar.g:3699:2: (otherlv_0= 'key' otherlv_1= '=' ( (lv_key_2_0= RULE_STRING ) ) otherlv_3= 'value' otherlv_4= '=' ( (lv_value_5_0= RULE_STRING ) ) )
// InternalDatatypeGrammar.g:3700:3: otherlv_0= 'key' otherlv_1= '=' ( (lv_key_2_0= RULE_STRING ) ) otherlv_3= 'value' otherlv_4= '=' ( (lv_value_5_0= RULE_STRING ) )
{
otherlv_0=(Token)match(input,48,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getKeyAndValueAccess().getKeyKeyword_0());
}
otherlv_1=(Token)match(input,29,FOLLOW_28); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getKeyAndValueAccess().getEqualsSignKeyword_1());
}
// InternalDatatypeGrammar.g:3708:3: ( (lv_key_2_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:3709:4: (lv_key_2_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:3709:4: (lv_key_2_0= RULE_STRING )
// InternalDatatypeGrammar.g:3710:5: lv_key_2_0= RULE_STRING
{
lv_key_2_0=(Token)match(input,RULE_STRING,FOLLOW_35); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_key_2_0, grammarAccess.getKeyAndValueAccess().getKeySTRINGTerminalRuleCall_2_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getKeyAndValueRule());
}
setWithLastConsumed(
current,
"key",
lv_key_2_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
}
}
otherlv_3=(Token)match(input,49,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getKeyAndValueAccess().getValueKeyword_3());
}
otherlv_4=(Token)match(input,29,FOLLOW_28); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getKeyAndValueAccess().getEqualsSignKeyword_4());
}
// InternalDatatypeGrammar.g:3734:3: ( (lv_value_5_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:3735:4: (lv_value_5_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:3735:4: (lv_value_5_0= RULE_STRING )
// InternalDatatypeGrammar.g:3736:5: lv_value_5_0= RULE_STRING
{
lv_value_5_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(lv_value_5_0, grammarAccess.getKeyAndValueAccess().getValueSTRINGTerminalRuleCall_5_0());
}
if ( state.backtracking==0 ) {
if (current==null) {
current = createModelElement(grammarAccess.getKeyAndValueRule());
}
setWithLastConsumed(
current,
"value",
lv_value_5_0,
"org.eclipse.xtext.xbase.Xtype.STRING");
}
}
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleKeyAndValue"
// $ANTLR start "entryRuleValidIDWithKeywords"
// InternalDatatypeGrammar.g:3756:1: entryRuleValidIDWithKeywords returns [String current=null] : iv_ruleValidIDWithKeywords= ruleValidIDWithKeywords EOF ;
public final String entryRuleValidIDWithKeywords() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleValidIDWithKeywords = null;
try {
// InternalDatatypeGrammar.g:3756:59: (iv_ruleValidIDWithKeywords= ruleValidIDWithKeywords EOF )
// InternalDatatypeGrammar.g:3757:2: iv_ruleValidIDWithKeywords= ruleValidIDWithKeywords EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getValidIDWithKeywordsRule());
}
pushFollow(FOLLOW_1);
iv_ruleValidIDWithKeywords=ruleValidIDWithKeywords();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleValidIDWithKeywords.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleValidIDWithKeywords"
// $ANTLR start "ruleValidIDWithKeywords"
// InternalDatatypeGrammar.g:3763:1: ruleValidIDWithKeywords returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'cachable' | kw= 'id' | kw= 'uuid' | kw= 'transient' | kw= 'version' | kw= 'derived' | kw= 'collection' | kw= 'refers' | kw= 'settings' | kw= 'lazy' | kw= 'notnull' | kw= 'dto' | kw= 'date' | kw= 'mapto' | kw= 'ref' | kw= 'cascadeMergePersist' | kw= 'cascadeRemove' | kw= 'var' | this_ID_18= RULE_ID ) ;
public final AntlrDatatypeRuleToken ruleValidIDWithKeywords() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_ID_18=null;
enterRule();
try {
// InternalDatatypeGrammar.g:3769:2: ( (kw= 'cachable' | kw= 'id' | kw= 'uuid' | kw= 'transient' | kw= 'version' | kw= 'derived' | kw= 'collection' | kw= 'refers' | kw= 'settings' | kw= 'lazy' | kw= 'notnull' | kw= 'dto' | kw= 'date' | kw= 'mapto' | kw= 'ref' | kw= 'cascadeMergePersist' | kw= 'cascadeRemove' | kw= 'var' | this_ID_18= RULE_ID ) )
// InternalDatatypeGrammar.g:3770:2: (kw= 'cachable' | kw= 'id' | kw= 'uuid' | kw= 'transient' | kw= 'version' | kw= 'derived' | kw= 'collection' | kw= 'refers' | kw= 'settings' | kw= 'lazy' | kw= 'notnull' | kw= 'dto' | kw= 'date' | kw= 'mapto' | kw= 'ref' | kw= 'cascadeMergePersist' | kw= 'cascadeRemove' | kw= 'var' | this_ID_18= RULE_ID )
{
// InternalDatatypeGrammar.g:3770:2: (kw= 'cachable' | kw= 'id' | kw= 'uuid' | kw= 'transient' | kw= 'version' | kw= 'derived' | kw= 'collection' | kw= 'refers' | kw= 'settings' | kw= 'lazy' | kw= 'notnull' | kw= 'dto' | kw= 'date' | kw= 'mapto' | kw= 'ref' | kw= 'cascadeMergePersist' | kw= 'cascadeRemove' | kw= 'var' | this_ID_18= RULE_ID )
int alt52=19;
switch ( input.LA(1) ) {
case 50:
{
alt52=1;
}
break;
case 51:
{
alt52=2;
}
break;
case 52:
{
alt52=3;
}
break;
case 53:
{
alt52=4;
}
break;
case 54:
{
alt52=5;
}
break;
case 55:
{
alt52=6;
}
break;
case 56:
{
alt52=7;
}
break;
case 57:
{
alt52=8;
}
break;
case 58:
{
alt52=9;
}
break;
case 59:
{
alt52=10;
}
break;
case 60:
{
alt52=11;
}
break;
case 61:
{
alt52=12;
}
break;
case 62:
{
alt52=13;
}
break;
case 63:
{
alt52=14;
}
break;
case 64:
{
alt52=15;
}
break;
case 65:
{
alt52=16;
}
break;
case 66:
{
alt52=17;
}
break;
case 67:
{
alt52=18;
}
break;
case RULE_ID:
{
alt52=19;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 52, 0, input);
throw nvae;
}
switch (alt52) {
case 1 :
// InternalDatatypeGrammar.g:3771:3: kw= 'cachable'
{
kw=(Token)match(input,50,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getCachableKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3777:3: kw= 'id'
{
kw=(Token)match(input,51,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getIdKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:3783:3: kw= 'uuid'
{
kw=(Token)match(input,52,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getUuidKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:3789:3: kw= 'transient'
{
kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getTransientKeyword_3());
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:3795:3: kw= 'version'
{
kw=(Token)match(input,54,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getVersionKeyword_4());
}
}
break;
case 6 :
// InternalDatatypeGrammar.g:3801:3: kw= 'derived'
{
kw=(Token)match(input,55,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getDerivedKeyword_5());
}
}
break;
case 7 :
// InternalDatatypeGrammar.g:3807:3: kw= 'collection'
{
kw=(Token)match(input,56,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getCollectionKeyword_6());
}
}
break;
case 8 :
// InternalDatatypeGrammar.g:3813:3: kw= 'refers'
{
kw=(Token)match(input,57,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getRefersKeyword_7());
}
}
break;
case 9 :
// InternalDatatypeGrammar.g:3819:3: kw= 'settings'
{
kw=(Token)match(input,58,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getSettingsKeyword_8());
}
}
break;
case 10 :
// InternalDatatypeGrammar.g:3825:3: kw= 'lazy'
{
kw=(Token)match(input,59,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getLazyKeyword_9());
}
}
break;
case 11 :
// InternalDatatypeGrammar.g:3831:3: kw= 'notnull'
{
kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getNotnullKeyword_10());
}
}
break;
case 12 :
// InternalDatatypeGrammar.g:3837:3: kw= 'dto'
{
kw=(Token)match(input,61,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getDtoKeyword_11());
}
}
break;
case 13 :
// InternalDatatypeGrammar.g:3843:3: kw= 'date'
{
kw=(Token)match(input,62,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getDateKeyword_12());
}
}
break;
case 14 :
// InternalDatatypeGrammar.g:3849:3: kw= 'mapto'
{
kw=(Token)match(input,63,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getMaptoKeyword_13());
}
}
break;
case 15 :
// InternalDatatypeGrammar.g:3855:3: kw= 'ref'
{
kw=(Token)match(input,64,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getRefKeyword_14());
}
}
break;
case 16 :
// InternalDatatypeGrammar.g:3861:3: kw= 'cascadeMergePersist'
{
kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getCascadeMergePersistKeyword_15());
}
}
break;
case 17 :
// InternalDatatypeGrammar.g:3867:3: kw= 'cascadeRemove'
{
kw=(Token)match(input,66,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getCascadeRemoveKeyword_16());
}
}
break;
case 18 :
// InternalDatatypeGrammar.g:3873:3: kw= 'var'
{
kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getValidIDWithKeywordsAccess().getVarKeyword_17());
}
}
break;
case 19 :
// InternalDatatypeGrammar.g:3879:3: this_ID_18= RULE_ID
{
this_ID_18=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(this_ID_18);
}
if ( state.backtracking==0 ) {
newLeafNode(this_ID_18, grammarAccess.getValidIDWithKeywordsAccess().getIDTerminalRuleCall_18());
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleValidIDWithKeywords"
// $ANTLR start "entryRuleLInt"
// InternalDatatypeGrammar.g:3890:1: entryRuleLInt returns [String current=null] : iv_ruleLInt= ruleLInt EOF ;
public final String entryRuleLInt() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleLInt = null;
try {
// InternalDatatypeGrammar.g:3890:44: (iv_ruleLInt= ruleLInt EOF )
// InternalDatatypeGrammar.g:3891:2: iv_ruleLInt= ruleLInt EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLIntRule());
}
pushFollow(FOLLOW_1);
iv_ruleLInt=ruleLInt();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleLInt.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleLInt"
// $ANTLR start "ruleLInt"
// InternalDatatypeGrammar.g:3897:1: ruleLInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ;
public final AntlrDatatypeRuleToken ruleLInt() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_INT_2=null;
enterRule();
try {
// InternalDatatypeGrammar.g:3903:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) )
// InternalDatatypeGrammar.g:3904:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
{
// InternalDatatypeGrammar.g:3904:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT )
// InternalDatatypeGrammar.g:3905:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT
{
// InternalDatatypeGrammar.g:3905:3: (kw= '+' | kw= '-' )?
int alt53=3;
int LA53_0 = input.LA(1);
if ( (LA53_0==68) ) {
alt53=1;
}
else if ( (LA53_0==69) ) {
alt53=2;
}
switch (alt53) {
case 1 :
// InternalDatatypeGrammar.g:3906:4: kw= '+'
{
kw=(Token)match(input,68,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getLIntAccess().getPlusSignKeyword_0_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:3912:4: kw= '-'
{
kw=(Token)match(input,69,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getLIntAccess().getHyphenMinusKeyword_0_1());
}
}
break;
}
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.getLIntAccess().getINTTerminalRuleCall_1());
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLInt"
// $ANTLR start "entryRuleLDecimal"
// InternalDatatypeGrammar.g:3929:1: entryRuleLDecimal returns [String current=null] : iv_ruleLDecimal= ruleLDecimal EOF ;
public final String entryRuleLDecimal() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleLDecimal = null;
try {
// InternalDatatypeGrammar.g:3929:48: (iv_ruleLDecimal= ruleLDecimal EOF )
// InternalDatatypeGrammar.g:3930:2: iv_ruleLDecimal= ruleLDecimal EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLDecimalRule());
}
pushFollow(FOLLOW_1);
iv_ruleLDecimal=ruleLDecimal();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleLDecimal.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleLDecimal"
// $ANTLR start "ruleLDecimal"
// InternalDatatypeGrammar.g:3936:1: ruleLDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) ;
public final AntlrDatatypeRuleToken ruleLDecimal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_INT_2=null;
AntlrDatatypeRuleToken this_LInt_0 = null;
enterRule();
try {
// InternalDatatypeGrammar.g:3942:2: ( (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) )
// InternalDatatypeGrammar.g:3943:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? )
{
// InternalDatatypeGrammar.g:3943:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? )
// InternalDatatypeGrammar.g:3944:3: this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )?
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getLDecimalAccess().getLIntParserRuleCall_0());
}
pushFollow(FOLLOW_36);
this_LInt_0=ruleLInt();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(this_LInt_0);
}
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:3954:3: (kw= '.' this_INT_2= RULE_INT )?
int alt54=2;
int LA54_0 = input.LA(1);
if ( (LA54_0==70) ) {
alt54=1;
}
switch (alt54) {
case 1 :
// InternalDatatypeGrammar.g:3955:4: kw= '.' this_INT_2= RULE_INT
{
kw=(Token)match(input,70,FOLLOW_26); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getLDecimalAccess().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.getLDecimalAccess().getINTTerminalRuleCall_1_1());
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLDecimal"
// $ANTLR start "entryRuleTRANSLATABLEID"
// InternalDatatypeGrammar.g:3972:1: entryRuleTRANSLATABLEID returns [String current=null] : iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF ;
public final String entryRuleTRANSLATABLEID() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleTRANSLATABLEID = null;
try {
// InternalDatatypeGrammar.g:3972:54: (iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF )
// InternalDatatypeGrammar.g:3973:2: iv_ruleTRANSLATABLEID= ruleTRANSLATABLEID EOF
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getTRANSLATABLEIDRule());
}
pushFollow(FOLLOW_1);
iv_ruleTRANSLATABLEID=ruleTRANSLATABLEID();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current =iv_ruleTRANSLATABLEID.getText();
}
match(input,EOF,FOLLOW_2); if (state.failed) return current;
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleTRANSLATABLEID"
// $ANTLR start "ruleTRANSLATABLEID"
// InternalDatatypeGrammar.g:3979:1: ruleTRANSLATABLEID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ;
public final AntlrDatatypeRuleToken ruleTRANSLATABLEID() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_ID_0=null;
enterRule();
try {
// InternalDatatypeGrammar.g:3985:2: (this_ID_0= RULE_ID )
// InternalDatatypeGrammar.g:3986: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.getTRANSLATABLEIDAccess().getIDTerminalRuleCall());
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleTRANSLATABLEID"
// $ANTLR start "entryRuleXImportDeclaration"
// InternalDatatypeGrammar.g:3996:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ;
public final EObject entryRuleXImportDeclaration() throws RecognitionException {
EObject current = null;
EObject iv_ruleXImportDeclaration = null;
try {
// InternalDatatypeGrammar.g:3996:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF )
// InternalDatatypeGrammar.g:3997: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"
// InternalDatatypeGrammar.g:4003: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 {
// InternalDatatypeGrammar.g:4009: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= ';' )? ) )
// InternalDatatypeGrammar.g:4010: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= ';' )? )
{
// InternalDatatypeGrammar.g:4010: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= ';' )? )
// InternalDatatypeGrammar.g:4011: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= ';' )?
{
// InternalDatatypeGrammar.g:4011:3: ()
// InternalDatatypeGrammar.g:4012:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(),
current);
}
}
otherlv_1=(Token)match(input,71,FOLLOW_37); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1());
}
// InternalDatatypeGrammar.g:4022: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 alt57=4;
alt57 = dfa57.predict(input);
switch (alt57) {
case 1 :
// InternalDatatypeGrammar.g:4023:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) )
{
// InternalDatatypeGrammar.g:4023:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) )
// InternalDatatypeGrammar.g:4024:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) )
{
// InternalDatatypeGrammar.g:4024:5: ( (lv_static_2_0= 'static' ) )
// InternalDatatypeGrammar.g:4025:6: (lv_static_2_0= 'static' )
{
// InternalDatatypeGrammar.g:4025:6: (lv_static_2_0= 'static' )
// InternalDatatypeGrammar.g:4026:7: lv_static_2_0= 'static'
{
lv_static_2_0=(Token)match(input,72,FOLLOW_38); 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");
}
}
}
// InternalDatatypeGrammar.g:4038:5: ( (lv_extension_3_0= 'extension' ) )?
int alt55=2;
int LA55_0 = input.LA(1);
if ( (LA55_0==73) ) {
alt55=1;
}
switch (alt55) {
case 1 :
// InternalDatatypeGrammar.g:4039:6: (lv_extension_3_0= 'extension' )
{
// InternalDatatypeGrammar.g:4039:6: (lv_extension_3_0= 'extension' )
// InternalDatatypeGrammar.g:4040:7: lv_extension_3_0= 'extension'
{
lv_extension_3_0=(Token)match(input,73,FOLLOW_38); 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;
}
// InternalDatatypeGrammar.g:4052:5: ( ( ruleQualifiedNameInStaticImport ) )
// InternalDatatypeGrammar.g:4053:6: ( ruleQualifiedNameInStaticImport )
{
// InternalDatatypeGrammar.g:4053:6: ( ruleQualifiedNameInStaticImport )
// InternalDatatypeGrammar.g:4054: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_39);
ruleQualifiedNameInStaticImport();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:4068:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) )
int alt56=2;
int LA56_0 = input.LA(1);
if ( (LA56_0==74) ) {
alt56=1;
}
else if ( (LA56_0==RULE_ID) ) {
alt56=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 56, 0, input);
throw nvae;
}
switch (alt56) {
case 1 :
// InternalDatatypeGrammar.g:4069:6: ( (lv_wildcard_5_0= '*' ) )
{
// InternalDatatypeGrammar.g:4069:6: ( (lv_wildcard_5_0= '*' ) )
// InternalDatatypeGrammar.g:4070:7: (lv_wildcard_5_0= '*' )
{
// InternalDatatypeGrammar.g:4070:7: (lv_wildcard_5_0= '*' )
// InternalDatatypeGrammar.g:4071:8: lv_wildcard_5_0= '*'
{
lv_wildcard_5_0=(Token)match(input,74,FOLLOW_40); 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 :
// InternalDatatypeGrammar.g:4084:6: ( (lv_memberName_6_0= ruleValidID ) )
{
// InternalDatatypeGrammar.g:4084:6: ( (lv_memberName_6_0= ruleValidID ) )
// InternalDatatypeGrammar.g:4085:7: (lv_memberName_6_0= ruleValidID )
{
// InternalDatatypeGrammar.g:4085:7: (lv_memberName_6_0= ruleValidID )
// InternalDatatypeGrammar.g:4086:8: lv_memberName_6_0= ruleValidID
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0());
}
pushFollow(FOLLOW_40);
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 :
// InternalDatatypeGrammar.g:4106:4: ( ( ruleQualifiedName ) )
{
// InternalDatatypeGrammar.g:4106:4: ( ( ruleQualifiedName ) )
// InternalDatatypeGrammar.g:4107:5: ( ruleQualifiedName )
{
// InternalDatatypeGrammar.g:4107:5: ( ruleQualifiedName )
// InternalDatatypeGrammar.g:4108: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_40);
ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:4123:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) )
{
// InternalDatatypeGrammar.g:4123:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) )
// InternalDatatypeGrammar.g:4124:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard )
{
// InternalDatatypeGrammar.g:4124:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard )
// InternalDatatypeGrammar.g:4125:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0());
}
pushFollow(FOLLOW_40);
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 :
// InternalDatatypeGrammar.g:4143:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) )
{
// InternalDatatypeGrammar.g:4143:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) )
// InternalDatatypeGrammar.g:4144:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) )
{
// InternalDatatypeGrammar.g:4144:5: ( (lv_fqnImport_9_0= 'ns' ) )
// InternalDatatypeGrammar.g:4145:6: (lv_fqnImport_9_0= 'ns' )
{
// InternalDatatypeGrammar.g:4145:6: (lv_fqnImport_9_0= 'ns' )
// InternalDatatypeGrammar.g:4146:7: lv_fqnImport_9_0= 'ns'
{
lv_fqnImport_9_0=(Token)match(input,75,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");
}
}
}
// InternalDatatypeGrammar.g:4158:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) )
// InternalDatatypeGrammar.g:4159:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName )
{
// InternalDatatypeGrammar.g:4159:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName )
// InternalDatatypeGrammar.g:4160:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0());
}
pushFollow(FOLLOW_40);
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;
}
// InternalDatatypeGrammar.g:4179:3: (otherlv_11= ';' )?
int alt58=2;
int LA58_0 = input.LA(1);
if ( (LA58_0==76) ) {
alt58=1;
}
switch (alt58) {
case 1 :
// InternalDatatypeGrammar.g:4180:4: otherlv_11= ';'
{
otherlv_11=(Token)match(input,76,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"
// InternalDatatypeGrammar.g:4189:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ;
public final EObject entryRuleXAnnotation() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAnnotation = null;
try {
// InternalDatatypeGrammar.g:4189:52: (iv_ruleXAnnotation= ruleXAnnotation EOF )
// InternalDatatypeGrammar.g:4190: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"
// InternalDatatypeGrammar.g:4196: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 {
// InternalDatatypeGrammar.g:4202: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= ')' )? ) )
// InternalDatatypeGrammar.g:4203: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= ')' )? )
{
// InternalDatatypeGrammar.g:4203: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= ')' )? )
// InternalDatatypeGrammar.g:4204: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= ')' )?
{
// InternalDatatypeGrammar.g:4204:3: ()
// InternalDatatypeGrammar.g:4205:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(),
current);
}
}
otherlv_1=(Token)match(input,77,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1());
}
// InternalDatatypeGrammar.g:4215:3: ( ( ruleQualifiedName ) )
// InternalDatatypeGrammar.g:4216:4: ( ruleQualifiedName )
{
// InternalDatatypeGrammar.g:4216:4: ( ruleQualifiedName )
// InternalDatatypeGrammar.g:4217: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_41);
ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:4231: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 alt61=2;
int LA61_0 = input.LA(1);
if ( (LA61_0==21) && (synpred3_InternalDatatypeGrammar())) {
alt61=1;
}
switch (alt61) {
case 1 :
// InternalDatatypeGrammar.g:4232:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')'
{
// InternalDatatypeGrammar.g:4232:4: ( ( '(' )=>otherlv_3= '(' )
// InternalDatatypeGrammar.g:4233:5: ( '(' )=>otherlv_3= '('
{
otherlv_3=(Token)match(input,21,FOLLOW_42); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0());
}
}
// InternalDatatypeGrammar.g:4239:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )?
int alt60=3;
alt60 = dfa60.predict(input);
switch (alt60) {
case 1 :
// InternalDatatypeGrammar.g:4240:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* )
{
// InternalDatatypeGrammar.g:4240:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* )
// InternalDatatypeGrammar.g:4241:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )*
{
// InternalDatatypeGrammar.g:4241:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) )
// InternalDatatypeGrammar.g:4242:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair )
{
// InternalDatatypeGrammar.g:4251:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair )
// InternalDatatypeGrammar.g:4252:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:4269:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )*
loop59:
do {
int alt59=2;
int LA59_0 = input.LA(1);
if ( (LA59_0==22) ) {
alt59=1;
}
switch (alt59) {
case 1 :
// InternalDatatypeGrammar.g:4270:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) )
{
otherlv_5=(Token)match(input,22,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0());
}
// InternalDatatypeGrammar.g:4274:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) )
// InternalDatatypeGrammar.g:4275:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair )
{
// InternalDatatypeGrammar.g:4284:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair )
// InternalDatatypeGrammar.g:4285:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop59;
}
} while (true);
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:4305:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) )
{
// InternalDatatypeGrammar.g:4305:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) )
// InternalDatatypeGrammar.g:4306:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList )
{
// InternalDatatypeGrammar.g:4306:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList )
// InternalDatatypeGrammar.g:4307:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0());
}
pushFollow(FOLLOW_25);
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,23,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"
// InternalDatatypeGrammar.g:4334:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ;
public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAnnotationElementValuePair = null;
try {
// InternalDatatypeGrammar.g:4334:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF )
// InternalDatatypeGrammar.g:4335: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"
// InternalDatatypeGrammar.g:4341: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 {
// InternalDatatypeGrammar.g:4347:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) )
// InternalDatatypeGrammar.g:4348:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) )
{
// InternalDatatypeGrammar.g:4348:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) )
// InternalDatatypeGrammar.g:4349:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) )
{
// InternalDatatypeGrammar.g:4349:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) )
// InternalDatatypeGrammar.g:4350:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' )
{
// InternalDatatypeGrammar.g:4359:4: ( ( ( ruleValidID ) ) otherlv_1= '=' )
// InternalDatatypeGrammar.g:4360:5: ( ( ruleValidID ) ) otherlv_1= '='
{
// InternalDatatypeGrammar.g:4360:5: ( ( ruleValidID ) )
// InternalDatatypeGrammar.g:4361:6: ( ruleValidID )
{
// InternalDatatypeGrammar.g:4361:6: ( ruleValidID )
// InternalDatatypeGrammar.g:4362: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_21);
ruleValidID();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
otherlv_1=(Token)match(input,29,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1());
}
}
}
// InternalDatatypeGrammar.g:4382:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) )
// InternalDatatypeGrammar.g:4383:4: (lv_value_2_0= ruleXAnnotationElementValue )
{
// InternalDatatypeGrammar.g:4383:4: (lv_value_2_0= ruleXAnnotationElementValue )
// InternalDatatypeGrammar.g:4384: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"
// InternalDatatypeGrammar.g:4405:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ;
public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAnnotationElementValueOrCommaList = null;
try {
// InternalDatatypeGrammar.g:4405:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF )
// InternalDatatypeGrammar.g:4406: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"
// InternalDatatypeGrammar.g:4412: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 {
// InternalDatatypeGrammar.g:4418: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 ) ) )+ )? ) ) )
// InternalDatatypeGrammar.g:4419: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 ) ) )+ )? ) )
{
// InternalDatatypeGrammar.g:4419: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 alt66=2;
alt66 = dfa66.predict(input);
switch (alt66) {
case 1 :
// InternalDatatypeGrammar.g:4420:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' )
{
// InternalDatatypeGrammar.g:4420:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' )
// InternalDatatypeGrammar.g:4421:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']'
{
// InternalDatatypeGrammar.g:4421:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) )
// InternalDatatypeGrammar.g:4422:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' )
{
// InternalDatatypeGrammar.g:4429:5: ( () otherlv_1= '#' otherlv_2= '[' )
// InternalDatatypeGrammar.g:4430:6: () otherlv_1= '#' otherlv_2= '['
{
// InternalDatatypeGrammar.g:4430:6: ()
// InternalDatatypeGrammar.g:4431:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(),
current);
}
}
otherlv_1=(Token)match(input,78,FOLLOW_44); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1());
}
otherlv_2=(Token)match(input,27,FOLLOW_45); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2());
}
}
}
// InternalDatatypeGrammar.g:4447:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )?
int alt63=2;
int LA63_0 = input.LA(1);
if ( ((LA63_0>=RULE_INT && LA63_0<=RULE_DECIMAL)||LA63_0==14||LA63_0==21||LA63_0==27||(LA63_0>=68 && LA63_0<=69)||(LA63_0>=71 && LA63_0<=73)||(LA63_0>=77 && LA63_0<=78)||LA63_0==84||LA63_0==103||LA63_0==110||LA63_0==112||(LA63_0>=116 && LA63_0<=118)||(LA63_0>=120 && LA63_0<=129)||LA63_0==131) ) {
alt63=1;
}
switch (alt63) {
case 1 :
// InternalDatatypeGrammar.g:4448:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )*
{
// InternalDatatypeGrammar.g:4448:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4449:6: (lv_elements_3_0= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4449:6: (lv_elements_3_0= ruleXAnnotationOrExpression )
// InternalDatatypeGrammar.g:4450:7: lv_elements_3_0= ruleXAnnotationOrExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0());
}
pushFollow(FOLLOW_46);
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();
}
}
}
// InternalDatatypeGrammar.g:4467:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )*
loop62:
do {
int alt62=2;
int LA62_0 = input.LA(1);
if ( (LA62_0==22) ) {
alt62=1;
}
switch (alt62) {
case 1 :
// InternalDatatypeGrammar.g:4468:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0());
}
// InternalDatatypeGrammar.g:4472:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4473:7: (lv_elements_5_0= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4473:7: (lv_elements_5_0= ruleXAnnotationOrExpression )
// InternalDatatypeGrammar.g:4474:8: lv_elements_5_0= ruleXAnnotationOrExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0());
}
pushFollow(FOLLOW_46);
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 loop62;
}
} while (true);
}
break;
}
otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:4499:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? )
{
// InternalDatatypeGrammar.g:4499:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? )
// InternalDatatypeGrammar.g:4500:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )?
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0());
}
pushFollow(FOLLOW_47);
this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XAnnotationOrExpression_7;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:4508:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )?
int alt65=2;
int LA65_0 = input.LA(1);
if ( (LA65_0==22) ) {
alt65=1;
}
switch (alt65) {
case 1 :
// InternalDatatypeGrammar.g:4509:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+
{
// InternalDatatypeGrammar.g:4509:5: ()
// InternalDatatypeGrammar.g:4510:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndAdd(
grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(),
current);
}
}
// InternalDatatypeGrammar.g:4516:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+
int cnt64=0;
loop64:
do {
int alt64=2;
int LA64_0 = input.LA(1);
if ( (LA64_0==22) ) {
alt64=1;
}
switch (alt64) {
case 1 :
// InternalDatatypeGrammar.g:4517:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) )
{
otherlv_9=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0());
}
// InternalDatatypeGrammar.g:4521:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4522:7: (lv_elements_10_0= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4522:7: (lv_elements_10_0= ruleXAnnotationOrExpression )
// InternalDatatypeGrammar.g:4523:8: lv_elements_10_0= ruleXAnnotationOrExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0());
}
pushFollow(FOLLOW_47);
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 ( cnt64 >= 1 ) break loop64;
if (state.backtracking>0) {state.failed=true; return current;}
EarlyExitException eee =
new EarlyExitException(64, input);
throw eee;
}
cnt64++;
} 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"
// InternalDatatypeGrammar.g:4547:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ;
public final EObject entryRuleXAnnotationElementValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAnnotationElementValue = null;
try {
// InternalDatatypeGrammar.g:4547:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF )
// InternalDatatypeGrammar.g:4548: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"
// InternalDatatypeGrammar.g:4554: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 {
// InternalDatatypeGrammar.g:4560:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4561:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4561:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression )
int alt69=2;
alt69 = dfa69.predict(input);
switch (alt69) {
case 1 :
// InternalDatatypeGrammar.g:4562:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' )
{
// InternalDatatypeGrammar.g:4562:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' )
// InternalDatatypeGrammar.g:4563:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']'
{
// InternalDatatypeGrammar.g:4563:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) )
// InternalDatatypeGrammar.g:4564:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' )
{
// InternalDatatypeGrammar.g:4571:5: ( () otherlv_1= '#' otherlv_2= '[' )
// InternalDatatypeGrammar.g:4572:6: () otherlv_1= '#' otherlv_2= '['
{
// InternalDatatypeGrammar.g:4572:6: ()
// InternalDatatypeGrammar.g:4573:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(),
current);
}
}
otherlv_1=(Token)match(input,78,FOLLOW_44); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1());
}
otherlv_2=(Token)match(input,27,FOLLOW_45); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2());
}
}
}
// InternalDatatypeGrammar.g:4589:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )?
int alt68=2;
int LA68_0 = input.LA(1);
if ( ((LA68_0>=RULE_INT && LA68_0<=RULE_DECIMAL)||LA68_0==14||LA68_0==21||LA68_0==27||(LA68_0>=68 && LA68_0<=69)||(LA68_0>=71 && LA68_0<=73)||(LA68_0>=77 && LA68_0<=78)||LA68_0==84||LA68_0==103||LA68_0==110||LA68_0==112||(LA68_0>=116 && LA68_0<=118)||(LA68_0>=120 && LA68_0<=129)||LA68_0==131) ) {
alt68=1;
}
switch (alt68) {
case 1 :
// InternalDatatypeGrammar.g:4590:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )*
{
// InternalDatatypeGrammar.g:4590:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4591:6: (lv_elements_3_0= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4591:6: (lv_elements_3_0= ruleXAnnotationOrExpression )
// InternalDatatypeGrammar.g:4592:7: lv_elements_3_0= ruleXAnnotationOrExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0());
}
pushFollow(FOLLOW_46);
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();
}
}
}
// InternalDatatypeGrammar.g:4609:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )*
loop67:
do {
int alt67=2;
int LA67_0 = input.LA(1);
if ( (LA67_0==22) ) {
alt67=1;
}
switch (alt67) {
case 1 :
// InternalDatatypeGrammar.g:4610:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0());
}
// InternalDatatypeGrammar.g:4614:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) )
// InternalDatatypeGrammar.g:4615:7: (lv_elements_5_0= ruleXAnnotationOrExpression )
{
// InternalDatatypeGrammar.g:4615:7: (lv_elements_5_0= ruleXAnnotationOrExpression )
// InternalDatatypeGrammar.g:4616:8: lv_elements_5_0= ruleXAnnotationOrExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0());
}
pushFollow(FOLLOW_46);
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 loop67;
}
} while (true);
}
break;
}
otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:4641: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"
// InternalDatatypeGrammar.g:4653:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ;
public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAnnotationOrExpression = null;
try {
// InternalDatatypeGrammar.g:4653:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF )
// InternalDatatypeGrammar.g:4654: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"
// InternalDatatypeGrammar.g:4660: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 {
// InternalDatatypeGrammar.g:4666:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) )
// InternalDatatypeGrammar.g:4667:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression )
{
// InternalDatatypeGrammar.g:4667:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression )
int alt70=2;
int LA70_0 = input.LA(1);
if ( (LA70_0==77) ) {
alt70=1;
}
else if ( ((LA70_0>=RULE_INT && LA70_0<=RULE_DECIMAL)||LA70_0==14||LA70_0==21||LA70_0==27||(LA70_0>=68 && LA70_0<=69)||(LA70_0>=71 && LA70_0<=73)||LA70_0==78||LA70_0==84||LA70_0==103||LA70_0==110||LA70_0==112||(LA70_0>=116 && LA70_0<=118)||(LA70_0>=120 && LA70_0<=129)||LA70_0==131) ) {
alt70=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 70, 0, input);
throw nvae;
}
switch (alt70) {
case 1 :
// InternalDatatypeGrammar.g:4668: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 :
// InternalDatatypeGrammar.g:4677: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"
// InternalDatatypeGrammar.g:4689:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ;
public final EObject entryRuleXExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXExpression = null;
try {
// InternalDatatypeGrammar.g:4689:52: (iv_ruleXExpression= ruleXExpression EOF )
// InternalDatatypeGrammar.g:4690: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"
// InternalDatatypeGrammar.g:4696: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 {
// InternalDatatypeGrammar.g:4702:2: (this_XAssignment_0= ruleXAssignment )
// InternalDatatypeGrammar.g:4703: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"
// InternalDatatypeGrammar.g:4714:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ;
public final EObject entryRuleXAssignment() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAssignment = null;
try {
// InternalDatatypeGrammar.g:4714:52: (iv_ruleXAssignment= ruleXAssignment EOF )
// InternalDatatypeGrammar.g:4715: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"
// InternalDatatypeGrammar.g:4721: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 {
// InternalDatatypeGrammar.g:4727:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) )
// InternalDatatypeGrammar.g:4728:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) )
{
// InternalDatatypeGrammar.g:4728:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) )
int alt72=2;
switch ( input.LA(1) ) {
case RULE_ID:
{
int LA72_1 = input.LA(2);
if ( (LA72_1==EOF||(LA72_1>=RULE_INT && LA72_1<=RULE_DECIMAL)||(LA72_1>=14 && LA72_1<=15)||(LA72_1>=21 && LA72_1<=23)||LA72_1==27||LA72_1==32||(LA72_1>=67 && LA72_1<=74)||LA72_1==76||(LA72_1>=78 && LA72_1<=108)||(LA72_1>=110 && LA72_1<=132)) ) {
alt72=2;
}
else if ( (LA72_1==29) ) {
alt72=1;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 1, input);
throw nvae;
}
}
break;
case 120:
{
int LA72_2 = input.LA(2);
if ( (LA72_2==EOF||(LA72_2>=RULE_INT && LA72_2<=RULE_DECIMAL)||(LA72_2>=14 && LA72_2<=15)||(LA72_2>=21 && LA72_2<=23)||LA72_2==27||LA72_2==32||(LA72_2>=67 && LA72_2<=74)||LA72_2==76||(LA72_2>=78 && LA72_2<=108)||(LA72_2>=110 && LA72_2<=132)) ) {
alt72=2;
}
else if ( (LA72_2==29) ) {
alt72=1;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 2, input);
throw nvae;
}
}
break;
case 72:
{
int LA72_3 = input.LA(2);
if ( (LA72_3==29) ) {
alt72=1;
}
else if ( (LA72_3==EOF||(LA72_3>=RULE_INT && LA72_3<=RULE_DECIMAL)||(LA72_3>=14 && LA72_3<=15)||(LA72_3>=21 && LA72_3<=23)||LA72_3==27||LA72_3==32||(LA72_3>=67 && LA72_3<=74)||LA72_3==76||(LA72_3>=78 && LA72_3<=108)||(LA72_3>=110 && LA72_3<=132)) ) {
alt72=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 3, input);
throw nvae;
}
}
break;
case 71:
{
int LA72_4 = input.LA(2);
if ( (LA72_4==29) ) {
alt72=1;
}
else if ( (LA72_4==EOF||(LA72_4>=RULE_INT && LA72_4<=RULE_DECIMAL)||(LA72_4>=14 && LA72_4<=15)||(LA72_4>=21 && LA72_4<=23)||LA72_4==27||LA72_4==32||(LA72_4>=67 && LA72_4<=74)||LA72_4==76||(LA72_4>=78 && LA72_4<=108)||(LA72_4>=110 && LA72_4<=132)) ) {
alt72=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 4, input);
throw nvae;
}
}
break;
case 73:
{
int LA72_5 = input.LA(2);
if ( (LA72_5==29) ) {
alt72=1;
}
else if ( (LA72_5==EOF||(LA72_5>=RULE_INT && LA72_5<=RULE_DECIMAL)||(LA72_5>=14 && LA72_5<=15)||(LA72_5>=21 && LA72_5<=23)||LA72_5==27||LA72_5==32||(LA72_5>=67 && LA72_5<=74)||LA72_5==76||(LA72_5>=78 && LA72_5<=108)||(LA72_5>=110 && LA72_5<=132)) ) {
alt72=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 5, input);
throw nvae;
}
}
break;
case RULE_INT:
case RULE_STRING:
case RULE_HEX:
case RULE_DECIMAL:
case 14:
case 21:
case 27:
case 68:
case 69:
case 78:
case 84:
case 103:
case 110:
case 112:
case 116:
case 117:
case 118:
case 121:
case 122:
case 123:
case 124:
case 125:
case 126:
case 127:
case 128:
case 129:
case 131:
{
alt72=2;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 72, 0, input);
throw nvae;
}
switch (alt72) {
case 1 :
// InternalDatatypeGrammar.g:4729:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) )
{
// InternalDatatypeGrammar.g:4729:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) )
// InternalDatatypeGrammar.g:4730:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) )
{
// InternalDatatypeGrammar.g:4730:4: ()
// InternalDatatypeGrammar.g:4731:5:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:4737:4: ( ( ruleFeatureCallID ) )
// InternalDatatypeGrammar.g:4738:5: ( ruleFeatureCallID )
{
// InternalDatatypeGrammar.g:4738:5: ( ruleFeatureCallID )
// InternalDatatypeGrammar.g:4739: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_21);
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_43);
ruleOpSingleAssign();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:4760:4: ( (lv_value_3_0= ruleXAssignment ) )
// InternalDatatypeGrammar.g:4761:5: (lv_value_3_0= ruleXAssignment )
{
// InternalDatatypeGrammar.g:4761:5: (lv_value_3_0= ruleXAssignment )
// InternalDatatypeGrammar.g:4762: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 :
// InternalDatatypeGrammar.g:4781:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? )
{
// InternalDatatypeGrammar.g:4781:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? )
// InternalDatatypeGrammar.g:4782:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0());
}
pushFollow(FOLLOW_48);
this_XOrExpression_4=ruleXOrExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XOrExpression_4;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:4790:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?
int alt71=2;
alt71 = dfa71.predict(input);
switch (alt71) {
case 1 :
// InternalDatatypeGrammar.g:4791:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) )
{
// InternalDatatypeGrammar.g:4791:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) )
// InternalDatatypeGrammar.g:4792:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) )
{
// InternalDatatypeGrammar.g:4802:6: ( () ( ( ruleOpMultiAssign ) ) )
// InternalDatatypeGrammar.g:4803:7: () ( ( ruleOpMultiAssign ) )
{
// InternalDatatypeGrammar.g:4803:7: ()
// InternalDatatypeGrammar.g:4804:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:4810:7: ( ( ruleOpMultiAssign ) )
// InternalDatatypeGrammar.g:4811:8: ( ruleOpMultiAssign )
{
// InternalDatatypeGrammar.g:4811:8: ( ruleOpMultiAssign )
// InternalDatatypeGrammar.g:4812: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_43);
ruleOpMultiAssign();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:4828:5: ( (lv_rightOperand_7_0= ruleXAssignment ) )
// InternalDatatypeGrammar.g:4829:6: (lv_rightOperand_7_0= ruleXAssignment )
{
// InternalDatatypeGrammar.g:4829:6: (lv_rightOperand_7_0= ruleXAssignment )
// InternalDatatypeGrammar.g:4830: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"
// InternalDatatypeGrammar.g:4853:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ;
public final String entryRuleOpSingleAssign() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null;
try {
// InternalDatatypeGrammar.g:4853:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF )
// InternalDatatypeGrammar.g:4854: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"
// InternalDatatypeGrammar.g:4860:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ;
public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:4866:2: (kw= '=' )
// InternalDatatypeGrammar.g:4867:2: kw= '='
{
kw=(Token)match(input,29,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"
// InternalDatatypeGrammar.g:4875:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ;
public final String entryRuleOpMultiAssign() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null;
try {
// InternalDatatypeGrammar.g:4875:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF )
// InternalDatatypeGrammar.g:4876: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"
// InternalDatatypeGrammar.g:4882: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 {
// InternalDatatypeGrammar.g:4888:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) )
// InternalDatatypeGrammar.g:4889:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) )
{
// InternalDatatypeGrammar.g:4889:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) )
int alt74=7;
switch ( input.LA(1) ) {
case 79:
{
alt74=1;
}
break;
case 80:
{
alt74=2;
}
break;
case 81:
{
alt74=3;
}
break;
case 82:
{
alt74=4;
}
break;
case 83:
{
alt74=5;
}
break;
case 84:
{
alt74=6;
}
break;
case 85:
{
alt74=7;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 74, 0, input);
throw nvae;
}
switch (alt74) {
case 1 :
// InternalDatatypeGrammar.g:4890:3: kw= '+='
{
kw=(Token)match(input,79,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:4896:3: kw= '-='
{
kw=(Token)match(input,80,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:4902:3: kw= '*='
{
kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:4908:3: kw= '/='
{
kw=(Token)match(input,82,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3());
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:4914:3: kw= '%='
{
kw=(Token)match(input,83,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4());
}
}
break;
case 6 :
// InternalDatatypeGrammar.g:4920:3: (kw= '<' kw= '<' kw= '=' )
{
// InternalDatatypeGrammar.g:4920:3: (kw= '<' kw= '<' kw= '=' )
// InternalDatatypeGrammar.g:4921:4: kw= '<' kw= '<' kw= '='
{
kw=(Token)match(input,84,FOLLOW_49); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0());
}
kw=(Token)match(input,84,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1());
}
kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2());
}
}
}
break;
case 7 :
// InternalDatatypeGrammar.g:4938:3: (kw= '>' (kw= '>' )? kw= '>=' )
{
// InternalDatatypeGrammar.g:4938:3: (kw= '>' (kw= '>' )? kw= '>=' )
// InternalDatatypeGrammar.g:4939:4: kw= '>' (kw= '>' )? kw= '>='
{
kw=(Token)match(input,85,FOLLOW_50); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0());
}
// InternalDatatypeGrammar.g:4944:4: (kw= '>' )?
int alt73=2;
int LA73_0 = input.LA(1);
if ( (LA73_0==85) ) {
alt73=1;
}
switch (alt73) {
case 1 :
// InternalDatatypeGrammar.g:4945:5: kw= '>'
{
kw=(Token)match(input,85,FOLLOW_51); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1());
}
}
break;
}
kw=(Token)match(input,86,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"
// InternalDatatypeGrammar.g:4961:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ;
public final EObject entryRuleXOrExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXOrExpression = null;
try {
// InternalDatatypeGrammar.g:4961:54: (iv_ruleXOrExpression= ruleXOrExpression EOF )
// InternalDatatypeGrammar.g:4962: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"
// InternalDatatypeGrammar.g:4968: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 {
// InternalDatatypeGrammar.g:4974:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) )
// InternalDatatypeGrammar.g:4975:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* )
{
// InternalDatatypeGrammar.g:4975:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* )
// InternalDatatypeGrammar.g:4976:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0());
}
pushFollow(FOLLOW_52);
this_XAndExpression_0=ruleXAndExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XAndExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:4984:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )*
loop75:
do {
int alt75=2;
int LA75_0 = input.LA(1);
if ( (LA75_0==87) ) {
int LA75_2 = input.LA(2);
if ( (synpred10_InternalDatatypeGrammar()) ) {
alt75=1;
}
}
switch (alt75) {
case 1 :
// InternalDatatypeGrammar.g:4985:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) )
{
// InternalDatatypeGrammar.g:4985:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) )
// InternalDatatypeGrammar.g:4986:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) )
{
// InternalDatatypeGrammar.g:4996:5: ( () ( ( ruleOpOr ) ) )
// InternalDatatypeGrammar.g:4997:6: () ( ( ruleOpOr ) )
{
// InternalDatatypeGrammar.g:4997:6: ()
// InternalDatatypeGrammar.g:4998:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5004:6: ( ( ruleOpOr ) )
// InternalDatatypeGrammar.g:5005:7: ( ruleOpOr )
{
// InternalDatatypeGrammar.g:5005:7: ( ruleOpOr )
// InternalDatatypeGrammar.g:5006: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_43);
ruleOpOr();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5022:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) )
// InternalDatatypeGrammar.g:5023:5: (lv_rightOperand_3_0= ruleXAndExpression )
{
// InternalDatatypeGrammar.g:5023:5: (lv_rightOperand_3_0= ruleXAndExpression )
// InternalDatatypeGrammar.g:5024:6: lv_rightOperand_3_0= ruleXAndExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_52);
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 loop75;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXOrExpression"
// $ANTLR start "entryRuleOpOr"
// InternalDatatypeGrammar.g:5046:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ;
public final String entryRuleOpOr() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpOr = null;
try {
// InternalDatatypeGrammar.g:5046:44: (iv_ruleOpOr= ruleOpOr EOF )
// InternalDatatypeGrammar.g:5047: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"
// InternalDatatypeGrammar.g:5053:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ;
public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:5059:2: (kw= '||' )
// InternalDatatypeGrammar.g:5060:2: kw= '||'
{
kw=(Token)match(input,87,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"
// InternalDatatypeGrammar.g:5068:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ;
public final EObject entryRuleXAndExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAndExpression = null;
try {
// InternalDatatypeGrammar.g:5068:55: (iv_ruleXAndExpression= ruleXAndExpression EOF )
// InternalDatatypeGrammar.g:5069: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"
// InternalDatatypeGrammar.g:5075: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 {
// InternalDatatypeGrammar.g:5081:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) )
// InternalDatatypeGrammar.g:5082:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* )
{
// InternalDatatypeGrammar.g:5082:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* )
// InternalDatatypeGrammar.g:5083:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0());
}
pushFollow(FOLLOW_53);
this_XEqualityExpression_0=ruleXEqualityExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XEqualityExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5091:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )*
loop76:
do {
int alt76=2;
int LA76_0 = input.LA(1);
if ( (LA76_0==88) ) {
int LA76_2 = input.LA(2);
if ( (synpred11_InternalDatatypeGrammar()) ) {
alt76=1;
}
}
switch (alt76) {
case 1 :
// InternalDatatypeGrammar.g:5092:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) )
{
// InternalDatatypeGrammar.g:5092:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) )
// InternalDatatypeGrammar.g:5093:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) )
{
// InternalDatatypeGrammar.g:5103:5: ( () ( ( ruleOpAnd ) ) )
// InternalDatatypeGrammar.g:5104:6: () ( ( ruleOpAnd ) )
{
// InternalDatatypeGrammar.g:5104:6: ()
// InternalDatatypeGrammar.g:5105:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5111:6: ( ( ruleOpAnd ) )
// InternalDatatypeGrammar.g:5112:7: ( ruleOpAnd )
{
// InternalDatatypeGrammar.g:5112:7: ( ruleOpAnd )
// InternalDatatypeGrammar.g:5113: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_43);
ruleOpAnd();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5129:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) )
// InternalDatatypeGrammar.g:5130:5: (lv_rightOperand_3_0= ruleXEqualityExpression )
{
// InternalDatatypeGrammar.g:5130:5: (lv_rightOperand_3_0= ruleXEqualityExpression )
// InternalDatatypeGrammar.g:5131:6: lv_rightOperand_3_0= ruleXEqualityExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_53);
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 loop76;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXAndExpression"
// $ANTLR start "entryRuleOpAnd"
// InternalDatatypeGrammar.g:5153:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ;
public final String entryRuleOpAnd() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpAnd = null;
try {
// InternalDatatypeGrammar.g:5153:45: (iv_ruleOpAnd= ruleOpAnd EOF )
// InternalDatatypeGrammar.g:5154: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"
// InternalDatatypeGrammar.g:5160:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ;
public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:5166:2: (kw= '&&' )
// InternalDatatypeGrammar.g:5167:2: kw= '&&'
{
kw=(Token)match(input,88,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"
// InternalDatatypeGrammar.g:5175:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ;
public final EObject entryRuleXEqualityExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXEqualityExpression = null;
try {
// InternalDatatypeGrammar.g:5175:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF )
// InternalDatatypeGrammar.g:5176: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"
// InternalDatatypeGrammar.g:5182: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 {
// InternalDatatypeGrammar.g:5188:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) )
// InternalDatatypeGrammar.g:5189:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* )
{
// InternalDatatypeGrammar.g:5189:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* )
// InternalDatatypeGrammar.g:5190:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0());
}
pushFollow(FOLLOW_54);
this_XRelationalExpression_0=ruleXRelationalExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XRelationalExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5198:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )*
loop77:
do {
int alt77=2;
switch ( input.LA(1) ) {
case 89:
{
int LA77_2 = input.LA(2);
if ( (synpred12_InternalDatatypeGrammar()) ) {
alt77=1;
}
}
break;
case 90:
{
int LA77_3 = input.LA(2);
if ( (synpred12_InternalDatatypeGrammar()) ) {
alt77=1;
}
}
break;
case 91:
{
int LA77_4 = input.LA(2);
if ( (synpred12_InternalDatatypeGrammar()) ) {
alt77=1;
}
}
break;
case 92:
{
int LA77_5 = input.LA(2);
if ( (synpred12_InternalDatatypeGrammar()) ) {
alt77=1;
}
}
break;
}
switch (alt77) {
case 1 :
// InternalDatatypeGrammar.g:5199:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) )
{
// InternalDatatypeGrammar.g:5199:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) )
// InternalDatatypeGrammar.g:5200:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) )
{
// InternalDatatypeGrammar.g:5210:5: ( () ( ( ruleOpEquality ) ) )
// InternalDatatypeGrammar.g:5211:6: () ( ( ruleOpEquality ) )
{
// InternalDatatypeGrammar.g:5211:6: ()
// InternalDatatypeGrammar.g:5212:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5218:6: ( ( ruleOpEquality ) )
// InternalDatatypeGrammar.g:5219:7: ( ruleOpEquality )
{
// InternalDatatypeGrammar.g:5219:7: ( ruleOpEquality )
// InternalDatatypeGrammar.g:5220: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_43);
ruleOpEquality();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5236:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) )
// InternalDatatypeGrammar.g:5237:5: (lv_rightOperand_3_0= ruleXRelationalExpression )
{
// InternalDatatypeGrammar.g:5237:5: (lv_rightOperand_3_0= ruleXRelationalExpression )
// InternalDatatypeGrammar.g:5238:6: lv_rightOperand_3_0= ruleXRelationalExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_54);
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 loop77;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXEqualityExpression"
// $ANTLR start "entryRuleOpEquality"
// InternalDatatypeGrammar.g:5260:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ;
public final String entryRuleOpEquality() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpEquality = null;
try {
// InternalDatatypeGrammar.g:5260:50: (iv_ruleOpEquality= ruleOpEquality EOF )
// InternalDatatypeGrammar.g:5261: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"
// InternalDatatypeGrammar.g:5267: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 {
// InternalDatatypeGrammar.g:5273:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) )
// InternalDatatypeGrammar.g:5274:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' )
{
// InternalDatatypeGrammar.g:5274:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' )
int alt78=4;
switch ( input.LA(1) ) {
case 89:
{
alt78=1;
}
break;
case 90:
{
alt78=2;
}
break;
case 91:
{
alt78=3;
}
break;
case 92:
{
alt78=4;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 78, 0, input);
throw nvae;
}
switch (alt78) {
case 1 :
// InternalDatatypeGrammar.g:5275:3: kw= '=='
{
kw=(Token)match(input,89,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:5281:3: kw= '!='
{
kw=(Token)match(input,90,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:5287:3: kw= '==='
{
kw=(Token)match(input,91,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:5293:3: kw= '!=='
{
kw=(Token)match(input,92,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"
// InternalDatatypeGrammar.g:5302:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ;
public final EObject entryRuleXRelationalExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXRelationalExpression = null;
try {
// InternalDatatypeGrammar.g:5302:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF )
// InternalDatatypeGrammar.g:5303: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"
// InternalDatatypeGrammar.g:5309: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 {
// InternalDatatypeGrammar.g:5315:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) )
// InternalDatatypeGrammar.g:5316:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* )
{
// InternalDatatypeGrammar.g:5316:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* )
// InternalDatatypeGrammar.g:5317: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_55);
this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XOtherOperatorExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5325:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )*
loop79:
do {
int alt79=3;
switch ( input.LA(1) ) {
case 84:
{
int LA79_2 = input.LA(2);
if ( (synpred14_InternalDatatypeGrammar()) ) {
alt79=2;
}
}
break;
case 85:
{
int LA79_3 = input.LA(2);
if ( (synpred14_InternalDatatypeGrammar()) ) {
alt79=2;
}
}
break;
case 93:
{
int LA79_4 = input.LA(2);
if ( (synpred13_InternalDatatypeGrammar()) ) {
alt79=1;
}
}
break;
case 86:
{
int LA79_5 = input.LA(2);
if ( (synpred14_InternalDatatypeGrammar()) ) {
alt79=2;
}
}
break;
}
switch (alt79) {
case 1 :
// InternalDatatypeGrammar.g:5326:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:5326:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:5327:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) )
{
// InternalDatatypeGrammar.g:5327:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) )
// InternalDatatypeGrammar.g:5328:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' )
{
// InternalDatatypeGrammar.g:5334:6: ( () otherlv_2= 'instanceof' )
// InternalDatatypeGrammar.g:5335:7: () otherlv_2= 'instanceof'
{
// InternalDatatypeGrammar.g:5335:7: ()
// InternalDatatypeGrammar.g:5336:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(),
current);
}
}
otherlv_2=(Token)match(input,93,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1());
}
}
}
// InternalDatatypeGrammar.g:5348:5: ( (lv_type_3_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:5349:6: (lv_type_3_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:5349:6: (lv_type_3_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:5350:7: lv_type_3_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0());
}
pushFollow(FOLLOW_55);
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 :
// InternalDatatypeGrammar.g:5369:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) )
{
// InternalDatatypeGrammar.g:5369:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) )
// InternalDatatypeGrammar.g:5370:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) )
{
// InternalDatatypeGrammar.g:5370:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) )
// InternalDatatypeGrammar.g:5371:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) )
{
// InternalDatatypeGrammar.g:5381:6: ( () ( ( ruleOpCompare ) ) )
// InternalDatatypeGrammar.g:5382:7: () ( ( ruleOpCompare ) )
{
// InternalDatatypeGrammar.g:5382:7: ()
// InternalDatatypeGrammar.g:5383:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5389:7: ( ( ruleOpCompare ) )
// InternalDatatypeGrammar.g:5390:8: ( ruleOpCompare )
{
// InternalDatatypeGrammar.g:5390:8: ( ruleOpCompare )
// InternalDatatypeGrammar.g:5391: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_43);
ruleOpCompare();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5407:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) )
// InternalDatatypeGrammar.g:5408:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression )
{
// InternalDatatypeGrammar.g:5408:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression )
// InternalDatatypeGrammar.g:5409:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0());
}
pushFollow(FOLLOW_55);
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 loop79;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXRelationalExpression"
// $ANTLR start "entryRuleOpCompare"
// InternalDatatypeGrammar.g:5432:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ;
public final String entryRuleOpCompare() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpCompare = null;
try {
// InternalDatatypeGrammar.g:5432:49: (iv_ruleOpCompare= ruleOpCompare EOF )
// InternalDatatypeGrammar.g:5433: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"
// InternalDatatypeGrammar.g:5439: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 {
// InternalDatatypeGrammar.g:5445:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) )
// InternalDatatypeGrammar.g:5446:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' )
{
// InternalDatatypeGrammar.g:5446:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' )
int alt80=4;
switch ( input.LA(1) ) {
case 86:
{
alt80=1;
}
break;
case 84:
{
int LA80_2 = input.LA(2);
if ( (LA80_2==EOF||(LA80_2>=RULE_INT && LA80_2<=RULE_DECIMAL)||LA80_2==14||LA80_2==21||LA80_2==27||(LA80_2>=68 && LA80_2<=69)||(LA80_2>=71 && LA80_2<=73)||LA80_2==78||LA80_2==84||LA80_2==103||LA80_2==110||LA80_2==112||(LA80_2>=116 && LA80_2<=118)||(LA80_2>=120 && LA80_2<=129)||LA80_2==131) ) {
alt80=4;
}
else if ( (LA80_2==29) ) {
alt80=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 80, 2, input);
throw nvae;
}
}
break;
case 85:
{
alt80=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 80, 0, input);
throw nvae;
}
switch (alt80) {
case 1 :
// InternalDatatypeGrammar.g:5447:3: kw= '>='
{
kw=(Token)match(input,86,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:5453:3: (kw= '<' kw= '=' )
{
// InternalDatatypeGrammar.g:5453:3: (kw= '<' kw= '=' )
// InternalDatatypeGrammar.g:5454:4: kw= '<' kw= '='
{
kw=(Token)match(input,84,FOLLOW_21); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0());
}
kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:5466:3: kw= '>'
{
kw=(Token)match(input,85,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:5472:3: kw= '<'
{
kw=(Token)match(input,84,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"
// InternalDatatypeGrammar.g:5481:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ;
public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXOtherOperatorExpression = null;
try {
// InternalDatatypeGrammar.g:5481:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF )
// InternalDatatypeGrammar.g:5482: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"
// InternalDatatypeGrammar.g:5488: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 {
// InternalDatatypeGrammar.g:5494:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) )
// InternalDatatypeGrammar.g:5495:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* )
{
// InternalDatatypeGrammar.g:5495:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* )
// InternalDatatypeGrammar.g:5496:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0());
}
pushFollow(FOLLOW_56);
this_XAdditiveExpression_0=ruleXAdditiveExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XAdditiveExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5504:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*
loop81:
do {
int alt81=2;
alt81 = dfa81.predict(input);
switch (alt81) {
case 1 :
// InternalDatatypeGrammar.g:5505:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) )
{
// InternalDatatypeGrammar.g:5505:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) )
// InternalDatatypeGrammar.g:5506:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) )
{
// InternalDatatypeGrammar.g:5516:5: ( () ( ( ruleOpOther ) ) )
// InternalDatatypeGrammar.g:5517:6: () ( ( ruleOpOther ) )
{
// InternalDatatypeGrammar.g:5517:6: ()
// InternalDatatypeGrammar.g:5518:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5524:6: ( ( ruleOpOther ) )
// InternalDatatypeGrammar.g:5525:7: ( ruleOpOther )
{
// InternalDatatypeGrammar.g:5525:7: ( ruleOpOther )
// InternalDatatypeGrammar.g:5526: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_43);
ruleOpOther();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5542:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) )
// InternalDatatypeGrammar.g:5543:5: (lv_rightOperand_3_0= ruleXAdditiveExpression )
{
// InternalDatatypeGrammar.g:5543:5: (lv_rightOperand_3_0= ruleXAdditiveExpression )
// InternalDatatypeGrammar.g:5544:6: lv_rightOperand_3_0= ruleXAdditiveExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_56);
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 loop81;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXOtherOperatorExpression"
// $ANTLR start "entryRuleOpOther"
// InternalDatatypeGrammar.g:5566:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ;
public final String entryRuleOpOther() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpOther = null;
try {
// InternalDatatypeGrammar.g:5566:47: (iv_ruleOpOther= ruleOpOther EOF )
// InternalDatatypeGrammar.g:5567: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"
// InternalDatatypeGrammar.g:5573: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 {
// InternalDatatypeGrammar.g:5579:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) )
// InternalDatatypeGrammar.g:5580:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )
{
// InternalDatatypeGrammar.g:5580:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )
int alt84=9;
alt84 = dfa84.predict(input);
switch (alt84) {
case 1 :
// InternalDatatypeGrammar.g:5581:3: kw= '->'
{
kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:5587:3: kw= '..<'
{
kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:5593:3: (kw= '>' kw= '..' )
{
// InternalDatatypeGrammar.g:5593:3: (kw= '>' kw= '..' )
// InternalDatatypeGrammar.g:5594:4: kw= '>' kw= '..'
{
kw=(Token)match(input,85,FOLLOW_57); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0());
}
kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1());
}
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:5606:3: kw= '..'
{
kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3());
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:5612:3: kw= '=>'
{
kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4());
}
}
break;
case 6 :
// InternalDatatypeGrammar.g:5618:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) )
{
// InternalDatatypeGrammar.g:5618:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) )
// InternalDatatypeGrammar.g:5619:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' )
{
kw=(Token)match(input,85,FOLLOW_58); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0());
}
// InternalDatatypeGrammar.g:5624:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' )
int alt82=2;
int LA82_0 = input.LA(1);
if ( (LA82_0==85) ) {
int LA82_1 = input.LA(2);
if ( (LA82_1==EOF||(LA82_1>=RULE_INT && LA82_1<=RULE_DECIMAL)||LA82_1==14||LA82_1==21||LA82_1==27||(LA82_1>=68 && LA82_1<=69)||(LA82_1>=71 && LA82_1<=73)||LA82_1==78||LA82_1==84||LA82_1==103||LA82_1==110||LA82_1==112||(LA82_1>=116 && LA82_1<=118)||(LA82_1>=120 && LA82_1<=129)||LA82_1==131) ) {
alt82=2;
}
else if ( (LA82_1==85) && (synpred16_InternalDatatypeGrammar())) {
alt82=1;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 82, 1, input);
throw nvae;
}
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 82, 0, input);
throw nvae;
}
switch (alt82) {
case 1 :
// InternalDatatypeGrammar.g:5625:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) )
{
// InternalDatatypeGrammar.g:5625:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) )
// InternalDatatypeGrammar.g:5626:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' )
{
// InternalDatatypeGrammar.g:5631:6: (kw= '>' kw= '>' )
// InternalDatatypeGrammar.g:5632:7: kw= '>' kw= '>'
{
kw=(Token)match(input,85,FOLLOW_58); 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,85,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 :
// InternalDatatypeGrammar.g:5645:5: kw= '>'
{
kw=(Token)match(input,85,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 :
// InternalDatatypeGrammar.g:5653:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) )
{
// InternalDatatypeGrammar.g:5653:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) )
// InternalDatatypeGrammar.g:5654:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' )
{
kw=(Token)match(input,84,FOLLOW_59); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0());
}
// InternalDatatypeGrammar.g:5659:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' )
int alt83=3;
int LA83_0 = input.LA(1);
if ( (LA83_0==84) ) {
int LA83_1 = input.LA(2);
if ( (synpred17_InternalDatatypeGrammar()) ) {
alt83=1;
}
else if ( (true) ) {
alt83=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 83, 1, input);
throw nvae;
}
}
else if ( (LA83_0==97) ) {
alt83=3;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 83, 0, input);
throw nvae;
}
switch (alt83) {
case 1 :
// InternalDatatypeGrammar.g:5660:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) )
{
// InternalDatatypeGrammar.g:5660:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) )
// InternalDatatypeGrammar.g:5661:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' )
{
// InternalDatatypeGrammar.g:5666:6: (kw= '<' kw= '<' )
// InternalDatatypeGrammar.g:5667:7: kw= '<' kw= '<'
{
kw=(Token)match(input,84,FOLLOW_49); 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,84,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 :
// InternalDatatypeGrammar.g:5680:5: kw= '<'
{
kw=(Token)match(input,84,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 :
// InternalDatatypeGrammar.g:5686:5: kw= '=>'
{
kw=(Token)match(input,97,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 :
// InternalDatatypeGrammar.g:5694:3: kw= '<>'
{
kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7());
}
}
break;
case 9 :
// InternalDatatypeGrammar.g:5700:3: kw= '?:'
{
kw=(Token)match(input,99,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"
// InternalDatatypeGrammar.g:5709:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ;
public final EObject entryRuleXAdditiveExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXAdditiveExpression = null;
try {
// InternalDatatypeGrammar.g:5709:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF )
// InternalDatatypeGrammar.g:5710: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"
// InternalDatatypeGrammar.g:5716: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 {
// InternalDatatypeGrammar.g:5722:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) )
// InternalDatatypeGrammar.g:5723:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* )
{
// InternalDatatypeGrammar.g:5723:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* )
// InternalDatatypeGrammar.g:5724:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0());
}
pushFollow(FOLLOW_60);
this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XMultiplicativeExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5732:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )*
loop85:
do {
int alt85=2;
int LA85_0 = input.LA(1);
if ( (LA85_0==68) ) {
int LA85_2 = input.LA(2);
if ( (synpred18_InternalDatatypeGrammar()) ) {
alt85=1;
}
}
else if ( (LA85_0==69) ) {
int LA85_3 = input.LA(2);
if ( (synpred18_InternalDatatypeGrammar()) ) {
alt85=1;
}
}
switch (alt85) {
case 1 :
// InternalDatatypeGrammar.g:5733:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) )
{
// InternalDatatypeGrammar.g:5733:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) )
// InternalDatatypeGrammar.g:5734:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) )
{
// InternalDatatypeGrammar.g:5744:5: ( () ( ( ruleOpAdd ) ) )
// InternalDatatypeGrammar.g:5745:6: () ( ( ruleOpAdd ) )
{
// InternalDatatypeGrammar.g:5745:6: ()
// InternalDatatypeGrammar.g:5746:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5752:6: ( ( ruleOpAdd ) )
// InternalDatatypeGrammar.g:5753:7: ( ruleOpAdd )
{
// InternalDatatypeGrammar.g:5753:7: ( ruleOpAdd )
// InternalDatatypeGrammar.g:5754: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_43);
ruleOpAdd();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5770:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) )
// InternalDatatypeGrammar.g:5771:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression )
{
// InternalDatatypeGrammar.g:5771:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression )
// InternalDatatypeGrammar.g:5772:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_60);
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 loop85;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXAdditiveExpression"
// $ANTLR start "entryRuleOpAdd"
// InternalDatatypeGrammar.g:5794:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ;
public final String entryRuleOpAdd() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpAdd = null;
try {
// InternalDatatypeGrammar.g:5794:45: (iv_ruleOpAdd= ruleOpAdd EOF )
// InternalDatatypeGrammar.g:5795: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"
// InternalDatatypeGrammar.g:5801:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:5807:2: ( (kw= '+' | kw= '-' ) )
// InternalDatatypeGrammar.g:5808:2: (kw= '+' | kw= '-' )
{
// InternalDatatypeGrammar.g:5808:2: (kw= '+' | kw= '-' )
int alt86=2;
int LA86_0 = input.LA(1);
if ( (LA86_0==68) ) {
alt86=1;
}
else if ( (LA86_0==69) ) {
alt86=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 86, 0, input);
throw nvae;
}
switch (alt86) {
case 1 :
// InternalDatatypeGrammar.g:5809:3: kw= '+'
{
kw=(Token)match(input,68,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:5815:3: kw= '-'
{
kw=(Token)match(input,69,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"
// InternalDatatypeGrammar.g:5824:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ;
public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXMultiplicativeExpression = null;
try {
// InternalDatatypeGrammar.g:5824:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF )
// InternalDatatypeGrammar.g:5825: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"
// InternalDatatypeGrammar.g:5831: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 {
// InternalDatatypeGrammar.g:5837:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) )
// InternalDatatypeGrammar.g:5838:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )
{
// InternalDatatypeGrammar.g:5838:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* )
// InternalDatatypeGrammar.g:5839:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0());
}
pushFollow(FOLLOW_61);
this_XUnaryOperation_0=ruleXUnaryOperation();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XUnaryOperation_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:5847:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )*
loop87:
do {
int alt87=2;
switch ( input.LA(1) ) {
case 74:
{
int LA87_2 = input.LA(2);
if ( (synpred19_InternalDatatypeGrammar()) ) {
alt87=1;
}
}
break;
case 100:
{
int LA87_3 = input.LA(2);
if ( (synpred19_InternalDatatypeGrammar()) ) {
alt87=1;
}
}
break;
case 101:
{
int LA87_4 = input.LA(2);
if ( (synpred19_InternalDatatypeGrammar()) ) {
alt87=1;
}
}
break;
case 102:
{
int LA87_5 = input.LA(2);
if ( (synpred19_InternalDatatypeGrammar()) ) {
alt87=1;
}
}
break;
}
switch (alt87) {
case 1 :
// InternalDatatypeGrammar.g:5848:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )
{
// InternalDatatypeGrammar.g:5848:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) )
// InternalDatatypeGrammar.g:5849:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) )
{
// InternalDatatypeGrammar.g:5859:5: ( () ( ( ruleOpMulti ) ) )
// InternalDatatypeGrammar.g:5860:6: () ( ( ruleOpMulti ) )
{
// InternalDatatypeGrammar.g:5860:6: ()
// InternalDatatypeGrammar.g:5861:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5867:6: ( ( ruleOpMulti ) )
// InternalDatatypeGrammar.g:5868:7: ( ruleOpMulti )
{
// InternalDatatypeGrammar.g:5868:7: ( ruleOpMulti )
// InternalDatatypeGrammar.g:5869: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_43);
ruleOpMulti();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
}
}
// InternalDatatypeGrammar.g:5885:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) )
// InternalDatatypeGrammar.g:5886:5: (lv_rightOperand_3_0= ruleXUnaryOperation )
{
// InternalDatatypeGrammar.g:5886:5: (lv_rightOperand_3_0= ruleXUnaryOperation )
// InternalDatatypeGrammar.g:5887:6: lv_rightOperand_3_0= ruleXUnaryOperation
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_61);
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 loop87;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXMultiplicativeExpression"
// $ANTLR start "entryRuleOpMulti"
// InternalDatatypeGrammar.g:5909:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ;
public final String entryRuleOpMulti() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpMulti = null;
try {
// InternalDatatypeGrammar.g:5909:47: (iv_ruleOpMulti= ruleOpMulti EOF )
// InternalDatatypeGrammar.g:5910: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"
// InternalDatatypeGrammar.g:5916: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 {
// InternalDatatypeGrammar.g:5922:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) )
// InternalDatatypeGrammar.g:5923:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' )
{
// InternalDatatypeGrammar.g:5923:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' )
int alt88=4;
switch ( input.LA(1) ) {
case 74:
{
alt88=1;
}
break;
case 100:
{
alt88=2;
}
break;
case 101:
{
alt88=3;
}
break;
case 102:
{
alt88=4;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 88, 0, input);
throw nvae;
}
switch (alt88) {
case 1 :
// InternalDatatypeGrammar.g:5924:3: kw= '*'
{
kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:5930:3: kw= '**'
{
kw=(Token)match(input,100,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:5936:3: kw= '/'
{
kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:5942:3: kw= '%'
{
kw=(Token)match(input,102,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"
// InternalDatatypeGrammar.g:5951:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ;
public final EObject entryRuleXUnaryOperation() throws RecognitionException {
EObject current = null;
EObject iv_ruleXUnaryOperation = null;
try {
// InternalDatatypeGrammar.g:5951:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF )
// InternalDatatypeGrammar.g:5952: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"
// InternalDatatypeGrammar.g:5958: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 {
// InternalDatatypeGrammar.g:5964:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) )
// InternalDatatypeGrammar.g:5965:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )
{
// InternalDatatypeGrammar.g:5965:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression )
int alt89=2;
int LA89_0 = input.LA(1);
if ( ((LA89_0>=68 && LA89_0<=69)||LA89_0==103) ) {
alt89=1;
}
else if ( ((LA89_0>=RULE_INT && LA89_0<=RULE_DECIMAL)||LA89_0==14||LA89_0==21||LA89_0==27||(LA89_0>=71 && LA89_0<=73)||LA89_0==78||LA89_0==84||LA89_0==110||LA89_0==112||(LA89_0>=116 && LA89_0<=118)||(LA89_0>=120 && LA89_0<=129)||LA89_0==131) ) {
alt89=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 89, 0, input);
throw nvae;
}
switch (alt89) {
case 1 :
// InternalDatatypeGrammar.g:5966:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )
{
// InternalDatatypeGrammar.g:5966:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) )
// InternalDatatypeGrammar.g:5967:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) )
{
// InternalDatatypeGrammar.g:5967:4: ()
// InternalDatatypeGrammar.g:5968:5:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:5974:4: ( ( ruleOpUnary ) )
// InternalDatatypeGrammar.g:5975:5: ( ruleOpUnary )
{
// InternalDatatypeGrammar.g:5975:5: ( ruleOpUnary )
// InternalDatatypeGrammar.g:5976: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_43);
ruleOpUnary();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:5990:4: ( (lv_operand_2_0= ruleXUnaryOperation ) )
// InternalDatatypeGrammar.g:5991:5: (lv_operand_2_0= ruleXUnaryOperation )
{
// InternalDatatypeGrammar.g:5991:5: (lv_operand_2_0= ruleXUnaryOperation )
// InternalDatatypeGrammar.g:5992: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 :
// InternalDatatypeGrammar.g:6011: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"
// InternalDatatypeGrammar.g:6023:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ;
public final String entryRuleOpUnary() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpUnary = null;
try {
// InternalDatatypeGrammar.g:6023:47: (iv_ruleOpUnary= ruleOpUnary EOF )
// InternalDatatypeGrammar.g:6024: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"
// InternalDatatypeGrammar.g:6030: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 {
// InternalDatatypeGrammar.g:6036:2: ( (kw= '!' | kw= '-' | kw= '+' ) )
// InternalDatatypeGrammar.g:6037:2: (kw= '!' | kw= '-' | kw= '+' )
{
// InternalDatatypeGrammar.g:6037:2: (kw= '!' | kw= '-' | kw= '+' )
int alt90=3;
switch ( input.LA(1) ) {
case 103:
{
alt90=1;
}
break;
case 69:
{
alt90=2;
}
break;
case 68:
{
alt90=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 90, 0, input);
throw nvae;
}
switch (alt90) {
case 1 :
// InternalDatatypeGrammar.g:6038:3: kw= '!'
{
kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:6044:3: kw= '-'
{
kw=(Token)match(input,69,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:6050:3: kw= '+'
{
kw=(Token)match(input,68,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"
// InternalDatatypeGrammar.g:6059:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ;
public final EObject entryRuleXCastedExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXCastedExpression = null;
try {
// InternalDatatypeGrammar.g:6059:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF )
// InternalDatatypeGrammar.g:6060: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"
// InternalDatatypeGrammar.g:6066: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 {
// InternalDatatypeGrammar.g:6072:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) )
// InternalDatatypeGrammar.g:6073:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* )
{
// InternalDatatypeGrammar.g:6073:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* )
// InternalDatatypeGrammar.g:6074: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_62);
this_XPostfixOperation_0=ruleXPostfixOperation();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XPostfixOperation_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:6082:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )*
loop91:
do {
int alt91=2;
int LA91_0 = input.LA(1);
if ( (LA91_0==104) ) {
int LA91_2 = input.LA(2);
if ( (synpred20_InternalDatatypeGrammar()) ) {
alt91=1;
}
}
switch (alt91) {
case 1 :
// InternalDatatypeGrammar.g:6083:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) )
{
// InternalDatatypeGrammar.g:6083:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) )
// InternalDatatypeGrammar.g:6084:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' )
{
// InternalDatatypeGrammar.g:6090:5: ( () otherlv_2= 'as' )
// InternalDatatypeGrammar.g:6091:6: () otherlv_2= 'as'
{
// InternalDatatypeGrammar.g:6091:6: ()
// InternalDatatypeGrammar.g:6092:7:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(),
current);
}
}
otherlv_2=(Token)match(input,104,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1());
}
}
}
// InternalDatatypeGrammar.g:6104:4: ( (lv_type_3_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:6105:5: (lv_type_3_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:6105:5: (lv_type_3_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:6106:6: lv_type_3_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_62);
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 loop91;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXCastedExpression"
// $ANTLR start "entryRuleXPostfixOperation"
// InternalDatatypeGrammar.g:6128:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ;
public final EObject entryRuleXPostfixOperation() throws RecognitionException {
EObject current = null;
EObject iv_ruleXPostfixOperation = null;
try {
// InternalDatatypeGrammar.g:6128:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF )
// InternalDatatypeGrammar.g:6129: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"
// InternalDatatypeGrammar.g:6135: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 {
// InternalDatatypeGrammar.g:6141:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) )
// InternalDatatypeGrammar.g:6142:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? )
{
// InternalDatatypeGrammar.g:6142:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? )
// InternalDatatypeGrammar.g:6143:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )?
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0());
}
pushFollow(FOLLOW_63);
this_XMemberFeatureCall_0=ruleXMemberFeatureCall();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XMemberFeatureCall_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:6151:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )?
int alt92=2;
int LA92_0 = input.LA(1);
if ( (LA92_0==105) ) {
int LA92_1 = input.LA(2);
if ( (synpred21_InternalDatatypeGrammar()) ) {
alt92=1;
}
}
else if ( (LA92_0==106) ) {
int LA92_2 = input.LA(2);
if ( (synpred21_InternalDatatypeGrammar()) ) {
alt92=1;
}
}
switch (alt92) {
case 1 :
// InternalDatatypeGrammar.g:6152:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) )
{
// InternalDatatypeGrammar.g:6162:4: ( () ( ( ruleOpPostfix ) ) )
// InternalDatatypeGrammar.g:6163:5: () ( ( ruleOpPostfix ) )
{
// InternalDatatypeGrammar.g:6163:5: ()
// InternalDatatypeGrammar.g:6164:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:6170:5: ( ( ruleOpPostfix ) )
// InternalDatatypeGrammar.g:6171:6: ( ruleOpPostfix )
{
// InternalDatatypeGrammar.g:6171:6: ( ruleOpPostfix )
// InternalDatatypeGrammar.g:6172: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"
// InternalDatatypeGrammar.g:6192:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ;
public final String entryRuleOpPostfix() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleOpPostfix = null;
try {
// InternalDatatypeGrammar.g:6192:49: (iv_ruleOpPostfix= ruleOpPostfix EOF )
// InternalDatatypeGrammar.g:6193: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"
// InternalDatatypeGrammar.g:6199:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ;
public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:6205:2: ( (kw= '++' | kw= '--' ) )
// InternalDatatypeGrammar.g:6206:2: (kw= '++' | kw= '--' )
{
// InternalDatatypeGrammar.g:6206:2: (kw= '++' | kw= '--' )
int alt93=2;
int LA93_0 = input.LA(1);
if ( (LA93_0==105) ) {
alt93=1;
}
else if ( (LA93_0==106) ) {
alt93=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 93, 0, input);
throw nvae;
}
switch (alt93) {
case 1 :
// InternalDatatypeGrammar.g:6207:3: kw= '++'
{
kw=(Token)match(input,105,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:6213:3: kw= '--'
{
kw=(Token)match(input,106,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"
// InternalDatatypeGrammar.g:6222:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ;
public final EObject entryRuleXMemberFeatureCall() throws RecognitionException {
EObject current = null;
EObject iv_ruleXMemberFeatureCall = null;
try {
// InternalDatatypeGrammar.g:6222:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF )
// InternalDatatypeGrammar.g:6223: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"
// InternalDatatypeGrammar.g:6229: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 {
// InternalDatatypeGrammar.g:6235: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 ) )? ) )* ) )
// InternalDatatypeGrammar.g:6236: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 ) )? ) )* )
{
// InternalDatatypeGrammar.g:6236: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 ) )? ) )* )
// InternalDatatypeGrammar.g:6237: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_64);
this_XPrimaryExpression_0=ruleXPrimaryExpression();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_XPrimaryExpression_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:6245: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 ) )? ) )*
loop102:
do {
int alt102=3;
switch ( input.LA(1) ) {
case 70:
{
int LA102_2 = input.LA(2);
if ( (synpred22_InternalDatatypeGrammar()) ) {
alt102=1;
}
else if ( (synpred23_InternalDatatypeGrammar()) ) {
alt102=2;
}
}
break;
case 107:
{
int LA102_3 = input.LA(2);
if ( (synpred22_InternalDatatypeGrammar()) ) {
alt102=1;
}
else if ( (synpred23_InternalDatatypeGrammar()) ) {
alt102=2;
}
}
break;
case 108:
{
int LA102_4 = input.LA(2);
if ( (synpred23_InternalDatatypeGrammar()) ) {
alt102=2;
}
}
break;
}
switch (alt102) {
case 1 :
// InternalDatatypeGrammar.g:6246:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )
{
// InternalDatatypeGrammar.g:6246:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) )
// InternalDatatypeGrammar.g:6247:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) )
{
// InternalDatatypeGrammar.g:6247:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )
// InternalDatatypeGrammar.g:6248:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )
{
// InternalDatatypeGrammar.g:6268:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )
// InternalDatatypeGrammar.g:6269:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign
{
// InternalDatatypeGrammar.g:6269:7: ()
// InternalDatatypeGrammar.g:6270:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:6276:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) )
int alt94=2;
int LA94_0 = input.LA(1);
if ( (LA94_0==70) ) {
alt94=1;
}
else if ( (LA94_0==107) ) {
alt94=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 94, 0, input);
throw nvae;
}
switch (alt94) {
case 1 :
// InternalDatatypeGrammar.g:6277:8: otherlv_2= '.'
{
otherlv_2=(Token)match(input,70,FOLLOW_65); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:6282:8: ( (lv_explicitStatic_3_0= '::' ) )
{
// InternalDatatypeGrammar.g:6282:8: ( (lv_explicitStatic_3_0= '::' ) )
// InternalDatatypeGrammar.g:6283:9: (lv_explicitStatic_3_0= '::' )
{
// InternalDatatypeGrammar.g:6283:9: (lv_explicitStatic_3_0= '::' )
// InternalDatatypeGrammar.g:6284:10: lv_explicitStatic_3_0= '::'
{
lv_explicitStatic_3_0=(Token)match(input,107,FOLLOW_65); 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;
}
// InternalDatatypeGrammar.g:6297:7: ( ( ruleFeatureCallID ) )
// InternalDatatypeGrammar.g:6298:8: ( ruleFeatureCallID )
{
// InternalDatatypeGrammar.g:6298:8: ( ruleFeatureCallID )
// InternalDatatypeGrammar.g:6299: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_21);
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_43);
ruleOpSingleAssign();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:6322:5: ( (lv_value_6_0= ruleXAssignment ) )
// InternalDatatypeGrammar.g:6323:6: (lv_value_6_0= ruleXAssignment )
{
// InternalDatatypeGrammar.g:6323:6: (lv_value_6_0= ruleXAssignment )
// InternalDatatypeGrammar.g:6324:7: lv_value_6_0= ruleXAssignment
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0());
}
pushFollow(FOLLOW_64);
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 :
// InternalDatatypeGrammar.g:6343: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 ) )? )
{
// InternalDatatypeGrammar.g:6343: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 ) )? )
// InternalDatatypeGrammar.g:6344: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 ) )?
{
// InternalDatatypeGrammar.g:6344:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) )
// InternalDatatypeGrammar.g:6345:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )
{
// InternalDatatypeGrammar.g:6365:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) )
// InternalDatatypeGrammar.g:6366:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )
{
// InternalDatatypeGrammar.g:6366:7: ()
// InternalDatatypeGrammar.g:6367:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:6373:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) )
int alt95=3;
switch ( input.LA(1) ) {
case 70:
{
alt95=1;
}
break;
case 108:
{
alt95=2;
}
break;
case 107:
{
alt95=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 95, 0, input);
throw nvae;
}
switch (alt95) {
case 1 :
// InternalDatatypeGrammar.g:6374:8: otherlv_8= '.'
{
otherlv_8=(Token)match(input,70,FOLLOW_66); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:6379:8: ( (lv_nullSafe_9_0= '?.' ) )
{
// InternalDatatypeGrammar.g:6379:8: ( (lv_nullSafe_9_0= '?.' ) )
// InternalDatatypeGrammar.g:6380:9: (lv_nullSafe_9_0= '?.' )
{
// InternalDatatypeGrammar.g:6380:9: (lv_nullSafe_9_0= '?.' )
// InternalDatatypeGrammar.g:6381:10: lv_nullSafe_9_0= '?.'
{
lv_nullSafe_9_0=(Token)match(input,108,FOLLOW_66); 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 :
// InternalDatatypeGrammar.g:6394:8: ( (lv_explicitStatic_10_0= '::' ) )
{
// InternalDatatypeGrammar.g:6394:8: ( (lv_explicitStatic_10_0= '::' ) )
// InternalDatatypeGrammar.g:6395:9: (lv_explicitStatic_10_0= '::' )
{
// InternalDatatypeGrammar.g:6395:9: (lv_explicitStatic_10_0= '::' )
// InternalDatatypeGrammar.g:6396:10: lv_explicitStatic_10_0= '::'
{
lv_explicitStatic_10_0=(Token)match(input,107,FOLLOW_66); 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;
}
}
}
// InternalDatatypeGrammar.g:6411:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )?
int alt97=2;
int LA97_0 = input.LA(1);
if ( (LA97_0==84) ) {
alt97=1;
}
switch (alt97) {
case 1 :
// InternalDatatypeGrammar.g:6412:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>'
{
otherlv_11=(Token)match(input,84,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0());
}
// InternalDatatypeGrammar.g:6416:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:6417:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:6417:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:6418:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0());
}
pushFollow(FOLLOW_68);
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();
}
}
}
// InternalDatatypeGrammar.g:6435:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )*
loop96:
do {
int alt96=2;
int LA96_0 = input.LA(1);
if ( (LA96_0==22) ) {
alt96=1;
}
switch (alt96) {
case 1 :
// InternalDatatypeGrammar.g:6436:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )
{
otherlv_13=(Token)match(input,22,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0());
}
// InternalDatatypeGrammar.g:6440:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:6441:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:6441:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:6442:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0());
}
pushFollow(FOLLOW_68);
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 loop96;
}
} while (true);
otherlv_15=(Token)match(input,85,FOLLOW_66); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3());
}
}
break;
}
// InternalDatatypeGrammar.g:6465:5: ( ( ruleIdOrSuper ) )
// InternalDatatypeGrammar.g:6466:6: ( ruleIdOrSuper )
{
// InternalDatatypeGrammar.g:6466:6: ( ruleIdOrSuper )
// InternalDatatypeGrammar.g:6467: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_69);
ruleIdOrSuper();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:6481: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 alt100=2;
alt100 = dfa100.predict(input);
switch (alt100) {
case 1 :
// InternalDatatypeGrammar.g:6482: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= ')'
{
// InternalDatatypeGrammar.g:6482:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) )
// InternalDatatypeGrammar.g:6483:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' )
{
// InternalDatatypeGrammar.g:6487:7: (lv_explicitOperationCall_17_0= '(' )
// InternalDatatypeGrammar.g:6488:8: lv_explicitOperationCall_17_0= '('
{
lv_explicitOperationCall_17_0=(Token)match(input,21,FOLLOW_70); 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, "(");
}
}
}
// InternalDatatypeGrammar.g:6500:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?
int alt99=3;
alt99 = dfa99.predict(input);
switch (alt99) {
case 1 :
// InternalDatatypeGrammar.g:6501:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )
{
// InternalDatatypeGrammar.g:6501:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) )
// InternalDatatypeGrammar.g:6502:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure )
{
// InternalDatatypeGrammar.g:6527:8: (lv_memberCallArguments_18_0= ruleXShortClosure )
// InternalDatatypeGrammar.g:6528:9: lv_memberCallArguments_18_0= ruleXShortClosure
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0());
}
pushFollow(FOLLOW_25);
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 :
// InternalDatatypeGrammar.g:6546:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )
{
// InternalDatatypeGrammar.g:6546:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* )
// InternalDatatypeGrammar.g:6547:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:6547:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:6548:9: (lv_memberCallArguments_19_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:6548:9: (lv_memberCallArguments_19_0= ruleXExpression )
// InternalDatatypeGrammar.g:6549:10: lv_memberCallArguments_19_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:6566:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )*
loop98:
do {
int alt98=2;
int LA98_0 = input.LA(1);
if ( (LA98_0==22) ) {
alt98=1;
}
switch (alt98) {
case 1 :
// InternalDatatypeGrammar.g:6567:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) )
{
otherlv_20=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0());
}
// InternalDatatypeGrammar.g:6571:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:6572:10: (lv_memberCallArguments_21_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:6572:10: (lv_memberCallArguments_21_0= ruleXExpression )
// InternalDatatypeGrammar.g:6573:11: lv_memberCallArguments_21_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop98;
}
} while (true);
}
}
break;
}
otherlv_22=(Token)match(input,23,FOLLOW_71); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2());
}
}
break;
}
// InternalDatatypeGrammar.g:6598:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?
int alt101=2;
alt101 = dfa101.predict(input);
switch (alt101) {
case 1 :
// InternalDatatypeGrammar.g:6599:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure )
{
// InternalDatatypeGrammar.g:6605:6: (lv_memberCallArguments_23_0= ruleXClosure )
// InternalDatatypeGrammar.g:6606:7: lv_memberCallArguments_23_0= ruleXClosure
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0());
}
pushFollow(FOLLOW_64);
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 loop102;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXMemberFeatureCall"
// $ANTLR start "entryRuleXPrimaryExpression"
// InternalDatatypeGrammar.g:6629:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ;
public final EObject entryRuleXPrimaryExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXPrimaryExpression = null;
try {
// InternalDatatypeGrammar.g:6629:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF )
// InternalDatatypeGrammar.g:6630: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"
// InternalDatatypeGrammar.g:6636: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 {
// InternalDatatypeGrammar.g:6642: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 ) )
// InternalDatatypeGrammar.g:6643: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 )
{
// InternalDatatypeGrammar.g:6643: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 alt103=15;
alt103 = dfa103.predict(input);
switch (alt103) {
case 1 :
// InternalDatatypeGrammar.g:6644: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 :
// InternalDatatypeGrammar.g:6653: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 :
// InternalDatatypeGrammar.g:6662: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 :
// InternalDatatypeGrammar.g:6671:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression )
{
// InternalDatatypeGrammar.g:6671:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression )
// InternalDatatypeGrammar.g:6672: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 :
// InternalDatatypeGrammar.g:6689: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 :
// InternalDatatypeGrammar.g:6698: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 :
// InternalDatatypeGrammar.g:6707: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 :
// InternalDatatypeGrammar.g:6716:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression )
{
// InternalDatatypeGrammar.g:6716:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression )
// InternalDatatypeGrammar.g:6717: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 :
// InternalDatatypeGrammar.g:6740: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 :
// InternalDatatypeGrammar.g:6749: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 :
// InternalDatatypeGrammar.g:6758: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 :
// InternalDatatypeGrammar.g:6767: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 :
// InternalDatatypeGrammar.g:6776: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 :
// InternalDatatypeGrammar.g:6785: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 :
// InternalDatatypeGrammar.g:6794: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"
// InternalDatatypeGrammar.g:6806:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ;
public final EObject entryRuleXLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXLiteral = null;
try {
// InternalDatatypeGrammar.g:6806:49: (iv_ruleXLiteral= ruleXLiteral EOF )
// InternalDatatypeGrammar.g:6807: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"
// InternalDatatypeGrammar.g:6813: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 {
// InternalDatatypeGrammar.g:6819: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 ) )
// InternalDatatypeGrammar.g:6820: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 )
{
// InternalDatatypeGrammar.g:6820: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 alt104=7;
int LA104_0 = input.LA(1);
if ( (LA104_0==78) ) {
alt104=1;
}
else if ( (LA104_0==27) && (synpred29_InternalDatatypeGrammar())) {
alt104=2;
}
else if ( ((LA104_0>=123 && LA104_0<=124)) ) {
alt104=3;
}
else if ( (LA104_0==RULE_INT||(LA104_0>=RULE_HEX && LA104_0<=RULE_DECIMAL)) ) {
alt104=4;
}
else if ( (LA104_0==125) ) {
alt104=5;
}
else if ( (LA104_0==RULE_STRING) ) {
alt104=6;
}
else if ( (LA104_0==126) ) {
alt104=7;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 104, 0, input);
throw nvae;
}
switch (alt104) {
case 1 :
// InternalDatatypeGrammar.g:6821: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 :
// InternalDatatypeGrammar.g:6830:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure )
{
// InternalDatatypeGrammar.g:6830:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure )
// InternalDatatypeGrammar.g:6831: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 :
// InternalDatatypeGrammar.g:6847: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 :
// InternalDatatypeGrammar.g:6856: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 :
// InternalDatatypeGrammar.g:6865: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 :
// InternalDatatypeGrammar.g:6874: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 :
// InternalDatatypeGrammar.g:6883: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"
// InternalDatatypeGrammar.g:6895:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ;
public final EObject entryRuleXCollectionLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXCollectionLiteral = null;
try {
// InternalDatatypeGrammar.g:6895:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF )
// InternalDatatypeGrammar.g:6896: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"
// InternalDatatypeGrammar.g:6902: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 {
// InternalDatatypeGrammar.g:6908:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) )
// InternalDatatypeGrammar.g:6909:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral )
{
// InternalDatatypeGrammar.g:6909:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral )
int alt105=2;
int LA105_0 = input.LA(1);
if ( (LA105_0==78) ) {
int LA105_1 = input.LA(2);
if ( (LA105_1==14) ) {
alt105=1;
}
else if ( (LA105_1==27) ) {
alt105=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 105, 1, input);
throw nvae;
}
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 105, 0, input);
throw nvae;
}
switch (alt105) {
case 1 :
// InternalDatatypeGrammar.g:6910: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 :
// InternalDatatypeGrammar.g:6919: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"
// InternalDatatypeGrammar.g:6931:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ;
public final EObject entryRuleXSetLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXSetLiteral = null;
try {
// InternalDatatypeGrammar.g:6931:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF )
// InternalDatatypeGrammar.g:6932: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"
// InternalDatatypeGrammar.g:6938: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 {
// InternalDatatypeGrammar.g:6944:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) )
// InternalDatatypeGrammar.g:6945:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' )
{
// InternalDatatypeGrammar.g:6945:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' )
// InternalDatatypeGrammar.g:6946:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}'
{
// InternalDatatypeGrammar.g:6946:3: ()
// InternalDatatypeGrammar.g:6947:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(),
current);
}
}
otherlv_1=(Token)match(input,78,FOLLOW_29); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1());
}
otherlv_2=(Token)match(input,14,FOLLOW_72); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2());
}
// InternalDatatypeGrammar.g:6961:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )?
int alt107=2;
int LA107_0 = input.LA(1);
if ( ((LA107_0>=RULE_INT && LA107_0<=RULE_DECIMAL)||LA107_0==14||LA107_0==21||LA107_0==27||(LA107_0>=68 && LA107_0<=69)||(LA107_0>=71 && LA107_0<=73)||LA107_0==78||LA107_0==84||LA107_0==103||LA107_0==110||LA107_0==112||(LA107_0>=116 && LA107_0<=118)||(LA107_0>=120 && LA107_0<=129)||LA107_0==131) ) {
alt107=1;
}
switch (alt107) {
case 1 :
// InternalDatatypeGrammar.g:6962:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:6962:4: ( (lv_elements_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:6963:5: (lv_elements_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:6963:5: (lv_elements_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:6964:6: lv_elements_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0());
}
pushFollow(FOLLOW_30);
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();
}
}
}
// InternalDatatypeGrammar.g:6981:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )*
loop106:
do {
int alt106=2;
int LA106_0 = input.LA(1);
if ( (LA106_0==22) ) {
alt106=1;
}
switch (alt106) {
case 1 :
// InternalDatatypeGrammar.g:6982:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0());
}
// InternalDatatypeGrammar.g:6986:5: ( (lv_elements_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:6987:6: (lv_elements_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:6987:6: (lv_elements_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:6988:7: lv_elements_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0());
}
pushFollow(FOLLOW_30);
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 loop106;
}
} 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"
// InternalDatatypeGrammar.g:7015:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ;
public final EObject entryRuleXListLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXListLiteral = null;
try {
// InternalDatatypeGrammar.g:7015:53: (iv_ruleXListLiteral= ruleXListLiteral EOF )
// InternalDatatypeGrammar.g:7016: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"
// InternalDatatypeGrammar.g:7022: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 {
// InternalDatatypeGrammar.g:7028:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) )
// InternalDatatypeGrammar.g:7029:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' )
{
// InternalDatatypeGrammar.g:7029:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' )
// InternalDatatypeGrammar.g:7030:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']'
{
// InternalDatatypeGrammar.g:7030:3: ()
// InternalDatatypeGrammar.g:7031:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(),
current);
}
}
otherlv_1=(Token)match(input,78,FOLLOW_44); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1());
}
otherlv_2=(Token)match(input,27,FOLLOW_45); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2());
}
// InternalDatatypeGrammar.g:7045:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )?
int alt109=2;
int LA109_0 = input.LA(1);
if ( ((LA109_0>=RULE_INT && LA109_0<=RULE_DECIMAL)||LA109_0==14||LA109_0==21||LA109_0==27||(LA109_0>=68 && LA109_0<=69)||(LA109_0>=71 && LA109_0<=73)||LA109_0==78||LA109_0==84||LA109_0==103||LA109_0==110||LA109_0==112||(LA109_0>=116 && LA109_0<=118)||(LA109_0>=120 && LA109_0<=129)||LA109_0==131) ) {
alt109=1;
}
switch (alt109) {
case 1 :
// InternalDatatypeGrammar.g:7046:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:7046:4: ( (lv_elements_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7047:5: (lv_elements_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7047:5: (lv_elements_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:7048:6: lv_elements_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0());
}
pushFollow(FOLLOW_46);
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();
}
}
}
// InternalDatatypeGrammar.g:7065:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )*
loop108:
do {
int alt108=2;
int LA108_0 = input.LA(1);
if ( (LA108_0==22) ) {
alt108=1;
}
switch (alt108) {
case 1 :
// InternalDatatypeGrammar.g:7066:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0());
}
// InternalDatatypeGrammar.g:7070:5: ( (lv_elements_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7071:6: (lv_elements_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7071:6: (lv_elements_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7072:7: lv_elements_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0());
}
pushFollow(FOLLOW_46);
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 loop108;
}
} while (true);
}
break;
}
otherlv_6=(Token)match(input,32,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"
// InternalDatatypeGrammar.g:7099:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ;
public final EObject entryRuleXClosure() throws RecognitionException {
EObject current = null;
EObject iv_ruleXClosure = null;
try {
// InternalDatatypeGrammar.g:7099:49: (iv_ruleXClosure= ruleXClosure EOF )
// InternalDatatypeGrammar.g:7100: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"
// InternalDatatypeGrammar.g:7106: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 {
// InternalDatatypeGrammar.g:7112: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= ']' ) )
// InternalDatatypeGrammar.g:7113: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= ']' )
{
// InternalDatatypeGrammar.g:7113: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= ']' )
// InternalDatatypeGrammar.g:7114: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= ']'
{
// InternalDatatypeGrammar.g:7114:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) )
// InternalDatatypeGrammar.g:7115:4: ( ( () '[' ) )=> ( () otherlv_1= '[' )
{
// InternalDatatypeGrammar.g:7121:4: ( () otherlv_1= '[' )
// InternalDatatypeGrammar.g:7122:5: () otherlv_1= '['
{
// InternalDatatypeGrammar.g:7122:5: ()
// InternalDatatypeGrammar.g:7123:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(),
current);
}
}
otherlv_1=(Token)match(input,27,FOLLOW_73); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1());
}
}
}
// InternalDatatypeGrammar.g:7135:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )?
int alt112=2;
alt112 = dfa112.predict(input);
switch (alt112) {
case 1 :
// InternalDatatypeGrammar.g:7136:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) )
{
// InternalDatatypeGrammar.g:7159:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) )
// InternalDatatypeGrammar.g:7160:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) )
{
// InternalDatatypeGrammar.g:7160:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )?
int alt111=2;
int LA111_0 = input.LA(1);
if ( (LA111_0==RULE_ID||LA111_0==21||LA111_0==97) ) {
alt111=1;
}
switch (alt111) {
case 1 :
// InternalDatatypeGrammar.g:7161:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:7161:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7162:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7162:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7163:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0());
}
pushFollow(FOLLOW_74);
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();
}
}
}
// InternalDatatypeGrammar.g:7180:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )*
loop110:
do {
int alt110=2;
int LA110_0 = input.LA(1);
if ( (LA110_0==22) ) {
alt110=1;
}
switch (alt110) {
case 1 :
// InternalDatatypeGrammar.g:7181:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) )
{
otherlv_3=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0());
}
// InternalDatatypeGrammar.g:7185:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7186:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7186:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7187:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0());
}
pushFollow(FOLLOW_74);
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 loop110;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:7206:5: ( (lv_explicitSyntax_5_0= '|' ) )
// InternalDatatypeGrammar.g:7207:6: (lv_explicitSyntax_5_0= '|' )
{
// InternalDatatypeGrammar.g:7207:6: (lv_explicitSyntax_5_0= '|' )
// InternalDatatypeGrammar.g:7208:7: lv_explicitSyntax_5_0= '|'
{
lv_explicitSyntax_5_0=(Token)match(input,109,FOLLOW_75); 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;
}
// InternalDatatypeGrammar.g:7222:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) )
// InternalDatatypeGrammar.g:7223:4: (lv_expression_6_0= ruleXExpressionInClosure )
{
// InternalDatatypeGrammar.g:7223:4: (lv_expression_6_0= ruleXExpressionInClosure )
// InternalDatatypeGrammar.g:7224:5: lv_expression_6_0= ruleXExpressionInClosure
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0());
}
pushFollow(FOLLOW_76);
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,32,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"
// InternalDatatypeGrammar.g:7249:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ;
public final EObject entryRuleXExpressionInClosure() throws RecognitionException {
EObject current = null;
EObject iv_ruleXExpressionInClosure = null;
try {
// InternalDatatypeGrammar.g:7249:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF )
// InternalDatatypeGrammar.g:7250: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"
// InternalDatatypeGrammar.g:7256: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 {
// InternalDatatypeGrammar.g:7262:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) )
// InternalDatatypeGrammar.g:7263:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* )
{
// InternalDatatypeGrammar.g:7263:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* )
// InternalDatatypeGrammar.g:7264:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )*
{
// InternalDatatypeGrammar.g:7264:3: ()
// InternalDatatypeGrammar.g:7265:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:7271:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )*
loop114:
do {
int alt114=2;
int LA114_0 = input.LA(1);
if ( ((LA114_0>=RULE_INT && LA114_0<=RULE_DECIMAL)||LA114_0==14||LA114_0==21||LA114_0==27||(LA114_0>=67 && LA114_0<=69)||(LA114_0>=71 && LA114_0<=73)||LA114_0==78||LA114_0==84||LA114_0==103||LA114_0==110||LA114_0==112||(LA114_0>=116 && LA114_0<=129)||LA114_0==131) ) {
alt114=1;
}
switch (alt114) {
case 1 :
// InternalDatatypeGrammar.g:7272:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )?
{
// InternalDatatypeGrammar.g:7272:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) )
// InternalDatatypeGrammar.g:7273:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration )
{
// InternalDatatypeGrammar.g:7273:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration )
// InternalDatatypeGrammar.g:7274:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0());
}
pushFollow(FOLLOW_77);
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();
}
}
}
// InternalDatatypeGrammar.g:7291:4: (otherlv_2= ';' )?
int alt113=2;
int LA113_0 = input.LA(1);
if ( (LA113_0==76) ) {
alt113=1;
}
switch (alt113) {
case 1 :
// InternalDatatypeGrammar.g:7292:5: otherlv_2= ';'
{
otherlv_2=(Token)match(input,76,FOLLOW_78); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1());
}
}
break;
}
}
break;
default :
break loop114;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXExpressionInClosure"
// $ANTLR start "entryRuleXShortClosure"
// InternalDatatypeGrammar.g:7302:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ;
public final EObject entryRuleXShortClosure() throws RecognitionException {
EObject current = null;
EObject iv_ruleXShortClosure = null;
try {
// InternalDatatypeGrammar.g:7302:54: (iv_ruleXShortClosure= ruleXShortClosure EOF )
// InternalDatatypeGrammar.g:7303: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"
// InternalDatatypeGrammar.g:7309: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 {
// InternalDatatypeGrammar.g:7315:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) )
// InternalDatatypeGrammar.g:7316:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:7316:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:7317:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:7317:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) )
// InternalDatatypeGrammar.g:7318:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) )
{
// InternalDatatypeGrammar.g:7343:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) )
// InternalDatatypeGrammar.g:7344:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) )
{
// InternalDatatypeGrammar.g:7344:5: ()
// InternalDatatypeGrammar.g:7345:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(),
current);
}
}
// InternalDatatypeGrammar.g:7351:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )?
int alt116=2;
int LA116_0 = input.LA(1);
if ( (LA116_0==RULE_ID||LA116_0==21||LA116_0==97) ) {
alt116=1;
}
switch (alt116) {
case 1 :
// InternalDatatypeGrammar.g:7352:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:7352:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7353:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7353:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7354:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0());
}
pushFollow(FOLLOW_74);
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();
}
}
}
// InternalDatatypeGrammar.g:7371:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )*
loop115:
do {
int alt115=2;
int LA115_0 = input.LA(1);
if ( (LA115_0==22) ) {
alt115=1;
}
switch (alt115) {
case 1 :
// InternalDatatypeGrammar.g:7372:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) )
{
otherlv_2=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0());
}
// InternalDatatypeGrammar.g:7376:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7377:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7377:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7378:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0());
}
pushFollow(FOLLOW_74);
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 loop115;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:7397:5: ( (lv_explicitSyntax_4_0= '|' ) )
// InternalDatatypeGrammar.g:7398:6: (lv_explicitSyntax_4_0= '|' )
{
// InternalDatatypeGrammar.g:7398:6: (lv_explicitSyntax_4_0= '|' )
// InternalDatatypeGrammar.g:7399:7: lv_explicitSyntax_4_0= '|'
{
lv_explicitSyntax_4_0=(Token)match(input,109,FOLLOW_43); 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, "|");
}
}
}
}
}
// InternalDatatypeGrammar.g:7413:3: ( (lv_expression_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7414:4: (lv_expression_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7414:4: (lv_expression_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7415: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"
// InternalDatatypeGrammar.g:7436:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ;
public final EObject entryRuleXParenthesizedExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXParenthesizedExpression = null;
try {
// InternalDatatypeGrammar.g:7436:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF )
// InternalDatatypeGrammar.g:7437: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"
// InternalDatatypeGrammar.g:7443: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 {
// InternalDatatypeGrammar.g:7449:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) )
// InternalDatatypeGrammar.g:7450:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' )
{
// InternalDatatypeGrammar.g:7450:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' )
// InternalDatatypeGrammar.g:7451:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')'
{
otherlv_0=(Token)match(input,21,FOLLOW_43); 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_25);
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,23,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"
// InternalDatatypeGrammar.g:7471:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ;
public final EObject entryRuleXIfExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXIfExpression = null;
try {
// InternalDatatypeGrammar.g:7471:54: (iv_ruleXIfExpression= ruleXIfExpression EOF )
// InternalDatatypeGrammar.g:7472: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"
// InternalDatatypeGrammar.g:7478: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 {
// InternalDatatypeGrammar.g:7484: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 ) ) )? ) )
// InternalDatatypeGrammar.g:7485: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 ) ) )? )
{
// InternalDatatypeGrammar.g:7485: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 ) ) )? )
// InternalDatatypeGrammar.g:7486: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 ) ) )?
{
// InternalDatatypeGrammar.g:7486:3: ()
// InternalDatatypeGrammar.g:7487:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,110,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:7501:3: ( (lv_if_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7502:4: (lv_if_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7502:4: (lv_if_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:7503:5: lv_if_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4());
}
// InternalDatatypeGrammar.g:7524:3: ( (lv_then_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7525:4: (lv_then_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7525:4: (lv_then_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7526:5: lv_then_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0());
}
pushFollow(FOLLOW_79);
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();
}
}
}
// InternalDatatypeGrammar.g:7543:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )?
int alt117=2;
int LA117_0 = input.LA(1);
if ( (LA117_0==111) ) {
int LA117_1 = input.LA(2);
if ( (synpred33_InternalDatatypeGrammar()) ) {
alt117=1;
}
}
switch (alt117) {
case 1 :
// InternalDatatypeGrammar.g:7544:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:7544:4: ( ( 'else' )=>otherlv_6= 'else' )
// InternalDatatypeGrammar.g:7545:5: ( 'else' )=>otherlv_6= 'else'
{
otherlv_6=(Token)match(input,111,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0());
}
}
// InternalDatatypeGrammar.g:7551:4: ( (lv_else_7_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7552:5: (lv_else_7_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7552:5: (lv_else_7_0= ruleXExpression )
// InternalDatatypeGrammar.g:7553: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"
// InternalDatatypeGrammar.g:7575:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ;
public final EObject entryRuleXSwitchExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXSwitchExpression = null;
try {
// InternalDatatypeGrammar.g:7575:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF )
// InternalDatatypeGrammar.g:7576: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"
// InternalDatatypeGrammar.g:7582: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 {
// InternalDatatypeGrammar.g:7588: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= '}' ) )
// InternalDatatypeGrammar.g:7589: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= '}' )
{
// InternalDatatypeGrammar.g:7589: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= '}' )
// InternalDatatypeGrammar.g:7590: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= '}'
{
// InternalDatatypeGrammar.g:7590:3: ()
// InternalDatatypeGrammar.g:7591:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,112,FOLLOW_80); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1());
}
// InternalDatatypeGrammar.g:7601: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 alt119=2;
alt119 = dfa119.predict(input);
switch (alt119) {
case 1 :
// InternalDatatypeGrammar.g:7602:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' )
{
// InternalDatatypeGrammar.g:7602:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' )
// InternalDatatypeGrammar.g:7603:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')'
{
// InternalDatatypeGrammar.g:7603:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) )
// InternalDatatypeGrammar.g:7604:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' )
{
// InternalDatatypeGrammar.g:7614:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' )
// InternalDatatypeGrammar.g:7615:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':'
{
otherlv_2=(Token)match(input,21,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0());
}
// InternalDatatypeGrammar.g:7619:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7620:8: (lv_declaredParam_3_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7620:8: (lv_declaredParam_3_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7621:9: lv_declaredParam_3_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0());
}
pushFollow(FOLLOW_81);
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,113,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2());
}
}
}
// InternalDatatypeGrammar.g:7644:5: ( (lv_switch_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7645:6: (lv_switch_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7645:6: (lv_switch_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7646:7: lv_switch_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_29); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:7669:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:7669:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:7670:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:7670:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )?
int alt118=2;
alt118 = dfa118.predict(input);
switch (alt118) {
case 1 :
// InternalDatatypeGrammar.g:7671:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' )
{
// InternalDatatypeGrammar.g:7680:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' )
// InternalDatatypeGrammar.g:7681:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':'
{
// InternalDatatypeGrammar.g:7681:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7682:8: (lv_declaredParam_7_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7682:8: (lv_declaredParam_7_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7683:9: lv_declaredParam_7_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0());
}
pushFollow(FOLLOW_81);
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,113,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1());
}
}
}
break;
}
// InternalDatatypeGrammar.g:7706:5: ( (lv_switch_9_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7707:6: (lv_switch_9_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7707:6: (lv_switch_9_0= ruleXExpression )
// InternalDatatypeGrammar.g:7708:7: lv_switch_9_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0());
}
pushFollow(FOLLOW_29);
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_82); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3());
}
// InternalDatatypeGrammar.g:7731:3: ( (lv_cases_11_0= ruleXCasePart ) )*
loop120:
do {
int alt120=2;
int LA120_0 = input.LA(1);
if ( (LA120_0==RULE_ID||(LA120_0>=21 && LA120_0<=22)||LA120_0==97||LA120_0==113||LA120_0==115) ) {
alt120=1;
}
switch (alt120) {
case 1 :
// InternalDatatypeGrammar.g:7732:4: (lv_cases_11_0= ruleXCasePart )
{
// InternalDatatypeGrammar.g:7732:4: (lv_cases_11_0= ruleXCasePart )
// InternalDatatypeGrammar.g:7733:5: lv_cases_11_0= ruleXCasePart
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0());
}
pushFollow(FOLLOW_82);
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 loop120;
}
} while (true);
// InternalDatatypeGrammar.g:7750:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )?
int alt121=2;
int LA121_0 = input.LA(1);
if ( (LA121_0==114) ) {
alt121=1;
}
switch (alt121) {
case 1 :
// InternalDatatypeGrammar.g:7751:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) )
{
otherlv_12=(Token)match(input,114,FOLLOW_81); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0());
}
otherlv_13=(Token)match(input,113,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1());
}
// InternalDatatypeGrammar.g:7759:4: ( (lv_default_14_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7760:5: (lv_default_14_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7760:5: (lv_default_14_0= ruleXExpression )
// InternalDatatypeGrammar.g:7761:6: lv_default_14_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0());
}
pushFollow(FOLLOW_83);
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"
// InternalDatatypeGrammar.g:7787:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ;
public final EObject entryRuleXCasePart() throws RecognitionException {
EObject current = null;
EObject iv_ruleXCasePart = null;
try {
// InternalDatatypeGrammar.g:7787:50: (iv_ruleXCasePart= ruleXCasePart EOF )
// InternalDatatypeGrammar.g:7788: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"
// InternalDatatypeGrammar.g:7794: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 {
// InternalDatatypeGrammar.g:7800: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= ',' ) ) ) ) )
// InternalDatatypeGrammar.g:7801: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= ',' ) ) ) )
{
// InternalDatatypeGrammar.g:7801: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= ',' ) ) ) )
// InternalDatatypeGrammar.g:7802: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= ',' ) ) )
{
// InternalDatatypeGrammar.g:7802:3: ()
// InternalDatatypeGrammar.g:7803:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXCasePartAccess().getXCasePartAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:7809:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )?
int alt122=2;
int LA122_0 = input.LA(1);
if ( (LA122_0==RULE_ID||LA122_0==21||LA122_0==97) ) {
alt122=1;
}
switch (alt122) {
case 1 :
// InternalDatatypeGrammar.g:7810:4: (lv_typeGuard_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:7810:4: (lv_typeGuard_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:7811:5: lv_typeGuard_1_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0());
}
pushFollow(FOLLOW_84);
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;
}
// InternalDatatypeGrammar.g:7828:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )?
int alt123=2;
int LA123_0 = input.LA(1);
if ( (LA123_0==115) ) {
alt123=1;
}
switch (alt123) {
case 1 :
// InternalDatatypeGrammar.g:7829:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) )
{
otherlv_2=(Token)match(input,115,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0());
}
// InternalDatatypeGrammar.g:7833:4: ( (lv_case_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7834:5: (lv_case_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7834:5: (lv_case_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:7835:6: lv_case_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0());
}
pushFollow(FOLLOW_85);
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;
}
// InternalDatatypeGrammar.g:7853:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) )
int alt124=2;
int LA124_0 = input.LA(1);
if ( (LA124_0==113) ) {
alt124=1;
}
else if ( (LA124_0==22) ) {
alt124=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 124, 0, input);
throw nvae;
}
switch (alt124) {
case 1 :
// InternalDatatypeGrammar.g:7854:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:7854:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:7855:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) )
{
otherlv_4=(Token)match(input,113,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0());
}
// InternalDatatypeGrammar.g:7859:5: ( (lv_then_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7860:6: (lv_then_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7860:6: (lv_then_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7861: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 :
// InternalDatatypeGrammar.g:7880:4: ( (lv_fallThrough_6_0= ',' ) )
{
// InternalDatatypeGrammar.g:7880:4: ( (lv_fallThrough_6_0= ',' ) )
// InternalDatatypeGrammar.g:7881:5: (lv_fallThrough_6_0= ',' )
{
// InternalDatatypeGrammar.g:7881:5: (lv_fallThrough_6_0= ',' )
// InternalDatatypeGrammar.g:7882:6: lv_fallThrough_6_0= ','
{
lv_fallThrough_6_0=(Token)match(input,22,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"
// InternalDatatypeGrammar.g:7899:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ;
public final EObject entryRuleXForLoopExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXForLoopExpression = null;
try {
// InternalDatatypeGrammar.g:7899:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF )
// InternalDatatypeGrammar.g:7900: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"
// InternalDatatypeGrammar.g:7906: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 {
// InternalDatatypeGrammar.g:7912: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 ) ) ) )
// InternalDatatypeGrammar.g:7913: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 ) ) )
{
// InternalDatatypeGrammar.g:7913: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 ) ) )
// InternalDatatypeGrammar.g:7914: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 ) )
{
// InternalDatatypeGrammar.g:7914:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) )
// InternalDatatypeGrammar.g:7915:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' )
{
// InternalDatatypeGrammar.g:7928:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' )
// InternalDatatypeGrammar.g:7929:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':'
{
// InternalDatatypeGrammar.g:7929:5: ()
// InternalDatatypeGrammar.g:7930:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(),
current);
}
}
otherlv_1=(Token)match(input,116,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2());
}
// InternalDatatypeGrammar.g:7944:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7945:6: (lv_declaredParam_3_0= ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7945:6: (lv_declaredParam_3_0= ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7946:7: lv_declaredParam_3_0= ruleJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0());
}
pushFollow(FOLLOW_81);
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,113,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4());
}
}
}
// InternalDatatypeGrammar.g:7969:3: ( (lv_forExpression_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7970:4: (lv_forExpression_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7970:4: (lv_forExpression_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:7971:5: lv_forExpression_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:7992:3: ( (lv_eachExpression_7_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:7993:4: (lv_eachExpression_7_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:7993:4: (lv_eachExpression_7_0= ruleXExpression )
// InternalDatatypeGrammar.g:7994: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"
// InternalDatatypeGrammar.g:8015:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ;
public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXBasicForLoopExpression = null;
try {
// InternalDatatypeGrammar.g:8015:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF )
// InternalDatatypeGrammar.g:8016: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"
// InternalDatatypeGrammar.g:8022: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 {
// InternalDatatypeGrammar.g:8028: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 ) ) ) )
// InternalDatatypeGrammar.g:8029: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 ) ) )
{
// InternalDatatypeGrammar.g:8029: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 ) ) )
// InternalDatatypeGrammar.g:8030: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 ) )
{
// InternalDatatypeGrammar.g:8030:3: ()
// InternalDatatypeGrammar.g:8031:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,116,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_86); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:8045:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )?
int alt126=2;
int LA126_0 = input.LA(1);
if ( ((LA126_0>=RULE_INT && LA126_0<=RULE_DECIMAL)||LA126_0==14||LA126_0==21||LA126_0==27||(LA126_0>=67 && LA126_0<=69)||(LA126_0>=71 && LA126_0<=73)||LA126_0==78||LA126_0==84||LA126_0==103||LA126_0==110||LA126_0==112||(LA126_0>=116 && LA126_0<=129)||LA126_0==131) ) {
alt126=1;
}
switch (alt126) {
case 1 :
// InternalDatatypeGrammar.g:8046:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )*
{
// InternalDatatypeGrammar.g:8046:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) )
// InternalDatatypeGrammar.g:8047:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration )
{
// InternalDatatypeGrammar.g:8047:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration )
// InternalDatatypeGrammar.g:8048:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0());
}
pushFollow(FOLLOW_87);
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();
}
}
}
// InternalDatatypeGrammar.g:8065:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )*
loop125:
do {
int alt125=2;
int LA125_0 = input.LA(1);
if ( (LA125_0==22) ) {
alt125=1;
}
switch (alt125) {
case 1 :
// InternalDatatypeGrammar.g:8066:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) )
{
otherlv_4=(Token)match(input,22,FOLLOW_88); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0());
}
// InternalDatatypeGrammar.g:8070:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) )
// InternalDatatypeGrammar.g:8071:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration )
{
// InternalDatatypeGrammar.g:8071:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration )
// InternalDatatypeGrammar.g:8072:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0());
}
pushFollow(FOLLOW_87);
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 loop125;
}
} while (true);
}
break;
}
otherlv_6=(Token)match(input,76,FOLLOW_89); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4());
}
// InternalDatatypeGrammar.g:8095:3: ( (lv_expression_7_0= ruleXExpression ) )?
int alt127=2;
int LA127_0 = input.LA(1);
if ( ((LA127_0>=RULE_INT && LA127_0<=RULE_DECIMAL)||LA127_0==14||LA127_0==21||LA127_0==27||(LA127_0>=68 && LA127_0<=69)||(LA127_0>=71 && LA127_0<=73)||LA127_0==78||LA127_0==84||LA127_0==103||LA127_0==110||LA127_0==112||(LA127_0>=116 && LA127_0<=118)||(LA127_0>=120 && LA127_0<=129)||LA127_0==131) ) {
alt127=1;
}
switch (alt127) {
case 1 :
// InternalDatatypeGrammar.g:8096:4: (lv_expression_7_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8096:4: (lv_expression_7_0= ruleXExpression )
// InternalDatatypeGrammar.g:8097:5: lv_expression_7_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0());
}
pushFollow(FOLLOW_90);
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,76,FOLLOW_42); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6());
}
// InternalDatatypeGrammar.g:8118:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )?
int alt129=2;
int LA129_0 = input.LA(1);
if ( ((LA129_0>=RULE_INT && LA129_0<=RULE_DECIMAL)||LA129_0==14||LA129_0==21||LA129_0==27||(LA129_0>=68 && LA129_0<=69)||(LA129_0>=71 && LA129_0<=73)||LA129_0==78||LA129_0==84||LA129_0==103||LA129_0==110||LA129_0==112||(LA129_0>=116 && LA129_0<=118)||(LA129_0>=120 && LA129_0<=129)||LA129_0==131) ) {
alt129=1;
}
switch (alt129) {
case 1 :
// InternalDatatypeGrammar.g:8119:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:8119:4: ( (lv_updateExpressions_9_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8120:5: (lv_updateExpressions_9_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8120:5: (lv_updateExpressions_9_0= ruleXExpression )
// InternalDatatypeGrammar.g:8121:6: lv_updateExpressions_9_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:8138:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )*
loop128:
do {
int alt128=2;
int LA128_0 = input.LA(1);
if ( (LA128_0==22) ) {
alt128=1;
}
switch (alt128) {
case 1 :
// InternalDatatypeGrammar.g:8139:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) )
{
otherlv_10=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0());
}
// InternalDatatypeGrammar.g:8143:5: ( (lv_updateExpressions_11_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8144:6: (lv_updateExpressions_11_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8144:6: (lv_updateExpressions_11_0= ruleXExpression )
// InternalDatatypeGrammar.g:8145:7: lv_updateExpressions_11_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop128;
}
} while (true);
}
break;
}
otherlv_12=(Token)match(input,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8());
}
// InternalDatatypeGrammar.g:8168:3: ( (lv_eachExpression_13_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8169:4: (lv_eachExpression_13_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8169:4: (lv_eachExpression_13_0= ruleXExpression )
// InternalDatatypeGrammar.g:8170: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"
// InternalDatatypeGrammar.g:8191:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ;
public final EObject entryRuleXWhileExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXWhileExpression = null;
try {
// InternalDatatypeGrammar.g:8191:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF )
// InternalDatatypeGrammar.g:8192: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"
// InternalDatatypeGrammar.g:8198: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 {
// InternalDatatypeGrammar.g:8204:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) )
// InternalDatatypeGrammar.g:8205:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:8205:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:8206:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:8206:3: ()
// InternalDatatypeGrammar.g:8207:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,117,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:8221:3: ( (lv_predicate_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8222:4: (lv_predicate_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8222:4: (lv_predicate_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:8223:5: lv_predicate_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4());
}
// InternalDatatypeGrammar.g:8244:3: ( (lv_body_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8245:4: (lv_body_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8245:4: (lv_body_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:8246: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"
// InternalDatatypeGrammar.g:8267:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ;
public final EObject entryRuleXDoWhileExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXDoWhileExpression = null;
try {
// InternalDatatypeGrammar.g:8267:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF )
// InternalDatatypeGrammar.g:8268: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"
// InternalDatatypeGrammar.g:8274: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 {
// InternalDatatypeGrammar.g:8280:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) )
// InternalDatatypeGrammar.g:8281:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' )
{
// InternalDatatypeGrammar.g:8281:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' )
// InternalDatatypeGrammar.g:8282:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')'
{
// InternalDatatypeGrammar.g:8282:3: ()
// InternalDatatypeGrammar.g:8283:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,118,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1());
}
// InternalDatatypeGrammar.g:8293:3: ( (lv_body_2_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8294:4: (lv_body_2_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8294:4: (lv_body_2_0= ruleXExpression )
// InternalDatatypeGrammar.g:8295:5: lv_body_2_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0());
}
pushFollow(FOLLOW_91);
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,117,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3());
}
otherlv_4=(Token)match(input,21,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4());
}
// InternalDatatypeGrammar.g:8320:3: ( (lv_predicate_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8321:4: (lv_predicate_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8321:4: (lv_predicate_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:8322:5: lv_predicate_5_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0());
}
pushFollow(FOLLOW_25);
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,23,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"
// InternalDatatypeGrammar.g:8347:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ;
public final EObject entryRuleXBlockExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXBlockExpression = null;
try {
// InternalDatatypeGrammar.g:8347:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF )
// InternalDatatypeGrammar.g:8348: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"
// InternalDatatypeGrammar.g:8354: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 {
// InternalDatatypeGrammar.g:8360:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) )
// InternalDatatypeGrammar.g:8361:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' )
{
// InternalDatatypeGrammar.g:8361:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' )
// InternalDatatypeGrammar.g:8362:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}'
{
// InternalDatatypeGrammar.g:8362:3: ()
// InternalDatatypeGrammar.g:8363:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,14,FOLLOW_92); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1());
}
// InternalDatatypeGrammar.g:8373:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )*
loop131:
do {
int alt131=2;
int LA131_0 = input.LA(1);
if ( ((LA131_0>=RULE_INT && LA131_0<=RULE_DECIMAL)||LA131_0==14||LA131_0==21||LA131_0==27||(LA131_0>=67 && LA131_0<=69)||(LA131_0>=71 && LA131_0<=73)||LA131_0==78||LA131_0==84||LA131_0==103||LA131_0==110||LA131_0==112||(LA131_0>=116 && LA131_0<=129)||LA131_0==131) ) {
alt131=1;
}
switch (alt131) {
case 1 :
// InternalDatatypeGrammar.g:8374:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )?
{
// InternalDatatypeGrammar.g:8374:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) )
// InternalDatatypeGrammar.g:8375:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration )
{
// InternalDatatypeGrammar.g:8375:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration )
// InternalDatatypeGrammar.g:8376:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0());
}
pushFollow(FOLLOW_93);
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();
}
}
}
// InternalDatatypeGrammar.g:8393:4: (otherlv_3= ';' )?
int alt130=2;
int LA130_0 = input.LA(1);
if ( (LA130_0==76) ) {
alt130=1;
}
switch (alt130) {
case 1 :
// InternalDatatypeGrammar.g:8394:5: otherlv_3= ';'
{
otherlv_3=(Token)match(input,76,FOLLOW_92); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1());
}
}
break;
}
}
break;
default :
break loop131;
}
} 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"
// InternalDatatypeGrammar.g:8408:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ;
public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException {
EObject current = null;
EObject iv_ruleXExpressionOrVarDeclaration = null;
try {
// InternalDatatypeGrammar.g:8408:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF )
// InternalDatatypeGrammar.g:8409: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"
// InternalDatatypeGrammar.g:8415: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 {
// InternalDatatypeGrammar.g:8421:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) )
// InternalDatatypeGrammar.g:8422:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression )
{
// InternalDatatypeGrammar.g:8422:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression )
int alt132=2;
int LA132_0 = input.LA(1);
if ( (LA132_0==67||LA132_0==119) ) {
alt132=1;
}
else if ( ((LA132_0>=RULE_INT && LA132_0<=RULE_DECIMAL)||LA132_0==14||LA132_0==21||LA132_0==27||(LA132_0>=68 && LA132_0<=69)||(LA132_0>=71 && LA132_0<=73)||LA132_0==78||LA132_0==84||LA132_0==103||LA132_0==110||LA132_0==112||(LA132_0>=116 && LA132_0<=118)||(LA132_0>=120 && LA132_0<=129)||LA132_0==131) ) {
alt132=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 132, 0, input);
throw nvae;
}
switch (alt132) {
case 1 :
// InternalDatatypeGrammar.g:8423: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 :
// InternalDatatypeGrammar.g:8432: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"
// InternalDatatypeGrammar.g:8444:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ;
public final EObject entryRuleXVariableDeclaration() throws RecognitionException {
EObject current = null;
EObject iv_ruleXVariableDeclaration = null;
try {
// InternalDatatypeGrammar.g:8444:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF )
// InternalDatatypeGrammar.g:8445: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"
// InternalDatatypeGrammar.g:8451: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 {
// InternalDatatypeGrammar.g:8457: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 ) ) )? ) )
// InternalDatatypeGrammar.g:8458: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 ) ) )? )
{
// InternalDatatypeGrammar.g:8458: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 ) ) )? )
// InternalDatatypeGrammar.g:8459: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 ) ) )?
{
// InternalDatatypeGrammar.g:8459:3: ()
// InternalDatatypeGrammar.g:8460:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:8466:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' )
int alt133=2;
int LA133_0 = input.LA(1);
if ( (LA133_0==67) ) {
alt133=1;
}
else if ( (LA133_0==119) ) {
alt133=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 133, 0, input);
throw nvae;
}
switch (alt133) {
case 1 :
// InternalDatatypeGrammar.g:8467:4: ( (lv_writeable_1_0= 'var' ) )
{
// InternalDatatypeGrammar.g:8467:4: ( (lv_writeable_1_0= 'var' ) )
// InternalDatatypeGrammar.g:8468:5: (lv_writeable_1_0= 'var' )
{
// InternalDatatypeGrammar.g:8468:5: (lv_writeable_1_0= 'var' )
// InternalDatatypeGrammar.g:8469:6: lv_writeable_1_0= 'var'
{
lv_writeable_1_0=(Token)match(input,67,FOLLOW_10); 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 :
// InternalDatatypeGrammar.g:8482:4: otherlv_2= 'val'
{
otherlv_2=(Token)match(input,119,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1());
}
}
break;
}
// InternalDatatypeGrammar.g:8487:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) )
int alt134=2;
int LA134_0 = input.LA(1);
if ( (LA134_0==RULE_ID) ) {
int LA134_1 = input.LA(2);
if ( (synpred37_InternalDatatypeGrammar()) ) {
alt134=1;
}
else if ( (true) ) {
alt134=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 134, 1, input);
throw nvae;
}
}
else if ( (LA134_0==21) && (synpred37_InternalDatatypeGrammar())) {
alt134=1;
}
else if ( (LA134_0==97) && (synpred37_InternalDatatypeGrammar())) {
alt134=1;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 134, 0, input);
throw nvae;
}
switch (alt134) {
case 1 :
// InternalDatatypeGrammar.g:8488:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) )
{
// InternalDatatypeGrammar.g:8488:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) )
// InternalDatatypeGrammar.g:8489:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) )
{
// InternalDatatypeGrammar.g:8502:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) )
// InternalDatatypeGrammar.g:8503:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) )
{
// InternalDatatypeGrammar.g:8503:6: ( (lv_type_3_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:8504:7: (lv_type_3_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:8504:7: (lv_type_3_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:8505: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();
}
}
}
// InternalDatatypeGrammar.g:8522:6: ( (lv_name_4_0= ruleValidID ) )
// InternalDatatypeGrammar.g:8523:7: (lv_name_4_0= ruleValidID )
{
// InternalDatatypeGrammar.g:8523:7: (lv_name_4_0= ruleValidID )
// InternalDatatypeGrammar.g:8524:8: lv_name_4_0= ruleValidID
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0());
}
pushFollow(FOLLOW_94);
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 :
// InternalDatatypeGrammar.g:8544:4: ( (lv_name_5_0= ruleValidID ) )
{
// InternalDatatypeGrammar.g:8544:4: ( (lv_name_5_0= ruleValidID ) )
// InternalDatatypeGrammar.g:8545:5: (lv_name_5_0= ruleValidID )
{
// InternalDatatypeGrammar.g:8545:5: (lv_name_5_0= ruleValidID )
// InternalDatatypeGrammar.g:8546:6: lv_name_5_0= ruleValidID
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0());
}
pushFollow(FOLLOW_94);
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;
}
// InternalDatatypeGrammar.g:8564:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )?
int alt135=2;
int LA135_0 = input.LA(1);
if ( (LA135_0==29) ) {
alt135=1;
}
switch (alt135) {
case 1 :
// InternalDatatypeGrammar.g:8565:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) )
{
otherlv_6=(Token)match(input,29,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0());
}
// InternalDatatypeGrammar.g:8569:4: ( (lv_right_7_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8570:5: (lv_right_7_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8570:5: (lv_right_7_0= ruleXExpression )
// InternalDatatypeGrammar.g:8571: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"
// InternalDatatypeGrammar.g:8593:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ;
public final EObject entryRuleJvmFormalParameter() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmFormalParameter = null;
try {
// InternalDatatypeGrammar.g:8593:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF )
// InternalDatatypeGrammar.g:8594: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"
// InternalDatatypeGrammar.g:8600: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 {
// InternalDatatypeGrammar.g:8606:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) )
// InternalDatatypeGrammar.g:8607:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )
{
// InternalDatatypeGrammar.g:8607:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) )
// InternalDatatypeGrammar.g:8608:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) )
{
// InternalDatatypeGrammar.g:8608:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )?
int alt136=2;
int LA136_0 = input.LA(1);
if ( (LA136_0==RULE_ID) ) {
int LA136_1 = input.LA(2);
if ( (LA136_1==RULE_ID||LA136_1==27||LA136_1==70||LA136_1==84) ) {
alt136=1;
}
}
else if ( (LA136_0==21||LA136_0==97) ) {
alt136=1;
}
switch (alt136) {
case 1 :
// InternalDatatypeGrammar.g:8609:4: (lv_parameterType_0_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:8609:4: (lv_parameterType_0_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:8610: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;
}
// InternalDatatypeGrammar.g:8627:3: ( (lv_name_1_0= ruleValidID ) )
// InternalDatatypeGrammar.g:8628:4: (lv_name_1_0= ruleValidID )
{
// InternalDatatypeGrammar.g:8628:4: (lv_name_1_0= ruleValidID )
// InternalDatatypeGrammar.g:8629: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"
// InternalDatatypeGrammar.g:8650:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ;
public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException {
EObject current = null;
EObject iv_ruleFullJvmFormalParameter = null;
try {
// InternalDatatypeGrammar.g:8650:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF )
// InternalDatatypeGrammar.g:8651: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"
// InternalDatatypeGrammar.g:8657: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 {
// InternalDatatypeGrammar.g:8663:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) )
// InternalDatatypeGrammar.g:8664:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) )
{
// InternalDatatypeGrammar.g:8664:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) )
// InternalDatatypeGrammar.g:8665:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) )
{
// InternalDatatypeGrammar.g:8665:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:8666:4: (lv_parameterType_0_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:8666:4: (lv_parameterType_0_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:8667: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();
}
}
}
// InternalDatatypeGrammar.g:8684:3: ( (lv_name_1_0= ruleValidID ) )
// InternalDatatypeGrammar.g:8685:4: (lv_name_1_0= ruleValidID )
{
// InternalDatatypeGrammar.g:8685:4: (lv_name_1_0= ruleValidID )
// InternalDatatypeGrammar.g:8686: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"
// InternalDatatypeGrammar.g:8707:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ;
public final EObject entryRuleXFeatureCall() throws RecognitionException {
EObject current = null;
EObject iv_ruleXFeatureCall = null;
try {
// InternalDatatypeGrammar.g:8707:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF )
// InternalDatatypeGrammar.g:8708: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"
// InternalDatatypeGrammar.g:8714: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 {
// InternalDatatypeGrammar.g:8720: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 ) )? ) )
// InternalDatatypeGrammar.g:8721: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 ) )? )
{
// InternalDatatypeGrammar.g:8721: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 ) )? )
// InternalDatatypeGrammar.g:8722: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 ) )?
{
// InternalDatatypeGrammar.g:8722:3: ()
// InternalDatatypeGrammar.g:8723:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:8729:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )?
int alt138=2;
int LA138_0 = input.LA(1);
if ( (LA138_0==84) ) {
alt138=1;
}
switch (alt138) {
case 1 :
// InternalDatatypeGrammar.g:8730:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>'
{
otherlv_1=(Token)match(input,84,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0());
}
// InternalDatatypeGrammar.g:8734:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:8735:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:8735:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:8736:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_68);
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();
}
}
}
// InternalDatatypeGrammar.g:8753:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )*
loop137:
do {
int alt137=2;
int LA137_0 = input.LA(1);
if ( (LA137_0==22) ) {
alt137=1;
}
switch (alt137) {
case 1 :
// InternalDatatypeGrammar.g:8754:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) )
{
otherlv_3=(Token)match(input,22,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0());
}
// InternalDatatypeGrammar.g:8758:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:8759:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:8759:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:8760:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0());
}
pushFollow(FOLLOW_68);
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 loop137;
}
} while (true);
otherlv_5=(Token)match(input,85,FOLLOW_66); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3());
}
}
break;
}
// InternalDatatypeGrammar.g:8783:3: ( ( ruleIdOrSuper ) )
// InternalDatatypeGrammar.g:8784:4: ( ruleIdOrSuper )
{
// InternalDatatypeGrammar.g:8784:4: ( ruleIdOrSuper )
// InternalDatatypeGrammar.g:8785: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_95);
ruleIdOrSuper();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:8799: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 alt141=2;
alt141 = dfa141.predict(input);
switch (alt141) {
case 1 :
// InternalDatatypeGrammar.g:8800: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= ')'
{
// InternalDatatypeGrammar.g:8800:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) )
// InternalDatatypeGrammar.g:8801:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' )
{
// InternalDatatypeGrammar.g:8805:5: (lv_explicitOperationCall_7_0= '(' )
// InternalDatatypeGrammar.g:8806:6: lv_explicitOperationCall_7_0= '('
{
lv_explicitOperationCall_7_0=(Token)match(input,21,FOLLOW_70); 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, "(");
}
}
}
// InternalDatatypeGrammar.g:8818:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )?
int alt140=3;
alt140 = dfa140.predict(input);
switch (alt140) {
case 1 :
// InternalDatatypeGrammar.g:8819:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) )
{
// InternalDatatypeGrammar.g:8819:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) )
// InternalDatatypeGrammar.g:8820:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure )
{
// InternalDatatypeGrammar.g:8845:6: (lv_featureCallArguments_8_0= ruleXShortClosure )
// InternalDatatypeGrammar.g:8846:7: lv_featureCallArguments_8_0= ruleXShortClosure
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0());
}
pushFollow(FOLLOW_25);
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 :
// InternalDatatypeGrammar.g:8864:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* )
{
// InternalDatatypeGrammar.g:8864:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* )
// InternalDatatypeGrammar.g:8865:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:8865:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8866:7: (lv_featureCallArguments_9_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8866:7: (lv_featureCallArguments_9_0= ruleXExpression )
// InternalDatatypeGrammar.g:8867:8: lv_featureCallArguments_9_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:8884:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )*
loop139:
do {
int alt139=2;
int LA139_0 = input.LA(1);
if ( (LA139_0==22) ) {
alt139=1;
}
switch (alt139) {
case 1 :
// InternalDatatypeGrammar.g:8885:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) )
{
otherlv_10=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0());
}
// InternalDatatypeGrammar.g:8889:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:8890:8: (lv_featureCallArguments_11_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:8890:8: (lv_featureCallArguments_11_0= ruleXExpression )
// InternalDatatypeGrammar.g:8891:9: lv_featureCallArguments_11_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop139;
}
} while (true);
}
}
break;
}
otherlv_12=(Token)match(input,23,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2());
}
}
break;
}
// InternalDatatypeGrammar.g:8916:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )?
int alt142=2;
alt142 = dfa142.predict(input);
switch (alt142) {
case 1 :
// InternalDatatypeGrammar.g:8917:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure )
{
// InternalDatatypeGrammar.g:8923:4: (lv_featureCallArguments_13_0= ruleXClosure )
// InternalDatatypeGrammar.g:8924: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"
// InternalDatatypeGrammar.g:8945:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ;
public final String entryRuleFeatureCallID() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleFeatureCallID = null;
try {
// InternalDatatypeGrammar.g:8945:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF )
// InternalDatatypeGrammar.g:8946: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"
// InternalDatatypeGrammar.g:8952: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 {
// InternalDatatypeGrammar.g:8958:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) )
// InternalDatatypeGrammar.g:8959:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' )
{
// InternalDatatypeGrammar.g:8959:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' )
int alt143=5;
switch ( input.LA(1) ) {
case RULE_ID:
{
alt143=1;
}
break;
case 120:
{
alt143=2;
}
break;
case 72:
{
alt143=3;
}
break;
case 71:
{
alt143=4;
}
break;
case 73:
{
alt143=5;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 143, 0, input);
throw nvae;
}
switch (alt143) {
case 1 :
// InternalDatatypeGrammar.g:8960: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 :
// InternalDatatypeGrammar.g:8971:3: kw= 'extends'
{
kw=(Token)match(input,120,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1());
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:8977:3: kw= 'static'
{
kw=(Token)match(input,72,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2());
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:8983:3: kw= 'import'
{
kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3());
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:8989:3: kw= 'extension'
{
kw=(Token)match(input,73,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"
// InternalDatatypeGrammar.g:8998:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ;
public final String entryRuleIdOrSuper() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleIdOrSuper = null;
try {
// InternalDatatypeGrammar.g:8998:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF )
// InternalDatatypeGrammar.g:8999: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"
// InternalDatatypeGrammar.g:9005: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 {
// InternalDatatypeGrammar.g:9011:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) )
// InternalDatatypeGrammar.g:9012:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' )
{
// InternalDatatypeGrammar.g:9012:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' )
int alt144=2;
int LA144_0 = input.LA(1);
if ( (LA144_0==RULE_ID||(LA144_0>=71 && LA144_0<=73)||LA144_0==120) ) {
alt144=1;
}
else if ( (LA144_0==121) ) {
alt144=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 144, 0, input);
throw nvae;
}
switch (alt144) {
case 1 :
// InternalDatatypeGrammar.g:9013: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 :
// InternalDatatypeGrammar.g:9024:3: kw= 'super'
{
kw=(Token)match(input,121,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"
// InternalDatatypeGrammar.g:9033:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ;
public final EObject entryRuleXConstructorCall() throws RecognitionException {
EObject current = null;
EObject iv_ruleXConstructorCall = null;
try {
// InternalDatatypeGrammar.g:9033:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF )
// InternalDatatypeGrammar.g:9034: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"
// InternalDatatypeGrammar.g:9040: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 {
// InternalDatatypeGrammar.g:9046: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 ) )? ) )
// InternalDatatypeGrammar.g:9047: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 ) )? )
{
// InternalDatatypeGrammar.g:9047: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 ) )? )
// InternalDatatypeGrammar.g:9048: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 ) )?
{
// InternalDatatypeGrammar.g:9048:3: ()
// InternalDatatypeGrammar.g:9049:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(),
current);
}
}
otherlv_1=(Token)match(input,122,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1());
}
// InternalDatatypeGrammar.g:9059:3: ( ( ruleQualifiedName ) )
// InternalDatatypeGrammar.g:9060:4: ( ruleQualifiedName )
{
// InternalDatatypeGrammar.g:9060:4: ( ruleQualifiedName )
// InternalDatatypeGrammar.g:9061: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_96);
ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:9075:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )?
int alt146=2;
alt146 = dfa146.predict(input);
switch (alt146) {
case 1 :
// InternalDatatypeGrammar.g:9076:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>'
{
// InternalDatatypeGrammar.g:9076:4: ( ( '<' )=>otherlv_3= '<' )
// InternalDatatypeGrammar.g:9077:5: ( '<' )=>otherlv_3= '<'
{
otherlv_3=(Token)match(input,84,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0());
}
}
// InternalDatatypeGrammar.g:9083:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:9084:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:9084:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:9085:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0());
}
pushFollow(FOLLOW_68);
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();
}
}
}
// InternalDatatypeGrammar.g:9102:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )*
loop145:
do {
int alt145=2;
int LA145_0 = input.LA(1);
if ( (LA145_0==22) ) {
alt145=1;
}
switch (alt145) {
case 1 :
// InternalDatatypeGrammar.g:9103:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) )
{
otherlv_5=(Token)match(input,22,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0());
}
// InternalDatatypeGrammar.g:9107:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:9108:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:9108:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:9109:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0());
}
pushFollow(FOLLOW_68);
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 loop145;
}
} while (true);
otherlv_7=(Token)match(input,85,FOLLOW_95); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3());
}
}
break;
}
// InternalDatatypeGrammar.g:9132: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 alt149=2;
alt149 = dfa149.predict(input);
switch (alt149) {
case 1 :
// InternalDatatypeGrammar.g:9133: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= ')'
{
// InternalDatatypeGrammar.g:9133:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) )
// InternalDatatypeGrammar.g:9134:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' )
{
// InternalDatatypeGrammar.g:9138:5: (lv_explicitConstructorCall_8_0= '(' )
// InternalDatatypeGrammar.g:9139:6: lv_explicitConstructorCall_8_0= '('
{
lv_explicitConstructorCall_8_0=(Token)match(input,21,FOLLOW_70); 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, "(");
}
}
}
// InternalDatatypeGrammar.g:9151:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )?
int alt148=3;
alt148 = dfa148.predict(input);
switch (alt148) {
case 1 :
// InternalDatatypeGrammar.g:9152:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) )
{
// InternalDatatypeGrammar.g:9152:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) )
// InternalDatatypeGrammar.g:9153:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure )
{
// InternalDatatypeGrammar.g:9178:6: (lv_arguments_9_0= ruleXShortClosure )
// InternalDatatypeGrammar.g:9179:7: lv_arguments_9_0= ruleXShortClosure
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0());
}
pushFollow(FOLLOW_25);
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 :
// InternalDatatypeGrammar.g:9197:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* )
{
// InternalDatatypeGrammar.g:9197:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* )
// InternalDatatypeGrammar.g:9198:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )*
{
// InternalDatatypeGrammar.g:9198:6: ( (lv_arguments_10_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9199:7: (lv_arguments_10_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9199:7: (lv_arguments_10_0= ruleXExpression )
// InternalDatatypeGrammar.g:9200:8: lv_arguments_10_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:9217:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )*
loop147:
do {
int alt147=2;
int LA147_0 = input.LA(1);
if ( (LA147_0==22) ) {
alt147=1;
}
switch (alt147) {
case 1 :
// InternalDatatypeGrammar.g:9218:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) )
{
otherlv_11=(Token)match(input,22,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0());
}
// InternalDatatypeGrammar.g:9222:7: ( (lv_arguments_12_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9223:8: (lv_arguments_12_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9223:8: (lv_arguments_12_0= ruleXExpression )
// InternalDatatypeGrammar.g:9224:9: lv_arguments_12_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop147;
}
} while (true);
}
}
break;
}
otherlv_13=(Token)match(input,23,FOLLOW_19); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2());
}
}
break;
}
// InternalDatatypeGrammar.g:9249:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )?
int alt150=2;
alt150 = dfa150.predict(input);
switch (alt150) {
case 1 :
// InternalDatatypeGrammar.g:9250:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure )
{
// InternalDatatypeGrammar.g:9256:4: (lv_arguments_14_0= ruleXClosure )
// InternalDatatypeGrammar.g:9257: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"
// InternalDatatypeGrammar.g:9278:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ;
public final EObject entryRuleXBooleanLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXBooleanLiteral = null;
try {
// InternalDatatypeGrammar.g:9278:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF )
// InternalDatatypeGrammar.g:9279: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"
// InternalDatatypeGrammar.g:9285: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 {
// InternalDatatypeGrammar.g:9291:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) )
// InternalDatatypeGrammar.g:9292:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
{
// InternalDatatypeGrammar.g:9292:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) )
// InternalDatatypeGrammar.g:9293:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
{
// InternalDatatypeGrammar.g:9293:3: ()
// InternalDatatypeGrammar.g:9294:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:9300:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) )
int alt151=2;
int LA151_0 = input.LA(1);
if ( (LA151_0==123) ) {
alt151=1;
}
else if ( (LA151_0==124) ) {
alt151=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 151, 0, input);
throw nvae;
}
switch (alt151) {
case 1 :
// InternalDatatypeGrammar.g:9301:4: otherlv_1= 'false'
{
otherlv_1=(Token)match(input,123,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0());
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:9306:4: ( (lv_isTrue_2_0= 'true' ) )
{
// InternalDatatypeGrammar.g:9306:4: ( (lv_isTrue_2_0= 'true' ) )
// InternalDatatypeGrammar.g:9307:5: (lv_isTrue_2_0= 'true' )
{
// InternalDatatypeGrammar.g:9307:5: (lv_isTrue_2_0= 'true' )
// InternalDatatypeGrammar.g:9308:6: lv_isTrue_2_0= 'true'
{
lv_isTrue_2_0=(Token)match(input,124,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"
// InternalDatatypeGrammar.g:9325:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ;
public final EObject entryRuleXNullLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXNullLiteral = null;
try {
// InternalDatatypeGrammar.g:9325:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF )
// InternalDatatypeGrammar.g:9326: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"
// InternalDatatypeGrammar.g:9332:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ;
public final EObject ruleXNullLiteral() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
enterRule();
try {
// InternalDatatypeGrammar.g:9338:2: ( ( () otherlv_1= 'null' ) )
// InternalDatatypeGrammar.g:9339:2: ( () otherlv_1= 'null' )
{
// InternalDatatypeGrammar.g:9339:2: ( () otherlv_1= 'null' )
// InternalDatatypeGrammar.g:9340:3: () otherlv_1= 'null'
{
// InternalDatatypeGrammar.g:9340:3: ()
// InternalDatatypeGrammar.g:9341:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(),
current);
}
}
otherlv_1=(Token)match(input,125,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"
// InternalDatatypeGrammar.g:9355:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ;
public final EObject entryRuleXNumberLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXNumberLiteral = null;
try {
// InternalDatatypeGrammar.g:9355:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF )
// InternalDatatypeGrammar.g:9356: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"
// InternalDatatypeGrammar.g:9362: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 {
// InternalDatatypeGrammar.g:9368:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) )
// InternalDatatypeGrammar.g:9369:2: ( () ( (lv_value_1_0= ruleNumber ) ) )
{
// InternalDatatypeGrammar.g:9369:2: ( () ( (lv_value_1_0= ruleNumber ) ) )
// InternalDatatypeGrammar.g:9370:3: () ( (lv_value_1_0= ruleNumber ) )
{
// InternalDatatypeGrammar.g:9370:3: ()
// InternalDatatypeGrammar.g:9371:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:9377:3: ( (lv_value_1_0= ruleNumber ) )
// InternalDatatypeGrammar.g:9378:4: (lv_value_1_0= ruleNumber )
{
// InternalDatatypeGrammar.g:9378:4: (lv_value_1_0= ruleNumber )
// InternalDatatypeGrammar.g:9379: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"
// InternalDatatypeGrammar.g:9400:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ;
public final EObject entryRuleXStringLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXStringLiteral = null;
try {
// InternalDatatypeGrammar.g:9400:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF )
// InternalDatatypeGrammar.g:9401: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"
// InternalDatatypeGrammar.g:9407: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 {
// InternalDatatypeGrammar.g:9413:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) )
// InternalDatatypeGrammar.g:9414:2: ( () ( (lv_value_1_0= RULE_STRING ) ) )
{
// InternalDatatypeGrammar.g:9414:2: ( () ( (lv_value_1_0= RULE_STRING ) ) )
// InternalDatatypeGrammar.g:9415:3: () ( (lv_value_1_0= RULE_STRING ) )
{
// InternalDatatypeGrammar.g:9415:3: ()
// InternalDatatypeGrammar.g:9416:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(),
current);
}
}
// InternalDatatypeGrammar.g:9422:3: ( (lv_value_1_0= RULE_STRING ) )
// InternalDatatypeGrammar.g:9423:4: (lv_value_1_0= RULE_STRING )
{
// InternalDatatypeGrammar.g:9423:4: (lv_value_1_0= RULE_STRING )
// InternalDatatypeGrammar.g:9424: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"
// InternalDatatypeGrammar.g:9444:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ;
public final EObject entryRuleXTypeLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleXTypeLiteral = null;
try {
// InternalDatatypeGrammar.g:9444:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF )
// InternalDatatypeGrammar.g:9445: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"
// InternalDatatypeGrammar.g:9451: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 {
// InternalDatatypeGrammar.g:9457:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) )
// InternalDatatypeGrammar.g:9458:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' )
{
// InternalDatatypeGrammar.g:9458:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' )
// InternalDatatypeGrammar.g:9459:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')'
{
// InternalDatatypeGrammar.g:9459:3: ()
// InternalDatatypeGrammar.g:9460:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(),
current);
}
}
otherlv_1=(Token)match(input,126,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:9474:3: ( ( ruleQualifiedName ) )
// InternalDatatypeGrammar.g:9475:4: ( ruleQualifiedName )
{
// InternalDatatypeGrammar.g:9475:4: ( ruleQualifiedName )
// InternalDatatypeGrammar.g:9476: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_24);
ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:9490:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )*
loop152:
do {
int alt152=2;
int LA152_0 = input.LA(1);
if ( (LA152_0==27) ) {
alt152=1;
}
switch (alt152) {
case 1 :
// InternalDatatypeGrammar.g:9491:4: (lv_arrayDimensions_4_0= ruleArrayBrackets )
{
// InternalDatatypeGrammar.g:9491:4: (lv_arrayDimensions_4_0= ruleArrayBrackets )
// InternalDatatypeGrammar.g:9492:5: lv_arrayDimensions_4_0= ruleArrayBrackets
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0());
}
pushFollow(FOLLOW_24);
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 loop152;
}
} while (true);
otherlv_5=(Token)match(input,23,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"
// InternalDatatypeGrammar.g:9517:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ;
public final EObject entryRuleXThrowExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXThrowExpression = null;
try {
// InternalDatatypeGrammar.g:9517:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF )
// InternalDatatypeGrammar.g:9518: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"
// InternalDatatypeGrammar.g:9524: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 {
// InternalDatatypeGrammar.g:9530:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) )
// InternalDatatypeGrammar.g:9531:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:9531:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:9532:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:9532:3: ()
// InternalDatatypeGrammar.g:9533:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,127,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1());
}
// InternalDatatypeGrammar.g:9543:3: ( (lv_expression_2_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9544:4: (lv_expression_2_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9544:4: (lv_expression_2_0= ruleXExpression )
// InternalDatatypeGrammar.g:9545: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"
// InternalDatatypeGrammar.g:9566:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ;
public final EObject entryRuleXReturnExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXReturnExpression = null;
try {
// InternalDatatypeGrammar.g:9566:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF )
// InternalDatatypeGrammar.g:9567: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"
// InternalDatatypeGrammar.g:9573: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 {
// InternalDatatypeGrammar.g:9579: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 ) )? ) )
// InternalDatatypeGrammar.g:9580: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 ) )? )
{
// InternalDatatypeGrammar.g:9580: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 ) )? )
// InternalDatatypeGrammar.g:9581: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 ) )?
{
// InternalDatatypeGrammar.g:9581:3: ()
// InternalDatatypeGrammar.g:9582:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,128,FOLLOW_97); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1());
}
// InternalDatatypeGrammar.g:9592: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 alt153=2;
alt153 = dfa153.predict(input);
switch (alt153) {
case 1 :
// InternalDatatypeGrammar.g:9593: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 )
{
// InternalDatatypeGrammar.g:9594:4: (lv_expression_2_0= ruleXExpression )
// InternalDatatypeGrammar.g:9595: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"
// InternalDatatypeGrammar.g:9616:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ;
public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXTryCatchFinallyExpression = null;
try {
// InternalDatatypeGrammar.g:9616:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF )
// InternalDatatypeGrammar.g:9617: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"
// InternalDatatypeGrammar.g:9623: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 {
// InternalDatatypeGrammar.g:9629: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 ) ) ) ) ) )
// InternalDatatypeGrammar.g:9630: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 ) ) ) ) )
{
// InternalDatatypeGrammar.g:9630: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 ) ) ) ) )
// InternalDatatypeGrammar.g:9631: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 ) ) ) )
{
// InternalDatatypeGrammar.g:9631:3: ()
// InternalDatatypeGrammar.g:9632:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(),
current);
}
}
otherlv_1=(Token)match(input,129,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1());
}
// InternalDatatypeGrammar.g:9642:3: ( (lv_expression_2_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9643:4: (lv_expression_2_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9643:4: (lv_expression_2_0= ruleXExpression )
// InternalDatatypeGrammar.g:9644:5: lv_expression_2_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0());
}
pushFollow(FOLLOW_98);
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();
}
}
}
// InternalDatatypeGrammar.g:9661: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 alt156=2;
int LA156_0 = input.LA(1);
if ( (LA156_0==132) ) {
alt156=1;
}
else if ( (LA156_0==130) ) {
alt156=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 156, 0, input);
throw nvae;
}
switch (alt156) {
case 1 :
// InternalDatatypeGrammar.g:9662:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? )
{
// InternalDatatypeGrammar.g:9662:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? )
// InternalDatatypeGrammar.g:9663:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )?
{
// InternalDatatypeGrammar.g:9663:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+
int cnt154=0;
loop154:
do {
int alt154=2;
int LA154_0 = input.LA(1);
if ( (LA154_0==132) ) {
int LA154_2 = input.LA(2);
if ( (synpred46_InternalDatatypeGrammar()) ) {
alt154=1;
}
}
switch (alt154) {
case 1 :
// InternalDatatypeGrammar.g:9664:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause )
{
// InternalDatatypeGrammar.g:9665:6: (lv_catchClauses_3_0= ruleXCatchClause )
// InternalDatatypeGrammar.g:9666:7: lv_catchClauses_3_0= ruleXCatchClause
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0());
}
pushFollow(FOLLOW_99);
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 ( cnt154 >= 1 ) break loop154;
if (state.backtracking>0) {state.failed=true; return current;}
EarlyExitException eee =
new EarlyExitException(154, input);
throw eee;
}
cnt154++;
} while (true);
// InternalDatatypeGrammar.g:9683:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )?
int alt155=2;
int LA155_0 = input.LA(1);
if ( (LA155_0==130) ) {
int LA155_1 = input.LA(2);
if ( (synpred47_InternalDatatypeGrammar()) ) {
alt155=1;
}
}
switch (alt155) {
case 1 :
// InternalDatatypeGrammar.g:9684:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:9684:6: ( ( 'finally' )=>otherlv_4= 'finally' )
// InternalDatatypeGrammar.g:9685:7: ( 'finally' )=>otherlv_4= 'finally'
{
otherlv_4=(Token)match(input,130,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0());
}
}
// InternalDatatypeGrammar.g:9691:6: ( (lv_finallyExpression_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9692:7: (lv_finallyExpression_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9692:7: (lv_finallyExpression_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:9693: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 :
// InternalDatatypeGrammar.g:9713:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:9713:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:9714:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) )
{
otherlv_6=(Token)match(input,130,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0());
}
// InternalDatatypeGrammar.g:9718:5: ( (lv_finallyExpression_7_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9719:6: (lv_finallyExpression_7_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9719:6: (lv_finallyExpression_7_0= ruleXExpression )
// InternalDatatypeGrammar.g:9720: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"
// InternalDatatypeGrammar.g:9743:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ;
public final EObject entryRuleXSynchronizedExpression() throws RecognitionException {
EObject current = null;
EObject iv_ruleXSynchronizedExpression = null;
try {
// InternalDatatypeGrammar.g:9743:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF )
// InternalDatatypeGrammar.g:9744: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"
// InternalDatatypeGrammar.g:9750: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 {
// InternalDatatypeGrammar.g:9756:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) )
// InternalDatatypeGrammar.g:9757:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:9757:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:9758:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:9758:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) )
// InternalDatatypeGrammar.g:9759:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' )
{
// InternalDatatypeGrammar.g:9766:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' )
// InternalDatatypeGrammar.g:9767:5: () otherlv_1= 'synchronized' otherlv_2= '('
{
// InternalDatatypeGrammar.g:9767:5: ()
// InternalDatatypeGrammar.g:9768:6:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(),
current);
}
}
otherlv_1=(Token)match(input,131,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1());
}
otherlv_2=(Token)match(input,21,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2());
}
}
}
// InternalDatatypeGrammar.g:9784:3: ( (lv_param_3_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9785:4: (lv_param_3_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9785:4: (lv_param_3_0= ruleXExpression )
// InternalDatatypeGrammar.g:9786:5: lv_param_3_0= ruleXExpression
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2());
}
// InternalDatatypeGrammar.g:9807:3: ( (lv_expression_5_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9808:4: (lv_expression_5_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9808:4: (lv_expression_5_0= ruleXExpression )
// InternalDatatypeGrammar.g:9809: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"
// InternalDatatypeGrammar.g:9830:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ;
public final EObject entryRuleXCatchClause() throws RecognitionException {
EObject current = null;
EObject iv_ruleXCatchClause = null;
try {
// InternalDatatypeGrammar.g:9830:53: (iv_ruleXCatchClause= ruleXCatchClause EOF )
// InternalDatatypeGrammar.g:9831: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"
// InternalDatatypeGrammar.g:9837: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 {
// InternalDatatypeGrammar.g:9843:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) )
// InternalDatatypeGrammar.g:9844:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) )
{
// InternalDatatypeGrammar.g:9844:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) )
// InternalDatatypeGrammar.g:9845:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) )
{
// InternalDatatypeGrammar.g:9845:3: ( ( 'catch' )=>otherlv_0= 'catch' )
// InternalDatatypeGrammar.g:9846:4: ( 'catch' )=>otherlv_0= 'catch'
{
otherlv_0=(Token)match(input,132,FOLLOW_13); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0());
}
}
otherlv_1=(Token)match(input,21,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1());
}
// InternalDatatypeGrammar.g:9856:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) )
// InternalDatatypeGrammar.g:9857:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter )
{
// InternalDatatypeGrammar.g:9857:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter )
// InternalDatatypeGrammar.g:9858:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0());
}
pushFollow(FOLLOW_25);
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,23,FOLLOW_43); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3());
}
// InternalDatatypeGrammar.g:9879:3: ( (lv_expression_4_0= ruleXExpression ) )
// InternalDatatypeGrammar.g:9880:4: (lv_expression_4_0= ruleXExpression )
{
// InternalDatatypeGrammar.g:9880:4: (lv_expression_4_0= ruleXExpression )
// InternalDatatypeGrammar.g:9881: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"
// InternalDatatypeGrammar.g:9902:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
public final String entryRuleQualifiedName() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQualifiedName = null;
try {
// InternalDatatypeGrammar.g:9902:53: (iv_ruleQualifiedName= ruleQualifiedName EOF )
// InternalDatatypeGrammar.g:9903: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"
// InternalDatatypeGrammar.g:9909: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 {
// InternalDatatypeGrammar.g:9915:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) )
// InternalDatatypeGrammar.g:9916:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* )
{
// InternalDatatypeGrammar.g:9916:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* )
// InternalDatatypeGrammar.g:9917:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0());
}
pushFollow(FOLLOW_36);
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();
}
// InternalDatatypeGrammar.g:9927:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )*
loop157:
do {
int alt157=2;
int LA157_0 = input.LA(1);
if ( (LA157_0==70) ) {
int LA157_2 = input.LA(2);
if ( (LA157_2==RULE_ID) ) {
int LA157_3 = input.LA(3);
if ( (synpred50_InternalDatatypeGrammar()) ) {
alt157=1;
}
}
}
switch (alt157) {
case 1 :
// InternalDatatypeGrammar.g:9928:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID
{
// InternalDatatypeGrammar.g:9928:4: ( ( '.' )=>kw= '.' )
// InternalDatatypeGrammar.g:9929:5: ( '.' )=>kw= '.'
{
kw=(Token)match(input,70,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_36);
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 loop157;
}
} while (true);
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleQualifiedName"
// $ANTLR start "entryRuleNumber"
// InternalDatatypeGrammar.g:9951: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 {
// InternalDatatypeGrammar.g:9953:2: (iv_ruleNumber= ruleNumber EOF )
// InternalDatatypeGrammar.g:9954: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"
// InternalDatatypeGrammar.g:9963: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 {
// InternalDatatypeGrammar.g:9970: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 ) )? ) ) )
// InternalDatatypeGrammar.g:9971: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 ) )? ) )
{
// InternalDatatypeGrammar.g:9971: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 alt161=2;
int LA161_0 = input.LA(1);
if ( (LA161_0==RULE_HEX) ) {
alt161=1;
}
else if ( (LA161_0==RULE_INT||LA161_0==RULE_DECIMAL) ) {
alt161=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 161, 0, input);
throw nvae;
}
switch (alt161) {
case 1 :
// InternalDatatypeGrammar.g:9972: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 :
// InternalDatatypeGrammar.g:9980:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? )
{
// InternalDatatypeGrammar.g:9980:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? )
// InternalDatatypeGrammar.g:9981:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )?
{
// InternalDatatypeGrammar.g:9981:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL )
int alt158=2;
int LA158_0 = input.LA(1);
if ( (LA158_0==RULE_INT) ) {
alt158=1;
}
else if ( (LA158_0==RULE_DECIMAL) ) {
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 :
// InternalDatatypeGrammar.g:9982:5: this_INT_1= RULE_INT
{
this_INT_1=(Token)match(input,RULE_INT,FOLLOW_36); 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 :
// InternalDatatypeGrammar.g:9990:5: this_DECIMAL_2= RULE_DECIMAL
{
this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_36); 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;
}
// InternalDatatypeGrammar.g:9998:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )?
int alt160=2;
int LA160_0 = input.LA(1);
if ( (LA160_0==70) ) {
int LA160_1 = input.LA(2);
if ( (LA160_1==RULE_INT||LA160_1==RULE_DECIMAL) ) {
alt160=1;
}
}
switch (alt160) {
case 1 :
// InternalDatatypeGrammar.g:9999:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL )
{
kw=(Token)match(input,70,FOLLOW_100); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0());
}
// InternalDatatypeGrammar.g:10004:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL )
int alt159=2;
int LA159_0 = input.LA(1);
if ( (LA159_0==RULE_INT) ) {
alt159=1;
}
else if ( (LA159_0==RULE_DECIMAL) ) {
alt159=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 159, 0, input);
throw nvae;
}
switch (alt159) {
case 1 :
// InternalDatatypeGrammar.g:10005: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 :
// InternalDatatypeGrammar.g:10013: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"
// InternalDatatypeGrammar.g:10030:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ;
public final EObject entryRuleJvmTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmTypeReference = null;
try {
// InternalDatatypeGrammar.g:10030:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF )
// InternalDatatypeGrammar.g:10031: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"
// InternalDatatypeGrammar.g:10037: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 {
// InternalDatatypeGrammar.g:10043:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) )
// InternalDatatypeGrammar.g:10044:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef )
{
// InternalDatatypeGrammar.g:10044:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef )
int alt163=2;
int LA163_0 = input.LA(1);
if ( (LA163_0==RULE_ID) ) {
alt163=1;
}
else if ( (LA163_0==21||LA163_0==97) ) {
alt163=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 163, 0, input);
throw nvae;
}
switch (alt163) {
case 1 :
// InternalDatatypeGrammar.g:10045:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* )
{
// InternalDatatypeGrammar.g:10045:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* )
// InternalDatatypeGrammar.g:10046:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )*
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0());
}
pushFollow(FOLLOW_19);
this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
current = this_JvmParameterizedTypeReference_0;
afterParserOrEnumRuleCall();
}
// InternalDatatypeGrammar.g:10054:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )*
loop162:
do {
int alt162=2;
int LA162_0 = input.LA(1);
if ( (LA162_0==27) ) {
int LA162_2 = input.LA(2);
if ( (LA162_2==32) ) {
int LA162_3 = input.LA(3);
if ( (synpred51_InternalDatatypeGrammar()) ) {
alt162=1;
}
}
}
switch (alt162) {
case 1 :
// InternalDatatypeGrammar.g:10055:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets )
{
// InternalDatatypeGrammar.g:10061:5: ( () ruleArrayBrackets )
// InternalDatatypeGrammar.g:10062:6: () ruleArrayBrackets
{
// InternalDatatypeGrammar.g:10062:6: ()
// InternalDatatypeGrammar.g:10063: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_19);
ruleArrayBrackets();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop162;
}
} while (true);
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10080: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"
// InternalDatatypeGrammar.g:10092:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ;
public final String entryRuleArrayBrackets() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleArrayBrackets = null;
try {
// InternalDatatypeGrammar.g:10092:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF )
// InternalDatatypeGrammar.g:10093: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"
// InternalDatatypeGrammar.g:10099:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ;
public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalDatatypeGrammar.g:10105:2: ( (kw= '[' kw= ']' ) )
// InternalDatatypeGrammar.g:10106:2: (kw= '[' kw= ']' )
{
// InternalDatatypeGrammar.g:10106:2: (kw= '[' kw= ']' )
// InternalDatatypeGrammar.g:10107:3: kw= '[' kw= ']'
{
kw=(Token)match(input,27,FOLLOW_76); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0());
}
kw=(Token)match(input,32,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"
// InternalDatatypeGrammar.g:10121:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ;
public final EObject entryRuleXFunctionTypeRef() throws RecognitionException {
EObject current = null;
EObject iv_ruleXFunctionTypeRef = null;
try {
// InternalDatatypeGrammar.g:10121:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF )
// InternalDatatypeGrammar.g:10122: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"
// InternalDatatypeGrammar.g:10128: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 {
// InternalDatatypeGrammar.g:10134:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) )
// InternalDatatypeGrammar.g:10135:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:10135:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:10136:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) )
{
// InternalDatatypeGrammar.g:10136:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )?
int alt166=2;
int LA166_0 = input.LA(1);
if ( (LA166_0==21) ) {
alt166=1;
}
switch (alt166) {
case 1 :
// InternalDatatypeGrammar.g:10137:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')'
{
otherlv_0=(Token)match(input,21,FOLLOW_101); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0());
}
// InternalDatatypeGrammar.g:10141:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )?
int alt165=2;
int LA165_0 = input.LA(1);
if ( (LA165_0==RULE_ID||LA165_0==21||LA165_0==97) ) {
alt165=1;
}
switch (alt165) {
case 1 :
// InternalDatatypeGrammar.g:10142:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )*
{
// InternalDatatypeGrammar.g:10142:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10143:6: (lv_paramTypes_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10143:6: (lv_paramTypes_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10144:7: lv_paramTypes_1_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0());
}
pushFollow(FOLLOW_15);
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();
}
}
}
// InternalDatatypeGrammar.g:10161:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )*
loop164:
do {
int alt164=2;
int LA164_0 = input.LA(1);
if ( (LA164_0==22) ) {
alt164=1;
}
switch (alt164) {
case 1 :
// InternalDatatypeGrammar.g:10162:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) )
{
otherlv_2=(Token)match(input,22,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0());
}
// InternalDatatypeGrammar.g:10166:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10167:7: (lv_paramTypes_3_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10167:7: (lv_paramTypes_3_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10168:8: lv_paramTypes_3_0= ruleJvmTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0());
}
pushFollow(FOLLOW_15);
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 loop164;
}
} while (true);
}
break;
}
otherlv_4=(Token)match(input,23,FOLLOW_102); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2());
}
}
break;
}
otherlv_5=(Token)match(input,97,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1());
}
// InternalDatatypeGrammar.g:10196:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10197:4: (lv_returnType_6_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10197:4: (lv_returnType_6_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10198: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"
// InternalDatatypeGrammar.g:10219:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ;
public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmParameterizedTypeReference = null;
try {
// InternalDatatypeGrammar.g:10219:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF )
// InternalDatatypeGrammar.g:10220: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"
// InternalDatatypeGrammar.g:10226: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 {
// InternalDatatypeGrammar.g:10232: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= '>' )? )* )? ) )
// InternalDatatypeGrammar.g:10233: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= '>' )? )* )? )
{
// InternalDatatypeGrammar.g:10233: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= '>' )? )* )? )
// InternalDatatypeGrammar.g:10234: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= '>' )? )* )?
{
// InternalDatatypeGrammar.g:10234:3: ( ( ruleQualifiedName ) )
// InternalDatatypeGrammar.g:10235:4: ( ruleQualifiedName )
{
// InternalDatatypeGrammar.g:10235:4: ( ruleQualifiedName )
// InternalDatatypeGrammar.g:10236: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_103);
ruleQualifiedName();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:10250: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 alt171=2;
alt171 = dfa171.predict(input);
switch (alt171) {
case 1 :
// InternalDatatypeGrammar.g:10251: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= '>' )? )*
{
// InternalDatatypeGrammar.g:10251:4: ( ( '<' )=>otherlv_1= '<' )
// InternalDatatypeGrammar.g:10252:5: ( '<' )=>otherlv_1= '<'
{
otherlv_1=(Token)match(input,84,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0());
}
}
// InternalDatatypeGrammar.g:10258:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:10259:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:10259:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:10260:6: lv_arguments_2_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0());
}
pushFollow(FOLLOW_68);
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();
}
}
}
// InternalDatatypeGrammar.g:10277:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )*
loop167:
do {
int alt167=2;
int LA167_0 = input.LA(1);
if ( (LA167_0==22) ) {
alt167=1;
}
switch (alt167) {
case 1 :
// InternalDatatypeGrammar.g:10278:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) )
{
otherlv_3=(Token)match(input,22,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0());
}
// InternalDatatypeGrammar.g:10282:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:10283:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:10283:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:10284:7: lv_arguments_4_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0());
}
pushFollow(FOLLOW_68);
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 loop167;
}
} while (true);
otherlv_5=(Token)match(input,85,FOLLOW_36); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3());
}
// InternalDatatypeGrammar.g:10306:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )*
loop170:
do {
int alt170=2;
int LA170_0 = input.LA(1);
if ( (LA170_0==70) ) {
int LA170_2 = input.LA(2);
if ( (LA170_2==RULE_ID) ) {
int LA170_3 = input.LA(3);
if ( (synpred53_InternalDatatypeGrammar()) ) {
alt170=1;
}
}
}
switch (alt170) {
case 1 :
// InternalDatatypeGrammar.g:10307:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?
{
// InternalDatatypeGrammar.g:10307:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) )
// InternalDatatypeGrammar.g:10308:6: ( ( () '.' ) )=> ( () otherlv_7= '.' )
{
// InternalDatatypeGrammar.g:10314:6: ( () otherlv_7= '.' )
// InternalDatatypeGrammar.g:10315:7: () otherlv_7= '.'
{
// InternalDatatypeGrammar.g:10315:7: ()
// InternalDatatypeGrammar.g:10316:8:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElementAndSet(
grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(),
current);
}
}
otherlv_7=(Token)match(input,70,FOLLOW_4); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1());
}
}
}
// InternalDatatypeGrammar.g:10328:5: ( ( ruleValidID ) )
// InternalDatatypeGrammar.g:10329:6: ( ruleValidID )
{
// InternalDatatypeGrammar.g:10329:6: ( ruleValidID )
// InternalDatatypeGrammar.g:10330: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_104);
ruleValidID();
state._fsp--;
if (state.failed) return current;
if ( state.backtracking==0 ) {
afterParserOrEnumRuleCall();
}
}
}
// InternalDatatypeGrammar.g:10344:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?
int alt169=2;
alt169 = dfa169.predict(input);
switch (alt169) {
case 1 :
// InternalDatatypeGrammar.g:10345:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>'
{
// InternalDatatypeGrammar.g:10345:6: ( ( '<' )=>otherlv_9= '<' )
// InternalDatatypeGrammar.g:10346:7: ( '<' )=>otherlv_9= '<'
{
otherlv_9=(Token)match(input,84,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0());
}
}
// InternalDatatypeGrammar.g:10352:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:10353:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:10353:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:10354:8: lv_arguments_10_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0());
}
pushFollow(FOLLOW_68);
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();
}
}
}
// InternalDatatypeGrammar.g:10371:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )*
loop168:
do {
int alt168=2;
int LA168_0 = input.LA(1);
if ( (LA168_0==22) ) {
alt168=1;
}
switch (alt168) {
case 1 :
// InternalDatatypeGrammar.g:10372:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) )
{
otherlv_11=(Token)match(input,22,FOLLOW_67); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0());
}
// InternalDatatypeGrammar.g:10376:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) )
// InternalDatatypeGrammar.g:10377:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference )
{
// InternalDatatypeGrammar.g:10377:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference )
// InternalDatatypeGrammar.g:10378:9: lv_arguments_12_0= ruleJvmArgumentTypeReference
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0());
}
pushFollow(FOLLOW_68);
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 loop168;
}
} while (true);
otherlv_13=(Token)match(input,85,FOLLOW_36); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3());
}
}
break;
}
}
break;
default :
break loop170;
}
} while (true);
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleJvmParameterizedTypeReference"
// $ANTLR start "entryRuleJvmArgumentTypeReference"
// InternalDatatypeGrammar.g:10407:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ;
public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmArgumentTypeReference = null;
try {
// InternalDatatypeGrammar.g:10407:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF )
// InternalDatatypeGrammar.g:10408: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"
// InternalDatatypeGrammar.g:10414: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 {
// InternalDatatypeGrammar.g:10420:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) )
// InternalDatatypeGrammar.g:10421:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference )
{
// InternalDatatypeGrammar.g:10421:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference )
int alt172=2;
int LA172_0 = input.LA(1);
if ( (LA172_0==RULE_ID||LA172_0==21||LA172_0==97) ) {
alt172=1;
}
else if ( (LA172_0==133) ) {
alt172=2;
}
else {
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 172, 0, input);
throw nvae;
}
switch (alt172) {
case 1 :
// InternalDatatypeGrammar.g:10422: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 :
// InternalDatatypeGrammar.g:10431: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"
// InternalDatatypeGrammar.g:10443:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ;
public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmWildcardTypeReference = null;
try {
// InternalDatatypeGrammar.g:10443:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF )
// InternalDatatypeGrammar.g:10444: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"
// InternalDatatypeGrammar.g:10450: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 {
// InternalDatatypeGrammar.g:10456:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) )
// InternalDatatypeGrammar.g:10457:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? )
{
// InternalDatatypeGrammar.g:10457:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? )
// InternalDatatypeGrammar.g:10458:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )?
{
// InternalDatatypeGrammar.g:10458:3: ()
// InternalDatatypeGrammar.g:10459:4:
{
if ( state.backtracking==0 ) {
current = forceCreateModelElement(
grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(),
current);
}
}
otherlv_1=(Token)match(input,133,FOLLOW_105); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1());
}
// InternalDatatypeGrammar.g:10469:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )?
int alt175=3;
int LA175_0 = input.LA(1);
if ( (LA175_0==120) ) {
alt175=1;
}
else if ( (LA175_0==121) ) {
alt175=2;
}
switch (alt175) {
case 1 :
// InternalDatatypeGrammar.g:10470:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* )
{
// InternalDatatypeGrammar.g:10470:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* )
// InternalDatatypeGrammar.g:10471:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )*
{
// InternalDatatypeGrammar.g:10471:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) )
// InternalDatatypeGrammar.g:10472:6: (lv_constraints_2_0= ruleJvmUpperBound )
{
// InternalDatatypeGrammar.g:10472:6: (lv_constraints_2_0= ruleJvmUpperBound )
// InternalDatatypeGrammar.g:10473:7: lv_constraints_2_0= ruleJvmUpperBound
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0());
}
pushFollow(FOLLOW_106);
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();
}
}
}
// InternalDatatypeGrammar.g:10490:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )*
loop173:
do {
int alt173=2;
int LA173_0 = input.LA(1);
if ( (LA173_0==134) ) {
alt173=1;
}
switch (alt173) {
case 1 :
// InternalDatatypeGrammar.g:10491:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded )
{
// InternalDatatypeGrammar.g:10491:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded )
// InternalDatatypeGrammar.g:10492:7: lv_constraints_3_0= ruleJvmUpperBoundAnded
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0());
}
pushFollow(FOLLOW_106);
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 loop173;
}
} while (true);
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10511:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* )
{
// InternalDatatypeGrammar.g:10511:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* )
// InternalDatatypeGrammar.g:10512:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )*
{
// InternalDatatypeGrammar.g:10512:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) )
// InternalDatatypeGrammar.g:10513:6: (lv_constraints_4_0= ruleJvmLowerBound )
{
// InternalDatatypeGrammar.g:10513:6: (lv_constraints_4_0= ruleJvmLowerBound )
// InternalDatatypeGrammar.g:10514:7: lv_constraints_4_0= ruleJvmLowerBound
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0());
}
pushFollow(FOLLOW_106);
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();
}
}
}
// InternalDatatypeGrammar.g:10531:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )*
loop174:
do {
int alt174=2;
int LA174_0 = input.LA(1);
if ( (LA174_0==134) ) {
alt174=1;
}
switch (alt174) {
case 1 :
// InternalDatatypeGrammar.g:10532:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded )
{
// InternalDatatypeGrammar.g:10532:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded )
// InternalDatatypeGrammar.g:10533:7: lv_constraints_5_0= ruleJvmLowerBoundAnded
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0());
}
pushFollow(FOLLOW_106);
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 loop174;
}
} while (true);
}
}
break;
}
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleJvmWildcardTypeReference"
// $ANTLR start "entryRuleJvmUpperBound"
// InternalDatatypeGrammar.g:10556:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ;
public final EObject entryRuleJvmUpperBound() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmUpperBound = null;
try {
// InternalDatatypeGrammar.g:10556:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF )
// InternalDatatypeGrammar.g:10557: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"
// InternalDatatypeGrammar.g:10563: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 {
// InternalDatatypeGrammar.g:10569:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) )
// InternalDatatypeGrammar.g:10570:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:10570:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:10571:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
{
otherlv_0=(Token)match(input,120,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0());
}
// InternalDatatypeGrammar.g:10575:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10576:4: (lv_typeReference_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10576:4: (lv_typeReference_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10577: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"
// InternalDatatypeGrammar.g:10598:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ;
public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmUpperBoundAnded = null;
try {
// InternalDatatypeGrammar.g:10598:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF )
// InternalDatatypeGrammar.g:10599: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"
// InternalDatatypeGrammar.g:10605: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 {
// InternalDatatypeGrammar.g:10611:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) )
// InternalDatatypeGrammar.g:10612:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:10612:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:10613:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
{
otherlv_0=(Token)match(input,134,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0());
}
// InternalDatatypeGrammar.g:10617:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10618:4: (lv_typeReference_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10618:4: (lv_typeReference_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10619: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"
// InternalDatatypeGrammar.g:10640:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ;
public final EObject entryRuleJvmLowerBound() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmLowerBound = null;
try {
// InternalDatatypeGrammar.g:10640:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF )
// InternalDatatypeGrammar.g:10641: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"
// InternalDatatypeGrammar.g:10647: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 {
// InternalDatatypeGrammar.g:10653:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) )
// InternalDatatypeGrammar.g:10654:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:10654:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:10655:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
{
otherlv_0=(Token)match(input,121,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0());
}
// InternalDatatypeGrammar.g:10659:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10660:4: (lv_typeReference_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10660:4: (lv_typeReference_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10661: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"
// InternalDatatypeGrammar.g:10682:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ;
public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException {
EObject current = null;
EObject iv_ruleJvmLowerBoundAnded = null;
try {
// InternalDatatypeGrammar.g:10682:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF )
// InternalDatatypeGrammar.g:10683: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"
// InternalDatatypeGrammar.g:10689: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 {
// InternalDatatypeGrammar.g:10695:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) )
// InternalDatatypeGrammar.g:10696:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
{
// InternalDatatypeGrammar.g:10696:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) )
// InternalDatatypeGrammar.g:10697:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
{
otherlv_0=(Token)match(input,134,FOLLOW_10); if (state.failed) return current;
if ( state.backtracking==0 ) {
newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0());
}
// InternalDatatypeGrammar.g:10701:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:10702:4: (lv_typeReference_1_0= ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:10702:4: (lv_typeReference_1_0= ruleJvmTypeReference )
// InternalDatatypeGrammar.g:10703: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"
// InternalDatatypeGrammar.g:10724:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ;
public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null;
try {
// InternalDatatypeGrammar.g:10724:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF )
// InternalDatatypeGrammar.g:10725: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"
// InternalDatatypeGrammar.g:10731: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 {
// InternalDatatypeGrammar.g:10737:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) )
// InternalDatatypeGrammar.g:10738:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' )
{
// InternalDatatypeGrammar.g:10738:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' )
// InternalDatatypeGrammar.g:10739:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*'
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0());
}
pushFollow(FOLLOW_107);
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,70,FOLLOW_108); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1());
}
kw=(Token)match(input,74,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"
// InternalDatatypeGrammar.g:10763:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ;
public final String entryRuleValidID() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleValidID = null;
try {
// InternalDatatypeGrammar.g:10763:47: (iv_ruleValidID= ruleValidID EOF )
// InternalDatatypeGrammar.g:10764: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"
// InternalDatatypeGrammar.g:10770: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 {
// InternalDatatypeGrammar.g:10776:2: (this_ID_0= RULE_ID )
// InternalDatatypeGrammar.g:10777: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"
// InternalDatatypeGrammar.g:10787:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ;
public final EObject entryRuleXImportSection() throws RecognitionException {
EObject current = null;
EObject iv_ruleXImportSection = null;
try {
// InternalDatatypeGrammar.g:10787:55: (iv_ruleXImportSection= ruleXImportSection EOF )
// InternalDatatypeGrammar.g:10788: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"
// InternalDatatypeGrammar.g:10794: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 {
// InternalDatatypeGrammar.g:10800:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ )
// InternalDatatypeGrammar.g:10801:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+
{
// InternalDatatypeGrammar.g:10801:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+
int cnt176=0;
loop176:
do {
int alt176=2;
int LA176_0 = input.LA(1);
if ( (LA176_0==71) ) {
alt176=1;
}
switch (alt176) {
case 1 :
// InternalDatatypeGrammar.g:10802:3: (lv_importDeclarations_0_0= ruleXImportDeclaration )
{
// InternalDatatypeGrammar.g:10802:3: (lv_importDeclarations_0_0= ruleXImportDeclaration )
// InternalDatatypeGrammar.g:10803:4: lv_importDeclarations_0_0= ruleXImportDeclaration
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0());
}
pushFollow(FOLLOW_109);
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 ( cnt176 >= 1 ) break loop176;
if (state.backtracking>0) {state.failed=true; return current;}
EarlyExitException eee =
new EarlyExitException(176, input);
throw eee;
}
cnt176++;
} while (true);
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleXImportSection"
// $ANTLR start "entryRuleQualifiedNameInStaticImport"
// InternalDatatypeGrammar.g:10823:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ;
public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null;
try {
// InternalDatatypeGrammar.g:10823:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF )
// InternalDatatypeGrammar.g:10824: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"
// InternalDatatypeGrammar.g:10830: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 {
// InternalDatatypeGrammar.g:10836:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ )
// InternalDatatypeGrammar.g:10837:2: (this_ValidID_0= ruleValidID kw= '.' )+
{
// InternalDatatypeGrammar.g:10837:2: (this_ValidID_0= ruleValidID kw= '.' )+
int cnt177=0;
loop177:
do {
int alt177=2;
int LA177_0 = input.LA(1);
if ( (LA177_0==RULE_ID) ) {
int LA177_2 = input.LA(2);
if ( (LA177_2==70) ) {
alt177=1;
}
}
switch (alt177) {
case 1 :
// InternalDatatypeGrammar.g:10838:3: this_ValidID_0= ruleValidID kw= '.'
{
if ( state.backtracking==0 ) {
newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0());
}
pushFollow(FOLLOW_107);
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,70,FOLLOW_110); if (state.failed) return current;
if ( state.backtracking==0 ) {
current.merge(kw);
newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1());
}
}
break;
default :
if ( cnt177 >= 1 ) break loop177;
if (state.backtracking>0) {state.failed=true; return current;}
EarlyExitException eee =
new EarlyExitException(177, input);
throw eee;
}
cnt177++;
} while (true);
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleQualifiedNameInStaticImport"
// $ANTLR start "ruleConstraintSeverity"
// InternalDatatypeGrammar.g:10857:1: ruleConstraintSeverity returns [Enumerator current=null] : ( (enumLiteral_0= 'info' ) | (enumLiteral_1= 'warn' ) | (enumLiteral_2= 'error' ) ) ;
public final Enumerator ruleConstraintSeverity() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
Token enumLiteral_2=null;
enterRule();
try {
// InternalDatatypeGrammar.g:10863:2: ( ( (enumLiteral_0= 'info' ) | (enumLiteral_1= 'warn' ) | (enumLiteral_2= 'error' ) ) )
// InternalDatatypeGrammar.g:10864:2: ( (enumLiteral_0= 'info' ) | (enumLiteral_1= 'warn' ) | (enumLiteral_2= 'error' ) )
{
// InternalDatatypeGrammar.g:10864:2: ( (enumLiteral_0= 'info' ) | (enumLiteral_1= 'warn' ) | (enumLiteral_2= 'error' ) )
int alt178=3;
switch ( input.LA(1) ) {
case 135:
{
alt178=1;
}
break;
case 136:
{
alt178=2;
}
break;
case 137:
{
alt178=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 178, 0, input);
throw nvae;
}
switch (alt178) {
case 1 :
// InternalDatatypeGrammar.g:10865:3: (enumLiteral_0= 'info' )
{
// InternalDatatypeGrammar.g:10865:3: (enumLiteral_0= 'info' )
// InternalDatatypeGrammar.g:10866:4: enumLiteral_0= 'info'
{
enumLiteral_0=(Token)match(input,135,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getConstraintSeverityAccess().getINFOEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getConstraintSeverityAccess().getINFOEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10873:3: (enumLiteral_1= 'warn' )
{
// InternalDatatypeGrammar.g:10873:3: (enumLiteral_1= 'warn' )
// InternalDatatypeGrammar.g:10874:4: enumLiteral_1= 'warn'
{
enumLiteral_1=(Token)match(input,136,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getConstraintSeverityAccess().getWARNINGEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getConstraintSeverityAccess().getWARNINGEnumLiteralDeclaration_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:10881:3: (enumLiteral_2= 'error' )
{
// InternalDatatypeGrammar.g:10881:3: (enumLiteral_2= 'error' )
// InternalDatatypeGrammar.g:10882:4: enumLiteral_2= 'error'
{
enumLiteral_2=(Token)match(input,137,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getConstraintSeverityAccess().getERROREnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getConstraintSeverityAccess().getERROREnumLiteralDeclaration_2());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConstraintSeverity"
// $ANTLR start "ruleDateType"
// InternalDatatypeGrammar.g:10892:1: ruleDateType returns [Enumerator current=null] : ( (enumLiteral_0= 'date' ) | (enumLiteral_1= 'time' ) | (enumLiteral_2= 'timestamp' ) ) ;
public final Enumerator ruleDateType() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
Token enumLiteral_2=null;
enterRule();
try {
// InternalDatatypeGrammar.g:10898:2: ( ( (enumLiteral_0= 'date' ) | (enumLiteral_1= 'time' ) | (enumLiteral_2= 'timestamp' ) ) )
// InternalDatatypeGrammar.g:10899:2: ( (enumLiteral_0= 'date' ) | (enumLiteral_1= 'time' ) | (enumLiteral_2= 'timestamp' ) )
{
// InternalDatatypeGrammar.g:10899:2: ( (enumLiteral_0= 'date' ) | (enumLiteral_1= 'time' ) | (enumLiteral_2= 'timestamp' ) )
int alt179=3;
switch ( input.LA(1) ) {
case 62:
{
alt179=1;
}
break;
case 138:
{
alt179=2;
}
break;
case 139:
{
alt179=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 179, 0, input);
throw nvae;
}
switch (alt179) {
case 1 :
// InternalDatatypeGrammar.g:10900:3: (enumLiteral_0= 'date' )
{
// InternalDatatypeGrammar.g:10900:3: (enumLiteral_0= 'date' )
// InternalDatatypeGrammar.g:10901:4: enumLiteral_0= 'date'
{
enumLiteral_0=(Token)match(input,62,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getDateTypeAccess().getDATEEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getDateTypeAccess().getDATEEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10908:3: (enumLiteral_1= 'time' )
{
// InternalDatatypeGrammar.g:10908:3: (enumLiteral_1= 'time' )
// InternalDatatypeGrammar.g:10909:4: enumLiteral_1= 'time'
{
enumLiteral_1=(Token)match(input,138,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getDateTypeAccess().getTIMEEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getDateTypeAccess().getTIMEEnumLiteralDeclaration_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:10916:3: (enumLiteral_2= 'timestamp' )
{
// InternalDatatypeGrammar.g:10916:3: (enumLiteral_2= 'timestamp' )
// InternalDatatypeGrammar.g:10917:4: enumLiteral_2= 'timestamp'
{
enumLiteral_2=(Token)match(input,139,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getDateTypeAccess().getTIMESTAMPEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getDateTypeAccess().getTIMESTAMPEnumLiteralDeclaration_2());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleDateType"
// $ANTLR start "ruleLVisibility"
// InternalDatatypeGrammar.g:10927:1: ruleLVisibility returns [Enumerator current=null] : ( (enumLiteral_0= 'package' ) | (enumLiteral_1= 'private' ) | (enumLiteral_2= 'protected' ) | (enumLiteral_3= 'public' ) ) ;
public final Enumerator ruleLVisibility() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
Token enumLiteral_2=null;
Token enumLiteral_3=null;
enterRule();
try {
// InternalDatatypeGrammar.g:10933:2: ( ( (enumLiteral_0= 'package' ) | (enumLiteral_1= 'private' ) | (enumLiteral_2= 'protected' ) | (enumLiteral_3= 'public' ) ) )
// InternalDatatypeGrammar.g:10934:2: ( (enumLiteral_0= 'package' ) | (enumLiteral_1= 'private' ) | (enumLiteral_2= 'protected' ) | (enumLiteral_3= 'public' ) )
{
// InternalDatatypeGrammar.g:10934:2: ( (enumLiteral_0= 'package' ) | (enumLiteral_1= 'private' ) | (enumLiteral_2= 'protected' ) | (enumLiteral_3= 'public' ) )
int alt180=4;
switch ( input.LA(1) ) {
case 13:
{
alt180=1;
}
break;
case 140:
{
alt180=2;
}
break;
case 141:
{
alt180=3;
}
break;
case 142:
{
alt180=4;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 180, 0, input);
throw nvae;
}
switch (alt180) {
case 1 :
// InternalDatatypeGrammar.g:10935:3: (enumLiteral_0= 'package' )
{
// InternalDatatypeGrammar.g:10935:3: (enumLiteral_0= 'package' )
// InternalDatatypeGrammar.g:10936:4: enumLiteral_0= 'package'
{
enumLiteral_0=(Token)match(input,13,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLVisibilityAccess().getPACKAGEEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getLVisibilityAccess().getPACKAGEEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10943:3: (enumLiteral_1= 'private' )
{
// InternalDatatypeGrammar.g:10943:3: (enumLiteral_1= 'private' )
// InternalDatatypeGrammar.g:10944:4: enumLiteral_1= 'private'
{
enumLiteral_1=(Token)match(input,140,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLVisibilityAccess().getPRIVATEEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getLVisibilityAccess().getPRIVATEEnumLiteralDeclaration_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:10951:3: (enumLiteral_2= 'protected' )
{
// InternalDatatypeGrammar.g:10951:3: (enumLiteral_2= 'protected' )
// InternalDatatypeGrammar.g:10952:4: enumLiteral_2= 'protected'
{
enumLiteral_2=(Token)match(input,141,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLVisibilityAccess().getPROTECTEDEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getLVisibilityAccess().getPROTECTEDEnumLiteralDeclaration_2());
}
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:10959:3: (enumLiteral_3= 'public' )
{
// InternalDatatypeGrammar.g:10959:3: (enumLiteral_3= 'public' )
// InternalDatatypeGrammar.g:10960:4: enumLiteral_3= 'public'
{
enumLiteral_3=(Token)match(input,142,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLVisibilityAccess().getPUBLICEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_3, grammarAccess.getLVisibilityAccess().getPUBLICEnumLiteralDeclaration_3());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLVisibility"
// $ANTLR start "ruleLComparatorType"
// InternalDatatypeGrammar.g:10970:1: ruleLComparatorType returns [Enumerator current=null] : ( (enumLiteral_0= '==' ) | (enumLiteral_1= '>' ) | (enumLiteral_2= '<' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<=' ) | (enumLiteral_5= '<>' ) ) ;
public final Enumerator ruleLComparatorType() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
Token enumLiteral_2=null;
Token enumLiteral_3=null;
Token enumLiteral_4=null;
Token enumLiteral_5=null;
enterRule();
try {
// InternalDatatypeGrammar.g:10976:2: ( ( (enumLiteral_0= '==' ) | (enumLiteral_1= '>' ) | (enumLiteral_2= '<' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<=' ) | (enumLiteral_5= '<>' ) ) )
// InternalDatatypeGrammar.g:10977:2: ( (enumLiteral_0= '==' ) | (enumLiteral_1= '>' ) | (enumLiteral_2= '<' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<=' ) | (enumLiteral_5= '<>' ) )
{
// InternalDatatypeGrammar.g:10977:2: ( (enumLiteral_0= '==' ) | (enumLiteral_1= '>' ) | (enumLiteral_2= '<' ) | (enumLiteral_3= '>=' ) | (enumLiteral_4= '<=' ) | (enumLiteral_5= '<>' ) )
int alt181=6;
switch ( input.LA(1) ) {
case 89:
{
alt181=1;
}
break;
case 85:
{
alt181=2;
}
break;
case 84:
{
alt181=3;
}
break;
case 86:
{
alt181=4;
}
break;
case 143:
{
alt181=5;
}
break;
case 98:
{
alt181=6;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 181, 0, input);
throw nvae;
}
switch (alt181) {
case 1 :
// InternalDatatypeGrammar.g:10978:3: (enumLiteral_0= '==' )
{
// InternalDatatypeGrammar.g:10978:3: (enumLiteral_0= '==' )
// InternalDatatypeGrammar.g:10979:4: enumLiteral_0= '=='
{
enumLiteral_0=(Token)match(input,89,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getEQUALSEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getLComparatorTypeAccess().getEQUALSEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:10986:3: (enumLiteral_1= '>' )
{
// InternalDatatypeGrammar.g:10986:3: (enumLiteral_1= '>' )
// InternalDatatypeGrammar.g:10987:4: enumLiteral_1= '>'
{
enumLiteral_1=(Token)match(input,85,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getGREATEREnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getLComparatorTypeAccess().getGREATEREnumLiteralDeclaration_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:10994:3: (enumLiteral_2= '<' )
{
// InternalDatatypeGrammar.g:10994:3: (enumLiteral_2= '<' )
// InternalDatatypeGrammar.g:10995:4: enumLiteral_2= '<'
{
enumLiteral_2=(Token)match(input,84,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getLOWEREnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getLComparatorTypeAccess().getLOWEREnumLiteralDeclaration_2());
}
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:11002:3: (enumLiteral_3= '>=' )
{
// InternalDatatypeGrammar.g:11002:3: (enumLiteral_3= '>=' )
// InternalDatatypeGrammar.g:11003:4: enumLiteral_3= '>='
{
enumLiteral_3=(Token)match(input,86,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getGREATER_EQEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_3, grammarAccess.getLComparatorTypeAccess().getGREATER_EQEnumLiteralDeclaration_3());
}
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:11010:3: (enumLiteral_4= '<=' )
{
// InternalDatatypeGrammar.g:11010:3: (enumLiteral_4= '<=' )
// InternalDatatypeGrammar.g:11011:4: enumLiteral_4= '<='
{
enumLiteral_4=(Token)match(input,143,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getLOWER_EQEnumLiteralDeclaration_4().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_4, grammarAccess.getLComparatorTypeAccess().getLOWER_EQEnumLiteralDeclaration_4());
}
}
}
break;
case 6 :
// InternalDatatypeGrammar.g:11018:3: (enumLiteral_5= '<>' )
{
// InternalDatatypeGrammar.g:11018:3: (enumLiteral_5= '<>' )
// InternalDatatypeGrammar.g:11019:4: enumLiteral_5= '<>'
{
enumLiteral_5=(Token)match(input,98,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLComparatorTypeAccess().getNOT_EQEnumLiteralDeclaration_5().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_5, grammarAccess.getLComparatorTypeAccess().getNOT_EQEnumLiteralDeclaration_5());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLComparatorType"
// $ANTLR start "ruleLowerBound"
// InternalDatatypeGrammar.g:11029:1: ruleLowerBound returns [Enumerator current=null] : ( (enumLiteral_0= '*' ) | (enumLiteral_1= '0' ) | (enumLiteral_2= '?' ) | (enumLiteral_3= '+' ) | (enumLiteral_4= '1' ) ) ;
public final Enumerator ruleLowerBound() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
Token enumLiteral_2=null;
Token enumLiteral_3=null;
Token enumLiteral_4=null;
enterRule();
try {
// InternalDatatypeGrammar.g:11035:2: ( ( (enumLiteral_0= '*' ) | (enumLiteral_1= '0' ) | (enumLiteral_2= '?' ) | (enumLiteral_3= '+' ) | (enumLiteral_4= '1' ) ) )
// InternalDatatypeGrammar.g:11036:2: ( (enumLiteral_0= '*' ) | (enumLiteral_1= '0' ) | (enumLiteral_2= '?' ) | (enumLiteral_3= '+' ) | (enumLiteral_4= '1' ) )
{
// InternalDatatypeGrammar.g:11036:2: ( (enumLiteral_0= '*' ) | (enumLiteral_1= '0' ) | (enumLiteral_2= '?' ) | (enumLiteral_3= '+' ) | (enumLiteral_4= '1' ) )
int alt182=5;
switch ( input.LA(1) ) {
case 74:
{
alt182=1;
}
break;
case 144:
{
alt182=2;
}
break;
case 133:
{
alt182=3;
}
break;
case 68:
{
alt182=4;
}
break;
case 145:
{
alt182=5;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return current;}
NoViableAltException nvae =
new NoViableAltException("", 182, 0, input);
throw nvae;
}
switch (alt182) {
case 1 :
// InternalDatatypeGrammar.g:11037:3: (enumLiteral_0= '*' )
{
// InternalDatatypeGrammar.g:11037:3: (enumLiteral_0= '*' )
// InternalDatatypeGrammar.g:11038:4: enumLiteral_0= '*'
{
enumLiteral_0=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLowerBoundAccess().getMANYEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getLowerBoundAccess().getMANYEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:11045:3: (enumLiteral_1= '0' )
{
// InternalDatatypeGrammar.g:11045:3: (enumLiteral_1= '0' )
// InternalDatatypeGrammar.g:11046:4: enumLiteral_1= '0'
{
enumLiteral_1=(Token)match(input,144,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLowerBoundAccess().getZEROEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getLowerBoundAccess().getZEROEnumLiteralDeclaration_1());
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:11053:3: (enumLiteral_2= '?' )
{
// InternalDatatypeGrammar.g:11053:3: (enumLiteral_2= '?' )
// InternalDatatypeGrammar.g:11054:4: enumLiteral_2= '?'
{
enumLiteral_2=(Token)match(input,133,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLowerBoundAccess().getOPTIONALEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_2, grammarAccess.getLowerBoundAccess().getOPTIONALEnumLiteralDeclaration_2());
}
}
}
break;
case 4 :
// InternalDatatypeGrammar.g:11061:3: (enumLiteral_3= '+' )
{
// InternalDatatypeGrammar.g:11061:3: (enumLiteral_3= '+' )
// InternalDatatypeGrammar.g:11062:4: enumLiteral_3= '+'
{
enumLiteral_3=(Token)match(input,68,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLowerBoundAccess().getATLEASTONEEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_3, grammarAccess.getLowerBoundAccess().getATLEASTONEEnumLiteralDeclaration_3());
}
}
}
break;
case 5 :
// InternalDatatypeGrammar.g:11069:3: (enumLiteral_4= '1' )
{
// InternalDatatypeGrammar.g:11069:3: (enumLiteral_4= '1' )
// InternalDatatypeGrammar.g:11070:4: enumLiteral_4= '1'
{
enumLiteral_4=(Token)match(input,145,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getLowerBoundAccess().getONEEnumLiteralDeclaration_4().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_4, grammarAccess.getLowerBoundAccess().getONEEnumLiteralDeclaration_4());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLowerBound"
// $ANTLR start "ruleUpperBound"
// InternalDatatypeGrammar.g:11080:1: ruleUpperBound returns [Enumerator current=null] : ( (enumLiteral_0= '*' ) | (enumLiteral_1= '1' ) ) ;
public final Enumerator ruleUpperBound() throws RecognitionException {
Enumerator current = null;
Token enumLiteral_0=null;
Token enumLiteral_1=null;
enterRule();
try {
// InternalDatatypeGrammar.g:11086:2: ( ( (enumLiteral_0= '*' ) | (enumLiteral_1= '1' ) ) )
// InternalDatatypeGrammar.g:11087:2: ( (enumLiteral_0= '*' ) | (enumLiteral_1= '1' ) )
{
// InternalDatatypeGrammar.g:11087:2: ( (enumLiteral_0= '*' ) | (enumLiteral_1= '1' ) )
int alt183=2;
int LA183_0 = input.LA(1);
if ( (LA183_0==74) ) {
alt183=1;
}
else if ( (LA183_0==145) ) {
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 :
// InternalDatatypeGrammar.g:11088:3: (enumLiteral_0= '*' )
{
// InternalDatatypeGrammar.g:11088:3: (enumLiteral_0= '*' )
// InternalDatatypeGrammar.g:11089:4: enumLiteral_0= '*'
{
enumLiteral_0=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getUpperBoundAccess().getMANYEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_0, grammarAccess.getUpperBoundAccess().getMANYEnumLiteralDeclaration_0());
}
}
}
break;
case 2 :
// InternalDatatypeGrammar.g:11096:3: (enumLiteral_1= '1' )
{
// InternalDatatypeGrammar.g:11096:3: (enumLiteral_1= '1' )
// InternalDatatypeGrammar.g:11097:4: enumLiteral_1= '1'
{
enumLiteral_1=(Token)match(input,145,FOLLOW_2); if (state.failed) return current;
if ( state.backtracking==0 ) {
current = grammarAccess.getUpperBoundAccess().getONEEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
newLeafNode(enumLiteral_1, grammarAccess.getUpperBoundAccess().getONEEnumLiteralDeclaration_1());
}
}
}
break;
}
}
if ( state.backtracking==0 ) {
leaveRule();
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleUpperBound"
// $ANTLR start synpred2_InternalDatatypeGrammar
public final void synpred2_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:3664:5: ( ( RULE_ID ) )
// InternalDatatypeGrammar.g:3664:6: ( RULE_ID )
{
// InternalDatatypeGrammar.g:3664:6: ( RULE_ID )
// InternalDatatypeGrammar.g:3665:6: RULE_ID
{
match(input,RULE_ID,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred2_InternalDatatypeGrammar
// $ANTLR start synpred3_InternalDatatypeGrammar
public final void synpred3_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4233:5: ( '(' )
// InternalDatatypeGrammar.g:4233:6: '('
{
match(input,21,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred3_InternalDatatypeGrammar
// $ANTLR start synpred4_InternalDatatypeGrammar
public final void synpred4_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4242:7: ( ( ( ( ruleValidID ) ) '=' ) )
// InternalDatatypeGrammar.g:4242:8: ( ( ( ruleValidID ) ) '=' )
{
// InternalDatatypeGrammar.g:4242:8: ( ( ( ruleValidID ) ) '=' )
// InternalDatatypeGrammar.g:4243:8: ( ( ruleValidID ) ) '='
{
// InternalDatatypeGrammar.g:4243:8: ( ( ruleValidID ) )
// InternalDatatypeGrammar.g:4244:9: ( ruleValidID )
{
// InternalDatatypeGrammar.g:4244:9: ( ruleValidID )
// InternalDatatypeGrammar.g:4245:10: ruleValidID
{
pushFollow(FOLLOW_21);
ruleValidID();
state._fsp--;
if (state.failed) return ;
}
}
match(input,29,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred4_InternalDatatypeGrammar
// $ANTLR start synpred7_InternalDatatypeGrammar
public final void synpred7_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4422:5: ( ( () '#' '[' ) )
// InternalDatatypeGrammar.g:4422:6: ( () '#' '[' )
{
// InternalDatatypeGrammar.g:4422:6: ( () '#' '[' )
// InternalDatatypeGrammar.g:4423:6: () '#' '['
{
// InternalDatatypeGrammar.g:4423:6: ()
// InternalDatatypeGrammar.g:4424:6:
{
}
match(input,78,FOLLOW_44); if (state.failed) return ;
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred7_InternalDatatypeGrammar
// $ANTLR start synpred8_InternalDatatypeGrammar
public final void synpred8_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4564:5: ( ( () '#' '[' ) )
// InternalDatatypeGrammar.g:4564:6: ( () '#' '[' )
{
// InternalDatatypeGrammar.g:4564:6: ( () '#' '[' )
// InternalDatatypeGrammar.g:4565:6: () '#' '['
{
// InternalDatatypeGrammar.g:4565:6: ()
// InternalDatatypeGrammar.g:4566:6:
{
}
match(input,78,FOLLOW_44); if (state.failed) return ;
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred8_InternalDatatypeGrammar
// $ANTLR start synpred9_InternalDatatypeGrammar
public final void synpred9_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4792:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )
// InternalDatatypeGrammar.g:4792:7: ( () ( ( ruleOpMultiAssign ) ) )
{
// InternalDatatypeGrammar.g:4792:7: ( () ( ( ruleOpMultiAssign ) ) )
// InternalDatatypeGrammar.g:4793:7: () ( ( ruleOpMultiAssign ) )
{
// InternalDatatypeGrammar.g:4793:7: ()
// InternalDatatypeGrammar.g:4794:7:
{
}
// InternalDatatypeGrammar.g:4795:7: ( ( ruleOpMultiAssign ) )
// InternalDatatypeGrammar.g:4796:8: ( ruleOpMultiAssign )
{
// InternalDatatypeGrammar.g:4796:8: ( ruleOpMultiAssign )
// InternalDatatypeGrammar.g:4797:9: ruleOpMultiAssign
{
pushFollow(FOLLOW_2);
ruleOpMultiAssign();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred9_InternalDatatypeGrammar
// $ANTLR start synpred10_InternalDatatypeGrammar
public final void synpred10_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:4986:5: ( ( () ( ( ruleOpOr ) ) ) )
// InternalDatatypeGrammar.g:4986:6: ( () ( ( ruleOpOr ) ) )
{
// InternalDatatypeGrammar.g:4986:6: ( () ( ( ruleOpOr ) ) )
// InternalDatatypeGrammar.g:4987:6: () ( ( ruleOpOr ) )
{
// InternalDatatypeGrammar.g:4987:6: ()
// InternalDatatypeGrammar.g:4988:6:
{
}
// InternalDatatypeGrammar.g:4989:6: ( ( ruleOpOr ) )
// InternalDatatypeGrammar.g:4990:7: ( ruleOpOr )
{
// InternalDatatypeGrammar.g:4990:7: ( ruleOpOr )
// InternalDatatypeGrammar.g:4991:8: ruleOpOr
{
pushFollow(FOLLOW_2);
ruleOpOr();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred10_InternalDatatypeGrammar
// $ANTLR start synpred11_InternalDatatypeGrammar
public final void synpred11_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5093:5: ( ( () ( ( ruleOpAnd ) ) ) )
// InternalDatatypeGrammar.g:5093:6: ( () ( ( ruleOpAnd ) ) )
{
// InternalDatatypeGrammar.g:5093:6: ( () ( ( ruleOpAnd ) ) )
// InternalDatatypeGrammar.g:5094:6: () ( ( ruleOpAnd ) )
{
// InternalDatatypeGrammar.g:5094:6: ()
// InternalDatatypeGrammar.g:5095:6:
{
}
// InternalDatatypeGrammar.g:5096:6: ( ( ruleOpAnd ) )
// InternalDatatypeGrammar.g:5097:7: ( ruleOpAnd )
{
// InternalDatatypeGrammar.g:5097:7: ( ruleOpAnd )
// InternalDatatypeGrammar.g:5098:8: ruleOpAnd
{
pushFollow(FOLLOW_2);
ruleOpAnd();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred11_InternalDatatypeGrammar
// $ANTLR start synpred12_InternalDatatypeGrammar
public final void synpred12_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5200:5: ( ( () ( ( ruleOpEquality ) ) ) )
// InternalDatatypeGrammar.g:5200:6: ( () ( ( ruleOpEquality ) ) )
{
// InternalDatatypeGrammar.g:5200:6: ( () ( ( ruleOpEquality ) ) )
// InternalDatatypeGrammar.g:5201:6: () ( ( ruleOpEquality ) )
{
// InternalDatatypeGrammar.g:5201:6: ()
// InternalDatatypeGrammar.g:5202:6:
{
}
// InternalDatatypeGrammar.g:5203:6: ( ( ruleOpEquality ) )
// InternalDatatypeGrammar.g:5204:7: ( ruleOpEquality )
{
// InternalDatatypeGrammar.g:5204:7: ( ruleOpEquality )
// InternalDatatypeGrammar.g:5205:8: ruleOpEquality
{
pushFollow(FOLLOW_2);
ruleOpEquality();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred12_InternalDatatypeGrammar
// $ANTLR start synpred13_InternalDatatypeGrammar
public final void synpred13_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5328:6: ( ( () 'instanceof' ) )
// InternalDatatypeGrammar.g:5328:7: ( () 'instanceof' )
{
// InternalDatatypeGrammar.g:5328:7: ( () 'instanceof' )
// InternalDatatypeGrammar.g:5329:7: () 'instanceof'
{
// InternalDatatypeGrammar.g:5329:7: ()
// InternalDatatypeGrammar.g:5330:7:
{
}
match(input,93,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred13_InternalDatatypeGrammar
// $ANTLR start synpred14_InternalDatatypeGrammar
public final void synpred14_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5371:6: ( ( () ( ( ruleOpCompare ) ) ) )
// InternalDatatypeGrammar.g:5371:7: ( () ( ( ruleOpCompare ) ) )
{
// InternalDatatypeGrammar.g:5371:7: ( () ( ( ruleOpCompare ) ) )
// InternalDatatypeGrammar.g:5372:7: () ( ( ruleOpCompare ) )
{
// InternalDatatypeGrammar.g:5372:7: ()
// InternalDatatypeGrammar.g:5373:7:
{
}
// InternalDatatypeGrammar.g:5374:7: ( ( ruleOpCompare ) )
// InternalDatatypeGrammar.g:5375:8: ( ruleOpCompare )
{
// InternalDatatypeGrammar.g:5375:8: ( ruleOpCompare )
// InternalDatatypeGrammar.g:5376:9: ruleOpCompare
{
pushFollow(FOLLOW_2);
ruleOpCompare();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred14_InternalDatatypeGrammar
// $ANTLR start synpred15_InternalDatatypeGrammar
public final void synpred15_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5506:5: ( ( () ( ( ruleOpOther ) ) ) )
// InternalDatatypeGrammar.g:5506:6: ( () ( ( ruleOpOther ) ) )
{
// InternalDatatypeGrammar.g:5506:6: ( () ( ( ruleOpOther ) ) )
// InternalDatatypeGrammar.g:5507:6: () ( ( ruleOpOther ) )
{
// InternalDatatypeGrammar.g:5507:6: ()
// InternalDatatypeGrammar.g:5508:6:
{
}
// InternalDatatypeGrammar.g:5509:6: ( ( ruleOpOther ) )
// InternalDatatypeGrammar.g:5510:7: ( ruleOpOther )
{
// InternalDatatypeGrammar.g:5510:7: ( ruleOpOther )
// InternalDatatypeGrammar.g:5511:8: ruleOpOther
{
pushFollow(FOLLOW_2);
ruleOpOther();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred15_InternalDatatypeGrammar
// $ANTLR start synpred16_InternalDatatypeGrammar
public final void synpred16_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5626:6: ( ( '>' '>' ) )
// InternalDatatypeGrammar.g:5626:7: ( '>' '>' )
{
// InternalDatatypeGrammar.g:5626:7: ( '>' '>' )
// InternalDatatypeGrammar.g:5627:7: '>' '>'
{
match(input,85,FOLLOW_58); if (state.failed) return ;
match(input,85,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred16_InternalDatatypeGrammar
// $ANTLR start synpred17_InternalDatatypeGrammar
public final void synpred17_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5661:6: ( ( '<' '<' ) )
// InternalDatatypeGrammar.g:5661:7: ( '<' '<' )
{
// InternalDatatypeGrammar.g:5661:7: ( '<' '<' )
// InternalDatatypeGrammar.g:5662:7: '<' '<'
{
match(input,84,FOLLOW_49); if (state.failed) return ;
match(input,84,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred17_InternalDatatypeGrammar
// $ANTLR start synpred18_InternalDatatypeGrammar
public final void synpred18_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5734:5: ( ( () ( ( ruleOpAdd ) ) ) )
// InternalDatatypeGrammar.g:5734:6: ( () ( ( ruleOpAdd ) ) )
{
// InternalDatatypeGrammar.g:5734:6: ( () ( ( ruleOpAdd ) ) )
// InternalDatatypeGrammar.g:5735:6: () ( ( ruleOpAdd ) )
{
// InternalDatatypeGrammar.g:5735:6: ()
// InternalDatatypeGrammar.g:5736:6:
{
}
// InternalDatatypeGrammar.g:5737:6: ( ( ruleOpAdd ) )
// InternalDatatypeGrammar.g:5738:7: ( ruleOpAdd )
{
// InternalDatatypeGrammar.g:5738:7: ( ruleOpAdd )
// InternalDatatypeGrammar.g:5739:8: ruleOpAdd
{
pushFollow(FOLLOW_2);
ruleOpAdd();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred18_InternalDatatypeGrammar
// $ANTLR start synpred19_InternalDatatypeGrammar
public final void synpred19_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:5849:5: ( ( () ( ( ruleOpMulti ) ) ) )
// InternalDatatypeGrammar.g:5849:6: ( () ( ( ruleOpMulti ) ) )
{
// InternalDatatypeGrammar.g:5849:6: ( () ( ( ruleOpMulti ) ) )
// InternalDatatypeGrammar.g:5850:6: () ( ( ruleOpMulti ) )
{
// InternalDatatypeGrammar.g:5850:6: ()
// InternalDatatypeGrammar.g:5851:6:
{
}
// InternalDatatypeGrammar.g:5852:6: ( ( ruleOpMulti ) )
// InternalDatatypeGrammar.g:5853:7: ( ruleOpMulti )
{
// InternalDatatypeGrammar.g:5853:7: ( ruleOpMulti )
// InternalDatatypeGrammar.g:5854:8: ruleOpMulti
{
pushFollow(FOLLOW_2);
ruleOpMulti();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred19_InternalDatatypeGrammar
// $ANTLR start synpred20_InternalDatatypeGrammar
public final void synpred20_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6084:5: ( ( () 'as' ) )
// InternalDatatypeGrammar.g:6084:6: ( () 'as' )
{
// InternalDatatypeGrammar.g:6084:6: ( () 'as' )
// InternalDatatypeGrammar.g:6085:6: () 'as'
{
// InternalDatatypeGrammar.g:6085:6: ()
// InternalDatatypeGrammar.g:6086:6:
{
}
match(input,104,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred20_InternalDatatypeGrammar
// $ANTLR start synpred21_InternalDatatypeGrammar
public final void synpred21_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6152:4: ( ( () ( ( ruleOpPostfix ) ) ) )
// InternalDatatypeGrammar.g:6152:5: ( () ( ( ruleOpPostfix ) ) )
{
// InternalDatatypeGrammar.g:6152:5: ( () ( ( ruleOpPostfix ) ) )
// InternalDatatypeGrammar.g:6153:5: () ( ( ruleOpPostfix ) )
{
// InternalDatatypeGrammar.g:6153:5: ()
// InternalDatatypeGrammar.g:6154:5:
{
}
// InternalDatatypeGrammar.g:6155:5: ( ( ruleOpPostfix ) )
// InternalDatatypeGrammar.g:6156:6: ( ruleOpPostfix )
{
// InternalDatatypeGrammar.g:6156:6: ( ruleOpPostfix )
// InternalDatatypeGrammar.g:6157:7: ruleOpPostfix
{
pushFollow(FOLLOW_2);
ruleOpPostfix();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred21_InternalDatatypeGrammar
// $ANTLR start synpred22_InternalDatatypeGrammar
public final void synpred22_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6248:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )
// InternalDatatypeGrammar.g:6248:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )
{
// InternalDatatypeGrammar.g:6248:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign )
// InternalDatatypeGrammar.g:6249:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign
{
// InternalDatatypeGrammar.g:6249:7: ()
// InternalDatatypeGrammar.g:6250:7:
{
}
// InternalDatatypeGrammar.g:6251:7: ( '.' | ( ( '::' ) ) )
int alt184=2;
int LA184_0 = input.LA(1);
if ( (LA184_0==70) ) {
alt184=1;
}
else if ( (LA184_0==107) ) {
alt184=2;
}
else {
if (state.backtracking>0) {state.failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("", 184, 0, input);
throw nvae;
}
switch (alt184) {
case 1 :
// InternalDatatypeGrammar.g:6252:8: '.'
{
match(input,70,FOLLOW_65); if (state.failed) return ;
}
break;
case 2 :
// InternalDatatypeGrammar.g:6254:8: ( ( '::' ) )
{
// InternalDatatypeGrammar.g:6254:8: ( ( '::' ) )
// InternalDatatypeGrammar.g:6255:9: ( '::' )
{
// InternalDatatypeGrammar.g:6255:9: ( '::' )
// InternalDatatypeGrammar.g:6256:10: '::'
{
match(input,107,FOLLOW_65); if (state.failed) return ;
}
}
}
break;
}
// InternalDatatypeGrammar.g:6260:7: ( ( ruleFeatureCallID ) )
// InternalDatatypeGrammar.g:6261:8: ( ruleFeatureCallID )
{
// InternalDatatypeGrammar.g:6261:8: ( ruleFeatureCallID )
// InternalDatatypeGrammar.g:6262:9: ruleFeatureCallID
{
pushFollow(FOLLOW_21);
ruleFeatureCallID();
state._fsp--;
if (state.failed) return ;
}
}
pushFollow(FOLLOW_2);
ruleOpSingleAssign();
state._fsp--;
if (state.failed) return ;
}
}
}
// $ANTLR end synpred22_InternalDatatypeGrammar
// $ANTLR start synpred23_InternalDatatypeGrammar
public final void synpred23_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6345:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )
// InternalDatatypeGrammar.g:6345:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) )
{
// InternalDatatypeGrammar.g:6345:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) )
// InternalDatatypeGrammar.g:6346:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) )
{
// InternalDatatypeGrammar.g:6346:7: ()
// InternalDatatypeGrammar.g:6347:7:
{
}
// InternalDatatypeGrammar.g:6348:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) )
int alt185=3;
switch ( input.LA(1) ) {
case 70:
{
alt185=1;
}
break;
case 108:
{
alt185=2;
}
break;
case 107:
{
alt185=3;
}
break;
default:
if (state.backtracking>0) {state.failed=true; return ;}
NoViableAltException nvae =
new NoViableAltException("", 185, 0, input);
throw nvae;
}
switch (alt185) {
case 1 :
// InternalDatatypeGrammar.g:6349:8: '.'
{
match(input,70,FOLLOW_2); if (state.failed) return ;
}
break;
case 2 :
// InternalDatatypeGrammar.g:6351:8: ( ( '?.' ) )
{
// InternalDatatypeGrammar.g:6351:8: ( ( '?.' ) )
// InternalDatatypeGrammar.g:6352:9: ( '?.' )
{
// InternalDatatypeGrammar.g:6352:9: ( '?.' )
// InternalDatatypeGrammar.g:6353:10: '?.'
{
match(input,108,FOLLOW_2); if (state.failed) return ;
}
}
}
break;
case 3 :
// InternalDatatypeGrammar.g:6357:8: ( ( '::' ) )
{
// InternalDatatypeGrammar.g:6357:8: ( ( '::' ) )
// InternalDatatypeGrammar.g:6358:9: ( '::' )
{
// InternalDatatypeGrammar.g:6358:9: ( '::' )
// InternalDatatypeGrammar.g:6359:10: '::'
{
match(input,107,FOLLOW_2); if (state.failed) return ;
}
}
}
break;
}
}
}
}
// $ANTLR end synpred23_InternalDatatypeGrammar
// $ANTLR start synpred24_InternalDatatypeGrammar
public final void synpred24_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6483:7: ( ( '(' ) )
// InternalDatatypeGrammar.g:6483:8: ( '(' )
{
// InternalDatatypeGrammar.g:6483:8: ( '(' )
// InternalDatatypeGrammar.g:6484:8: '('
{
match(input,21,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred24_InternalDatatypeGrammar
// $ANTLR start synpred25_InternalDatatypeGrammar
public final void synpred25_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6502:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalDatatypeGrammar.g:6502:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
{
// InternalDatatypeGrammar.g:6502:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
// InternalDatatypeGrammar.g:6503:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )
{
// InternalDatatypeGrammar.g:6503:9: ()
// InternalDatatypeGrammar.g:6504:9:
{
}
// InternalDatatypeGrammar.g:6505:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?
int alt187=2;
int LA187_0 = input.LA(1);
if ( (LA187_0==RULE_ID||LA187_0==21||LA187_0==97) ) {
alt187=1;
}
switch (alt187) {
case 1 :
// InternalDatatypeGrammar.g:6506:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:6506:10: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:6507:11: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:6507:11: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:6508:12: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
// InternalDatatypeGrammar.g:6511:10: ( ',' ( ( ruleJvmFormalParameter ) ) )*
loop186:
do {
int alt186=2;
int LA186_0 = input.LA(1);
if ( (LA186_0==22) ) {
alt186=1;
}
switch (alt186) {
case 1 :
// InternalDatatypeGrammar.g:6512:11: ',' ( ( ruleJvmFormalParameter ) )
{
match(input,22,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:6513:11: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:6514:12: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:6514:12: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:6515:13: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
}
break;
default :
break loop186;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:6520:9: ( ( '|' ) )
// InternalDatatypeGrammar.g:6521:10: ( '|' )
{
// InternalDatatypeGrammar.g:6521:10: ( '|' )
// InternalDatatypeGrammar.g:6522:11: '|'
{
match(input,109,FOLLOW_2); if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred25_InternalDatatypeGrammar
// $ANTLR start synpred26_InternalDatatypeGrammar
public final void synpred26_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6599:6: ( ( () '[' ) )
// InternalDatatypeGrammar.g:6599:7: ( () '[' )
{
// InternalDatatypeGrammar.g:6599:7: ( () '[' )
// InternalDatatypeGrammar.g:6600:7: () '['
{
// InternalDatatypeGrammar.g:6600:7: ()
// InternalDatatypeGrammar.g:6601:7:
{
}
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred26_InternalDatatypeGrammar
// $ANTLR start synpred27_InternalDatatypeGrammar
public final void synpred27_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6672:4: ( ( () 'synchronized' '(' ) )
// InternalDatatypeGrammar.g:6672:5: ( () 'synchronized' '(' )
{
// InternalDatatypeGrammar.g:6672:5: ( () 'synchronized' '(' )
// InternalDatatypeGrammar.g:6673:5: () 'synchronized' '('
{
// InternalDatatypeGrammar.g:6673:5: ()
// InternalDatatypeGrammar.g:6674:5:
{
}
match(input,131,FOLLOW_13); if (state.failed) return ;
match(input,21,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred27_InternalDatatypeGrammar
// $ANTLR start synpred28_InternalDatatypeGrammar
public final void synpred28_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6717:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )
// InternalDatatypeGrammar.g:6717:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' )
{
// InternalDatatypeGrammar.g:6717:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' )
// InternalDatatypeGrammar.g:6718:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':'
{
// InternalDatatypeGrammar.g:6718:5: ()
// InternalDatatypeGrammar.g:6719:5:
{
}
match(input,116,FOLLOW_13); if (state.failed) return ;
match(input,21,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:6722:5: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:6723:6: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:6723:6: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:6724:7: ruleJvmFormalParameter
{
pushFollow(FOLLOW_81);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
match(input,113,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred28_InternalDatatypeGrammar
// $ANTLR start synpred29_InternalDatatypeGrammar
public final void synpred29_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:6831:4: ( ( () '[' ) )
// InternalDatatypeGrammar.g:6831:5: ( () '[' )
{
// InternalDatatypeGrammar.g:6831:5: ( () '[' )
// InternalDatatypeGrammar.g:6832:5: () '['
{
// InternalDatatypeGrammar.g:6832:5: ()
// InternalDatatypeGrammar.g:6833:5:
{
}
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred29_InternalDatatypeGrammar
// $ANTLR start synpred31_InternalDatatypeGrammar
public final void synpred31_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:7136:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalDatatypeGrammar.g:7136:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
{
// InternalDatatypeGrammar.g:7136:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
// InternalDatatypeGrammar.g:7137:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )
{
// InternalDatatypeGrammar.g:7137:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?
int alt189=2;
int LA189_0 = input.LA(1);
if ( (LA189_0==RULE_ID||LA189_0==21||LA189_0==97) ) {
alt189=1;
}
switch (alt189) {
case 1 :
// InternalDatatypeGrammar.g:7138:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:7138:6: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7139:7: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7139:7: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7140:8: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
// InternalDatatypeGrammar.g:7143:6: ( ',' ( ( ruleJvmFormalParameter ) ) )*
loop188:
do {
int alt188=2;
int LA188_0 = input.LA(1);
if ( (LA188_0==22) ) {
alt188=1;
}
switch (alt188) {
case 1 :
// InternalDatatypeGrammar.g:7144:7: ',' ( ( ruleJvmFormalParameter ) )
{
match(input,22,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:7145:7: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7146:8: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7146:8: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7147:9: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
}
break;
default :
break loop188;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:7152:5: ( ( '|' ) )
// InternalDatatypeGrammar.g:7153:6: ( '|' )
{
// InternalDatatypeGrammar.g:7153:6: ( '|' )
// InternalDatatypeGrammar.g:7154:7: '|'
{
match(input,109,FOLLOW_2); if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred31_InternalDatatypeGrammar
// $ANTLR start synpred33_InternalDatatypeGrammar
public final void synpred33_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:7545:5: ( 'else' )
// InternalDatatypeGrammar.g:7545:6: 'else'
{
match(input,111,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred33_InternalDatatypeGrammar
// $ANTLR start synpred34_InternalDatatypeGrammar
public final void synpred34_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:7604:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )
// InternalDatatypeGrammar.g:7604:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' )
{
// InternalDatatypeGrammar.g:7604:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' )
// InternalDatatypeGrammar.g:7605:7: '(' ( ( ruleJvmFormalParameter ) ) ':'
{
match(input,21,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:7606:7: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7607:8: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7607:8: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7608:9: ruleJvmFormalParameter
{
pushFollow(FOLLOW_81);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
match(input,113,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred34_InternalDatatypeGrammar
// $ANTLR start synpred35_InternalDatatypeGrammar
public final void synpred35_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:7671:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )
// InternalDatatypeGrammar.g:7671:7: ( ( ( ruleJvmFormalParameter ) ) ':' )
{
// InternalDatatypeGrammar.g:7671:7: ( ( ( ruleJvmFormalParameter ) ) ':' )
// InternalDatatypeGrammar.g:7672:7: ( ( ruleJvmFormalParameter ) ) ':'
{
// InternalDatatypeGrammar.g:7672:7: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:7673:8: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:7673:8: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:7674:9: ruleJvmFormalParameter
{
pushFollow(FOLLOW_81);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
match(input,113,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred35_InternalDatatypeGrammar
// $ANTLR start synpred37_InternalDatatypeGrammar
public final void synpred37_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:8489:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )
// InternalDatatypeGrammar.g:8489:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) )
{
// InternalDatatypeGrammar.g:8489:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) )
// InternalDatatypeGrammar.g:8490:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) )
{
// InternalDatatypeGrammar.g:8490:6: ( ( ruleJvmTypeReference ) )
// InternalDatatypeGrammar.g:8491:7: ( ruleJvmTypeReference )
{
// InternalDatatypeGrammar.g:8491:7: ( ruleJvmTypeReference )
// InternalDatatypeGrammar.g:8492:8: ruleJvmTypeReference
{
pushFollow(FOLLOW_4);
ruleJvmTypeReference();
state._fsp--;
if (state.failed) return ;
}
}
// InternalDatatypeGrammar.g:8495:6: ( ( ruleValidID ) )
// InternalDatatypeGrammar.g:8496:7: ( ruleValidID )
{
// InternalDatatypeGrammar.g:8496:7: ( ruleValidID )
// InternalDatatypeGrammar.g:8497:8: ruleValidID
{
pushFollow(FOLLOW_2);
ruleValidID();
state._fsp--;
if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred37_InternalDatatypeGrammar
// $ANTLR start synpred38_InternalDatatypeGrammar
public final void synpred38_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:8801:5: ( ( '(' ) )
// InternalDatatypeGrammar.g:8801:6: ( '(' )
{
// InternalDatatypeGrammar.g:8801:6: ( '(' )
// InternalDatatypeGrammar.g:8802:6: '('
{
match(input,21,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred38_InternalDatatypeGrammar
// $ANTLR start synpred39_InternalDatatypeGrammar
public final void synpred39_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:8820:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalDatatypeGrammar.g:8820:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
{
// InternalDatatypeGrammar.g:8820:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
// InternalDatatypeGrammar.g:8821:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )
{
// InternalDatatypeGrammar.g:8821:7: ()
// InternalDatatypeGrammar.g:8822:7:
{
}
// InternalDatatypeGrammar.g:8823:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?
int alt193=2;
int LA193_0 = input.LA(1);
if ( (LA193_0==RULE_ID||LA193_0==21||LA193_0==97) ) {
alt193=1;
}
switch (alt193) {
case 1 :
// InternalDatatypeGrammar.g:8824:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:8824:8: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:8825:9: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:8825:9: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:8826:10: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
// InternalDatatypeGrammar.g:8829:8: ( ',' ( ( ruleJvmFormalParameter ) ) )*
loop192:
do {
int alt192=2;
int LA192_0 = input.LA(1);
if ( (LA192_0==22) ) {
alt192=1;
}
switch (alt192) {
case 1 :
// InternalDatatypeGrammar.g:8830:9: ',' ( ( ruleJvmFormalParameter ) )
{
match(input,22,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:8831:9: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:8832:10: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:8832:10: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:8833:11: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
}
break;
default :
break loop192;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:8838:7: ( ( '|' ) )
// InternalDatatypeGrammar.g:8839:8: ( '|' )
{
// InternalDatatypeGrammar.g:8839:8: ( '|' )
// InternalDatatypeGrammar.g:8840:9: '|'
{
match(input,109,FOLLOW_2); if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred39_InternalDatatypeGrammar
// $ANTLR start synpred40_InternalDatatypeGrammar
public final void synpred40_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:8917:4: ( ( () '[' ) )
// InternalDatatypeGrammar.g:8917:5: ( () '[' )
{
// InternalDatatypeGrammar.g:8917:5: ( () '[' )
// InternalDatatypeGrammar.g:8918:5: () '['
{
// InternalDatatypeGrammar.g:8918:5: ()
// InternalDatatypeGrammar.g:8919:5:
{
}
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred40_InternalDatatypeGrammar
// $ANTLR start synpred41_InternalDatatypeGrammar
public final void synpred41_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9077:5: ( '<' )
// InternalDatatypeGrammar.g:9077:6: '<'
{
match(input,84,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred41_InternalDatatypeGrammar
// $ANTLR start synpred42_InternalDatatypeGrammar
public final void synpred42_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9134:5: ( ( '(' ) )
// InternalDatatypeGrammar.g:9134:6: ( '(' )
{
// InternalDatatypeGrammar.g:9134:6: ( '(' )
// InternalDatatypeGrammar.g:9135:6: '('
{
match(input,21,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred42_InternalDatatypeGrammar
// $ANTLR start synpred43_InternalDatatypeGrammar
public final void synpred43_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9153:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )
// InternalDatatypeGrammar.g:9153:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
{
// InternalDatatypeGrammar.g:9153:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) )
// InternalDatatypeGrammar.g:9154:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) )
{
// InternalDatatypeGrammar.g:9154:7: ()
// InternalDatatypeGrammar.g:9155:7:
{
}
// InternalDatatypeGrammar.g:9156:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )?
int alt195=2;
int LA195_0 = input.LA(1);
if ( (LA195_0==RULE_ID||LA195_0==21||LA195_0==97) ) {
alt195=1;
}
switch (alt195) {
case 1 :
// InternalDatatypeGrammar.g:9157:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )*
{
// InternalDatatypeGrammar.g:9157:8: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:9158:9: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:9158:9: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:9159:10: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
// InternalDatatypeGrammar.g:9162:8: ( ',' ( ( ruleJvmFormalParameter ) ) )*
loop194:
do {
int alt194=2;
int LA194_0 = input.LA(1);
if ( (LA194_0==22) ) {
alt194=1;
}
switch (alt194) {
case 1 :
// InternalDatatypeGrammar.g:9163:9: ',' ( ( ruleJvmFormalParameter ) )
{
match(input,22,FOLLOW_10); if (state.failed) return ;
// InternalDatatypeGrammar.g:9164:9: ( ( ruleJvmFormalParameter ) )
// InternalDatatypeGrammar.g:9165:10: ( ruleJvmFormalParameter )
{
// InternalDatatypeGrammar.g:9165:10: ( ruleJvmFormalParameter )
// InternalDatatypeGrammar.g:9166:11: ruleJvmFormalParameter
{
pushFollow(FOLLOW_74);
ruleJvmFormalParameter();
state._fsp--;
if (state.failed) return ;
}
}
}
break;
default :
break loop194;
}
} while (true);
}
break;
}
// InternalDatatypeGrammar.g:9171:7: ( ( '|' ) )
// InternalDatatypeGrammar.g:9172:8: ( '|' )
{
// InternalDatatypeGrammar.g:9172:8: ( '|' )
// InternalDatatypeGrammar.g:9173:9: '|'
{
match(input,109,FOLLOW_2); if (state.failed) return ;
}
}
}
}
}
// $ANTLR end synpred43_InternalDatatypeGrammar
// $ANTLR start synpred44_InternalDatatypeGrammar
public final void synpred44_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9250:4: ( ( () '[' ) )
// InternalDatatypeGrammar.g:9250:5: ( () '[' )
{
// InternalDatatypeGrammar.g:9250:5: ( () '[' )
// InternalDatatypeGrammar.g:9251:5: () '['
{
// InternalDatatypeGrammar.g:9251:5: ()
// InternalDatatypeGrammar.g:9252:5:
{
}
match(input,27,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred44_InternalDatatypeGrammar
// $ANTLR start synpred45_InternalDatatypeGrammar
public final void synpred45_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9593: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 )
// InternalDatatypeGrammar.g:
{
if ( (input.LA(1)>=RULE_INT && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==14||input.LA(1)==21||input.LA(1)==27||(input.LA(1)>=68 && input.LA(1)<=69)||(input.LA(1)>=71 && input.LA(1)<=73)||input.LA(1)==78||input.LA(1)==84||input.LA(1)==103||input.LA(1)==110||input.LA(1)==112||(input.LA(1)>=116 && input.LA(1)<=118)||(input.LA(1)>=120 && input.LA(1)<=129)||input.LA(1)==131 ) {
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 synpred45_InternalDatatypeGrammar
// $ANTLR start synpred46_InternalDatatypeGrammar
public final void synpred46_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9664:6: ( 'catch' )
// InternalDatatypeGrammar.g:9664:7: 'catch'
{
match(input,132,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred46_InternalDatatypeGrammar
// $ANTLR start synpred47_InternalDatatypeGrammar
public final void synpred47_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9685:7: ( 'finally' )
// InternalDatatypeGrammar.g:9685:8: 'finally'
{
match(input,130,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred47_InternalDatatypeGrammar
// $ANTLR start synpred50_InternalDatatypeGrammar
public final void synpred50_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:9929:5: ( '.' )
// InternalDatatypeGrammar.g:9929:6: '.'
{
match(input,70,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred50_InternalDatatypeGrammar
// $ANTLR start synpred51_InternalDatatypeGrammar
public final void synpred51_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:10055:5: ( ( () ruleArrayBrackets ) )
// InternalDatatypeGrammar.g:10055:6: ( () ruleArrayBrackets )
{
// InternalDatatypeGrammar.g:10055:6: ( () ruleArrayBrackets )
// InternalDatatypeGrammar.g:10056:6: () ruleArrayBrackets
{
// InternalDatatypeGrammar.g:10056:6: ()
// InternalDatatypeGrammar.g:10057:6:
{
}
pushFollow(FOLLOW_2);
ruleArrayBrackets();
state._fsp--;
if (state.failed) return ;
}
}
}
// $ANTLR end synpred51_InternalDatatypeGrammar
// $ANTLR start synpred52_InternalDatatypeGrammar
public final void synpred52_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:10252:5: ( '<' )
// InternalDatatypeGrammar.g:10252:6: '<'
{
match(input,84,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred52_InternalDatatypeGrammar
// $ANTLR start synpred53_InternalDatatypeGrammar
public final void synpred53_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:10308:6: ( ( () '.' ) )
// InternalDatatypeGrammar.g:10308:7: ( () '.' )
{
// InternalDatatypeGrammar.g:10308:7: ( () '.' )
// InternalDatatypeGrammar.g:10309:7: () '.'
{
// InternalDatatypeGrammar.g:10309:7: ()
// InternalDatatypeGrammar.g:10310:7:
{
}
match(input,70,FOLLOW_2); if (state.failed) return ;
}
}
}
// $ANTLR end synpred53_InternalDatatypeGrammar
// $ANTLR start synpred54_InternalDatatypeGrammar
public final void synpred54_InternalDatatypeGrammar_fragment() throws RecognitionException {
// InternalDatatypeGrammar.g:10346:7: ( '<' )
// InternalDatatypeGrammar.g:10346:8: '<'
{
match(input,84,FOLLOW_2); if (state.failed) return ;
}
}
// $ANTLR end synpred54_InternalDatatypeGrammar
// Delegated rules
public final boolean synpred13_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred13_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred42_InternalDatatypeGrammar_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 synpred4_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred4_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred17_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred52_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred22_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred45_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred8_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred26_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred37_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred33_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred14_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred18_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred41_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred23_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred51_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred9_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred27_InternalDatatypeGrammar_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 synpred46_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred46_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred38_InternalDatatypeGrammar_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 synpred34_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred34_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred15_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred2_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred21_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred40_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred19_InternalDatatypeGrammar_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 synpred54_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred54_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred24_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred31_InternalDatatypeGrammar_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 synpred28_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred28_InternalDatatypeGrammar_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 synpred47_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred47_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred50_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred10_InternalDatatypeGrammar_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 synpred12_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred12_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred35_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred39_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred43_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred16_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred20_InternalDatatypeGrammar_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 synpred3_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred3_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred25_InternalDatatypeGrammar_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 synpred53_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred53_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred29_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred44_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred7_InternalDatatypeGrammar_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_InternalDatatypeGrammar() {
state.backtracking++;
int start = input.mark();
try {
synpred11_InternalDatatypeGrammar_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 DFA57 dfa57 = new DFA57(this);
protected DFA60 dfa60 = new DFA60(this);
protected DFA66 dfa66 = new DFA66(this);
protected DFA69 dfa69 = new DFA69(this);
protected DFA71 dfa71 = new DFA71(this);
protected DFA81 dfa81 = new DFA81(this);
protected DFA84 dfa84 = new DFA84(this);
protected DFA100 dfa100 = new DFA100(this);
protected DFA99 dfa99 = new DFA99(this);
protected DFA101 dfa101 = new DFA101(this);
protected DFA103 dfa103 = new DFA103(this);
protected DFA112 dfa112 = new DFA112(this);
protected DFA119 dfa119 = new DFA119(this);
protected DFA118 dfa118 = new DFA118(this);
protected DFA141 dfa141 = new DFA141(this);
protected DFA140 dfa140 = new DFA140(this);
protected DFA142 dfa142 = new DFA142(this);
protected DFA146 dfa146 = new DFA146(this);
protected DFA149 dfa149 = new DFA149(this);
protected DFA148 dfa148 = new DFA148(this);
protected DFA150 dfa150 = new DFA150(this);
protected DFA153 dfa153 = new DFA153(this);
protected DFA171 dfa171 = new DFA171(this);
protected DFA169 dfa169 = new DFA169(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\6\1\uffff\1\15\1\uffff\1\6\1\uffff\1\15\1\uffff";
static final String dfa_4s = "\1\113\1\uffff\1\114\1\uffff\1\112\1\uffff\1\114\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\101\uffff\1\1\2\uffff\1\3",
"",
"\1\5\70\uffff\1\4\1\5\4\uffff\1\5",
"",
"\1\6\103\uffff\1\7",
"",
"\1\5\70\uffff\1\4\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 DFA57 extends DFA {
public DFA57(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 57;
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 "4022: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\u0083\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 = {
"\2\2\1\1\2\2\5\uffff\1\2\6\uffff\1\2\1\uffff\1\42\3\uffff\1\2\50\uffff\2\2\1\uffff\3\2\3\uffff\2\2\5\uffff\1\2\22\uffff\1\2\6\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 DFA60 extends DFA {
public DFA60(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 60;
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 "4239: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 LA60_1 = input.LA(1);
int index60_1 = input.index();
input.rewind();
s = -1;
if ( (synpred4_InternalDatatypeGrammar()) ) {s = 35;}
else if ( (true) ) {s = 2;}
input.seek(index60_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 60, _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\u0083\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\6\uffff\1\2\5\uffff\1\2\50\uffff\2\2\1\uffff\3\2\3\uffff\1\2\1\1\5\uffff\1\2\22\uffff\1\2\6\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 DFA66 extends DFA {
public DFA66(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 66;
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 "4419: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 LA66_1 = input.LA(1);
int index66_1 = input.index();
input.rewind();
s = -1;
if ( (synpred7_InternalDatatypeGrammar()) ) {s = 34;}
else if ( (true) ) {s = 2;}
input.seek(index66_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 66, _s, input);
error(nvae);
throw nvae;
}
}
class DFA69 extends DFA {
public DFA69(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 69;
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 "4561: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 LA69_1 = input.LA(1);
int index69_1 = input.index();
input.rewind();
s = -1;
if ( (synpred8_InternalDatatypeGrammar()) ) {s = 34;}
else if ( (true) ) {s = 2;}
input.seek(index69_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 69, _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\u0084\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\5\uffff\3\10\3\uffff\1\10\4\uffff\1\10\42\uffff\10\10\1\uffff\1\10\1\uffff\1\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 DFA71 extends DFA {
public DFA71(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 71;
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 "4790: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 LA71_1 = input.LA(1);
int index71_1 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_1);
if ( s>=0 ) return s;
break;
case 1 :
int LA71_2 = input.LA(1);
int index71_2 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_2);
if ( s>=0 ) return s;
break;
case 2 :
int LA71_3 = input.LA(1);
int index71_3 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_3);
if ( s>=0 ) return s;
break;
case 3 :
int LA71_4 = input.LA(1);
int index71_4 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_4);
if ( s>=0 ) return s;
break;
case 4 :
int LA71_5 = input.LA(1);
int index71_5 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_5);
if ( s>=0 ) return s;
break;
case 5 :
int LA71_6 = input.LA(1);
int index71_6 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_6);
if ( s>=0 ) return s;
break;
case 6 :
int LA71_7 = input.LA(1);
int index71_7 = input.index();
input.rewind();
s = -1;
if ( (synpred9_InternalDatatypeGrammar()) ) {s = 9;}
else if ( (true) ) {s = 8;}
input.seek(index71_7);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 71, _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\u0084\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\4\1\3\1\6\1\7\1\5\1\0\1\1\1\2\1\uffff}>";
static final String[] dfa_33s = {
"\5\1\5\uffff\2\1\5\uffff\3\1\3\uffff\1\1\4\uffff\1\1\42\uffff\10\1\1\uffff\1\1\1\uffff\6\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 DFA81 extends DFA {
public DFA81(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 81;
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 5504: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 LA81_7 = input.LA(1);
int index81_7 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_7);
if ( s>=0 ) return s;
break;
case 1 :
int LA81_8 = input.LA(1);
int index81_8 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_8);
if ( s>=0 ) return s;
break;
case 2 :
int LA81_9 = input.LA(1);
int index81_9 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_9);
if ( s>=0 ) return s;
break;
case 3 :
int LA81_3 = input.LA(1);
int index81_3 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_3);
if ( s>=0 ) return s;
break;
case 4 :
int LA81_2 = input.LA(1);
int index81_2 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_2);
if ( s>=0 ) return s;
break;
case 5 :
int LA81_6 = input.LA(1);
int index81_6 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_6);
if ( s>=0 ) return s;
break;
case 6 :
int LA81_4 = input.LA(1);
int index81_4 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_4);
if ( s>=0 ) return s;
break;
case 7 :
int LA81_5 = input.LA(1);
int index81_5 = input.index();
input.rewind();
s = -1;
if ( (synpred15_InternalDatatypeGrammar()) ) {s = 10;}
else if ( (true) ) {s = 1;}
input.seek(index81_5);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 81, _s, input);
error(nvae);
throw nvae;
}
}
static final String dfa_34s = "\1\124\2\uffff\1\125\7\uffff";
static final String dfa_35s = "\1\143\2\uffff\1\140\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 DFA84 extends DFA {
public DFA84(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 84;
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 "5580: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\u0084\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\5\uffff\1\1\2\2\3\uffff\1\2\4\uffff\1\2\42\uffff\10\2\1\uffff\1\2\1\uffff\37\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 DFA100 extends DFA {
public DFA100(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 100;
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 "6481: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 LA100_1 = input.LA(1);
int index100_1 = input.index();
input.rewind();
s = -1;
if ( (synpred24_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index100_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 100, _s, input);
error(nvae);
throw nvae;
}
}
static final String dfa_46s = "\1\4\2\0\41\uffff";
static final String dfa_47s = "\1\u0083\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 = {
"\2\5\1\1\2\5\5\uffff\1\5\6\uffff\1\2\1\uffff\1\43\3\uffff\1\5\50\uffff\2\5\1\uffff\3\5\4\uffff\1\5\5\uffff\1\5\14\uffff\1\3\5\uffff\1\5\5\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 DFA99 extends DFA {
public DFA99(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 99;
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 "6500: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 LA99_0 = input.LA(1);
int index99_0 = input.index();
input.rewind();
s = -1;
if ( (LA99_0==RULE_ID) ) {s = 1;}
else if ( (LA99_0==21) ) {s = 2;}
else if ( (LA99_0==97) && (synpred25_InternalDatatypeGrammar())) {s = 3;}
else if ( (LA99_0==109) && (synpred25_InternalDatatypeGrammar())) {s = 4;}
else if ( ((LA99_0>=RULE_INT && LA99_0<=RULE_STRING)||(LA99_0>=RULE_HEX && LA99_0<=RULE_DECIMAL)||LA99_0==14||LA99_0==27||(LA99_0>=68 && LA99_0<=69)||(LA99_0>=71 && LA99_0<=73)||LA99_0==78||LA99_0==84||LA99_0==103||LA99_0==110||LA99_0==112||(LA99_0>=116 && LA99_0<=118)||(LA99_0>=120 && LA99_0<=129)||LA99_0==131) ) {s = 5;}
else if ( (LA99_0==23) ) {s = 35;}
input.seek(index99_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA99_1 = input.LA(1);
int index99_1 = input.index();
input.rewind();
s = -1;
if ( (synpred25_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index99_1);
if ( s>=0 ) return s;
break;
case 2 :
int LA99_2 = input.LA(1);
int index99_2 = input.index();
input.rewind();
s = -1;
if ( (synpred25_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index99_2);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 99, _s, input);
error(nvae);
throw nvae;
}
}
static final String[] dfa_51s = {
"\5\2\5\uffff\2\2\5\uffff\3\2\3\uffff\1\1\4\uffff\1\2\42\uffff\10\2\1\uffff\1\2\1\uffff\37\2\1\uffff\27\2",
"\1\uffff",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
};
static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s);
class DFA101 extends DFA {
public DFA101(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 101;
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 "6598: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 LA101_1 = input.LA(1);
int index101_1 = input.index();
input.rewind();
s = -1;
if ( (synpred26_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index101_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 101, _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\u0083\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 = {
"\2\14\1\5\2\14\5\uffff\1\2\6\uffff\1\35\5\uffff\1\14\53\uffff\3\5\4\uffff\1\14\5\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 DFA103 extends DFA {
public DFA103(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 103;
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 "6643: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 LA103_0 = input.LA(1);
int index103_0 = input.index();
input.rewind();
s = -1;
if ( (LA103_0==122) ) {s = 1;}
else if ( (LA103_0==14) ) {s = 2;}
else if ( (LA103_0==112) ) {s = 3;}
else if ( (LA103_0==131) && (synpred27_InternalDatatypeGrammar())) {s = 4;}
else if ( (LA103_0==RULE_ID||(LA103_0>=71 && LA103_0<=73)||LA103_0==84||(LA103_0>=120 && LA103_0<=121)) ) {s = 5;}
else if ( ((LA103_0>=RULE_INT && LA103_0<=RULE_STRING)||(LA103_0>=RULE_HEX && LA103_0<=RULE_DECIMAL)||LA103_0==27||LA103_0==78||(LA103_0>=123 && LA103_0<=126)) ) {s = 12;}
else if ( (LA103_0==110) ) {s = 22;}
else if ( (LA103_0==116) ) {s = 23;}
else if ( (LA103_0==117) ) {s = 24;}
else if ( (LA103_0==118) ) {s = 25;}
else if ( (LA103_0==127) ) {s = 26;}
else if ( (LA103_0==128) ) {s = 27;}
else if ( (LA103_0==129) ) {s = 28;}
else if ( (LA103_0==21) ) {s = 29;}
input.seek(index103_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA103_23 = input.LA(1);
int index103_23 = input.index();
input.rewind();
s = -1;
if ( (synpred28_InternalDatatypeGrammar()) ) {s = 30;}
else if ( (true) ) {s = 31;}
input.seek(index103_23);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 103, _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\u0083\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 = {
"\2\5\1\1\2\5\5\uffff\1\5\6\uffff\1\2\5\uffff\1\5\4\uffff\1\5\42\uffff\3\5\1\uffff\3\5\4\uffff\1\5\5\uffff\1\5\14\uffff\1\3\5\uffff\1\5\5\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 DFA112 extends DFA {
public DFA112(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 112;
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 "7135: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 LA112_0 = input.LA(1);
int index112_0 = input.index();
input.rewind();
s = -1;
if ( (LA112_0==RULE_ID) ) {s = 1;}
else if ( (LA112_0==21) ) {s = 2;}
else if ( (LA112_0==97) && (synpred31_InternalDatatypeGrammar())) {s = 3;}
else if ( (LA112_0==109) && (synpred31_InternalDatatypeGrammar())) {s = 4;}
else if ( ((LA112_0>=RULE_INT && LA112_0<=RULE_STRING)||(LA112_0>=RULE_HEX && LA112_0<=RULE_DECIMAL)||LA112_0==14||LA112_0==27||LA112_0==32||(LA112_0>=67 && LA112_0<=69)||(LA112_0>=71 && LA112_0<=73)||LA112_0==78||LA112_0==84||LA112_0==103||LA112_0==110||LA112_0==112||(LA112_0>=116 && LA112_0<=129)||LA112_0==131) ) {s = 5;}
input.seek(index112_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA112_1 = input.LA(1);
int index112_1 = input.index();
input.rewind();
s = -1;
if ( (synpred31_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index112_1);
if ( s>=0 ) return s;
break;
case 2 :
int LA112_2 = input.LA(1);
int index112_2 = input.index();
input.rewind();
s = -1;
if ( (synpred31_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index112_2);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 112, _s, input);
error(nvae);
throw nvae;
}
}
static final String[] dfa_64s = {
"\5\2\5\uffff\1\2\6\uffff\1\1\5\uffff\1\2\50\uffff\2\2\1\uffff\3\2\4\uffff\1\2\5\uffff\1\2\14\uffff\1\2\5\uffff\1\2\6\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 DFA119 extends DFA {
public DFA119(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 119;
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 "7601: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 LA119_1 = input.LA(1);
int index119_1 = input.index();
input.rewind();
s = -1;
if ( (synpred34_InternalDatatypeGrammar()) ) {s = 34;}
else if ( (true) ) {s = 2;}
input.seek(index119_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 119, _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\u0083\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 = {
"\2\4\1\1\2\4\5\uffff\1\4\6\uffff\1\2\5\uffff\1\4\50\uffff\2\4\1\uffff\3\4\4\uffff\1\4\5\uffff\1\4\14\uffff\1\3\5\uffff\1\4\6\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 DFA118 extends DFA {
public DFA118(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 118;
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 "7670: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 LA118_0 = input.LA(1);
int index118_0 = input.index();
input.rewind();
s = -1;
if ( (LA118_0==RULE_ID) ) {s = 1;}
else if ( (LA118_0==21) ) {s = 2;}
else if ( (LA118_0==97) && (synpred35_InternalDatatypeGrammar())) {s = 3;}
else if ( ((LA118_0>=RULE_INT && LA118_0<=RULE_STRING)||(LA118_0>=RULE_HEX && LA118_0<=RULE_DECIMAL)||LA118_0==14||LA118_0==27||(LA118_0>=68 && LA118_0<=69)||(LA118_0>=71 && LA118_0<=73)||LA118_0==78||LA118_0==84||LA118_0==103||LA118_0==110||LA118_0==112||(LA118_0>=116 && LA118_0<=118)||(LA118_0>=120 && LA118_0<=129)||LA118_0==131) ) {s = 4;}
input.seek(index118_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA118_1 = input.LA(1);
int index118_1 = input.index();
input.rewind();
s = -1;
if ( (synpred35_InternalDatatypeGrammar()) ) {s = 3;}
else if ( (true) ) {s = 4;}
input.seek(index118_1);
if ( s>=0 ) return s;
break;
case 2 :
int LA118_2 = input.LA(1);
int index118_2 = input.index();
input.rewind();
s = -1;
if ( (synpred35_InternalDatatypeGrammar()) ) {s = 3;}
else if ( (true) ) {s = 4;}
input.seek(index118_2);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 118, _s, input);
error(nvae);
throw nvae;
}
}
class DFA141 extends DFA {
public DFA141(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 141;
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 "8799: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 LA141_1 = input.LA(1);
int index141_1 = input.index();
input.rewind();
s = -1;
if ( (synpred38_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index141_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 141, _s, input);
error(nvae);
throw nvae;
}
}
class DFA140 extends DFA {
public DFA140(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 140;
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 "8818: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 LA140_0 = input.LA(1);
int index140_0 = input.index();
input.rewind();
s = -1;
if ( (LA140_0==RULE_ID) ) {s = 1;}
else if ( (LA140_0==21) ) {s = 2;}
else if ( (LA140_0==97) && (synpred39_InternalDatatypeGrammar())) {s = 3;}
else if ( (LA140_0==109) && (synpred39_InternalDatatypeGrammar())) {s = 4;}
else if ( ((LA140_0>=RULE_INT && LA140_0<=RULE_STRING)||(LA140_0>=RULE_HEX && LA140_0<=RULE_DECIMAL)||LA140_0==14||LA140_0==27||(LA140_0>=68 && LA140_0<=69)||(LA140_0>=71 && LA140_0<=73)||LA140_0==78||LA140_0==84||LA140_0==103||LA140_0==110||LA140_0==112||(LA140_0>=116 && LA140_0<=118)||(LA140_0>=120 && LA140_0<=129)||LA140_0==131) ) {s = 5;}
else if ( (LA140_0==23) ) {s = 35;}
input.seek(index140_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA140_1 = input.LA(1);
int index140_1 = input.index();
input.rewind();
s = -1;
if ( (synpred39_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index140_1);
if ( s>=0 ) return s;
break;
case 2 :
int LA140_2 = input.LA(1);
int index140_2 = input.index();
input.rewind();
s = -1;
if ( (synpred39_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index140_2);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 140, _s, input);
error(nvae);
throw nvae;
}
}
class DFA142 extends DFA {
public DFA142(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 142;
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 "8916: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 LA142_1 = input.LA(1);
int index142_1 = input.index();
input.rewind();
s = -1;
if ( (synpred40_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index142_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 142, _s, input);
error(nvae);
throw nvae;
}
}
static final String[] dfa_71s = {
"\5\2\5\uffff\2\2\5\uffff\3\2\3\uffff\1\2\4\uffff\1\2\42\uffff\10\2\1\uffff\1\2\1\uffff\6\2\1\1\30\2\1\uffff\27\2",
"\1\uffff",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
};
static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s);
class DFA146 extends DFA {
public DFA146(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 146;
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 "9075: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 LA146_1 = input.LA(1);
int index146_1 = input.index();
input.rewind();
s = -1;
if ( (synpred41_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index146_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 146, _s, input);
error(nvae);
throw nvae;
}
}
class DFA149 extends DFA {
public DFA149(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 149;
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 "9132: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 LA149_1 = input.LA(1);
int index149_1 = input.index();
input.rewind();
s = -1;
if ( (synpred42_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index149_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 149, _s, input);
error(nvae);
throw nvae;
}
}
class DFA148 extends DFA {
public DFA148(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 148;
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 "9151: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 LA148_0 = input.LA(1);
int index148_0 = input.index();
input.rewind();
s = -1;
if ( (LA148_0==RULE_ID) ) {s = 1;}
else if ( (LA148_0==21) ) {s = 2;}
else if ( (LA148_0==97) && (synpred43_InternalDatatypeGrammar())) {s = 3;}
else if ( (LA148_0==109) && (synpred43_InternalDatatypeGrammar())) {s = 4;}
else if ( ((LA148_0>=RULE_INT && LA148_0<=RULE_STRING)||(LA148_0>=RULE_HEX && LA148_0<=RULE_DECIMAL)||LA148_0==14||LA148_0==27||(LA148_0>=68 && LA148_0<=69)||(LA148_0>=71 && LA148_0<=73)||LA148_0==78||LA148_0==84||LA148_0==103||LA148_0==110||LA148_0==112||(LA148_0>=116 && LA148_0<=118)||(LA148_0>=120 && LA148_0<=129)||LA148_0==131) ) {s = 5;}
else if ( (LA148_0==23) ) {s = 35;}
input.seek(index148_0);
if ( s>=0 ) return s;
break;
case 1 :
int LA148_1 = input.LA(1);
int index148_1 = input.index();
input.rewind();
s = -1;
if ( (synpred43_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index148_1);
if ( s>=0 ) return s;
break;
case 2 :
int LA148_2 = input.LA(1);
int index148_2 = input.index();
input.rewind();
s = -1;
if ( (synpred43_InternalDatatypeGrammar()) ) {s = 4;}
else if ( (true) ) {s = 5;}
input.seek(index148_2);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 148, _s, input);
error(nvae);
throw nvae;
}
}
class DFA150 extends DFA {
public DFA150(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 150;
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 "9249: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 LA150_1 = input.LA(1);
int index150_1 = input.index();
input.rewind();
s = -1;
if ( (synpred44_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 2;}
input.seek(index150_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 150, _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\u0084\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\24\1\27\1\1\1\23\1\25\5\uffff\1\12\1\41\5\uffff\1\40\2\41\3\uffff\1\20\4\uffff\1\41\42\uffff\1\41\1\10\1\7\1\41\1\4\1\3\1\5\1\41\1\uffff\1\41\1\uffff\1\17\5\41\1\15\22\41\1\6\5\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 DFA153 extends DFA {
public DFA153(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 153;
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 "9592: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 LA153_1 = input.LA(1);
int index153_1 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_1);
if ( s>=0 ) return s;
break;
case 1 :
int LA153_2 = input.LA(1);
int index153_2 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_2);
if ( s>=0 ) return s;
break;
case 2 :
int LA153_3 = input.LA(1);
int index153_3 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_3);
if ( s>=0 ) return s;
break;
case 3 :
int LA153_4 = input.LA(1);
int index153_4 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_4);
if ( s>=0 ) return s;
break;
case 4 :
int LA153_5 = input.LA(1);
int index153_5 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_5);
if ( s>=0 ) return s;
break;
case 5 :
int LA153_6 = input.LA(1);
int index153_6 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_6);
if ( s>=0 ) return s;
break;
case 6 :
int LA153_7 = input.LA(1);
int index153_7 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_7);
if ( s>=0 ) return s;
break;
case 7 :
int LA153_8 = input.LA(1);
int index153_8 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_8);
if ( s>=0 ) return s;
break;
case 8 :
int LA153_9 = input.LA(1);
int index153_9 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_9);
if ( s>=0 ) return s;
break;
case 9 :
int LA153_10 = input.LA(1);
int index153_10 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_10);
if ( s>=0 ) return s;
break;
case 10 :
int LA153_11 = input.LA(1);
int index153_11 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_11);
if ( s>=0 ) return s;
break;
case 11 :
int LA153_12 = input.LA(1);
int index153_12 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_12);
if ( s>=0 ) return s;
break;
case 12 :
int LA153_13 = input.LA(1);
int index153_13 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_13);
if ( s>=0 ) return s;
break;
case 13 :
int LA153_14 = input.LA(1);
int index153_14 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_14);
if ( s>=0 ) return s;
break;
case 14 :
int LA153_15 = input.LA(1);
int index153_15 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_15);
if ( s>=0 ) return s;
break;
case 15 :
int LA153_16 = input.LA(1);
int index153_16 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_16);
if ( s>=0 ) return s;
break;
case 16 :
int LA153_17 = input.LA(1);
int index153_17 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_17);
if ( s>=0 ) return s;
break;
case 17 :
int LA153_18 = input.LA(1);
int index153_18 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_18);
if ( s>=0 ) return s;
break;
case 18 :
int LA153_19 = input.LA(1);
int index153_19 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_19);
if ( s>=0 ) return s;
break;
case 19 :
int LA153_20 = input.LA(1);
int index153_20 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_20);
if ( s>=0 ) return s;
break;
case 20 :
int LA153_21 = input.LA(1);
int index153_21 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_21);
if ( s>=0 ) return s;
break;
case 21 :
int LA153_22 = input.LA(1);
int index153_22 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_22);
if ( s>=0 ) return s;
break;
case 22 :
int LA153_23 = input.LA(1);
int index153_23 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_23);
if ( s>=0 ) return s;
break;
case 23 :
int LA153_24 = input.LA(1);
int index153_24 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_24);
if ( s>=0 ) return s;
break;
case 24 :
int LA153_25 = input.LA(1);
int index153_25 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_25);
if ( s>=0 ) return s;
break;
case 25 :
int LA153_26 = input.LA(1);
int index153_26 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_26);
if ( s>=0 ) return s;
break;
case 26 :
int LA153_27 = input.LA(1);
int index153_27 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_27);
if ( s>=0 ) return s;
break;
case 27 :
int LA153_28 = input.LA(1);
int index153_28 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_28);
if ( s>=0 ) return s;
break;
case 28 :
int LA153_29 = input.LA(1);
int index153_29 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_29);
if ( s>=0 ) return s;
break;
case 29 :
int LA153_30 = input.LA(1);
int index153_30 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_30);
if ( s>=0 ) return s;
break;
case 30 :
int LA153_31 = input.LA(1);
int index153_31 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_31);
if ( s>=0 ) return s;
break;
case 31 :
int LA153_32 = input.LA(1);
int index153_32 = input.index();
input.rewind();
s = -1;
if ( (synpred45_InternalDatatypeGrammar()) ) {s = 77;}
else if ( (true) ) {s = 33;}
input.seek(index153_32);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 153, _s, input);
error(nvae);
throw nvae;
}
}
static final String dfa_78s = "\136\uffff";
static final String dfa_79s = "\1\2\135\uffff";
static final String dfa_80s = "\1\4\1\0\134\uffff";
static final String dfa_81s = "\1\u0086\1\0\134\uffff";
static final String dfa_82s = "\2\uffff\1\2\132\uffff\1\1";
static final String dfa_83s = "\1\uffff\1\0\134\uffff}>";
static final String[] dfa_84s = {
"\5\2\5\uffff\2\2\1\uffff\1\2\1\uffff\5\2\2\uffff\2\2\4\uffff\5\2\2\uffff\7\2\25\uffff\10\2\1\uffff\1\2\1\uffff\6\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 DFA171 extends DFA {
public DFA171(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 171;
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 "10250: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 LA171_1 = input.LA(1);
int index171_1 = input.index();
input.rewind();
s = -1;
if ( (synpred52_InternalDatatypeGrammar()) ) {s = 93;}
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 DFA169 extends DFA {
public DFA169(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 169;
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 "10344: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 LA169_1 = input.LA(1);
int index169_1 = input.index();
input.rewind();
s = -1;
if ( (synpred54_InternalDatatypeGrammar()) ) {s = 93;}
else if ( (true) ) {s = 2;}
input.seek(index169_1);
if ( s>=0 ) return s;
break;
}
if (state.backtracking>0) {state.failed=true; return -1;}
NoViableAltException nvae =
new NoViableAltException(getDescription(), 169, _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[]{0x0000000000000040L});
public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004002L});
public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000200000028000L});
public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000010000L,0x0000000000002000L});
public static final BitSet FOLLOW_8 = new BitSet(new long[]{0xFFFC000000000040L,0x000000000000000FL});
public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000003040000L});
public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000200040L,0x0000000200000000L});
public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x00001F9E04180002L});
public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x00001F9E04100002L});
public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200000L});
public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0001000000000000L});
public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000C00000L});
public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x4000000000000000L,0x0000000000000000L,0x0000000000000C00L});
public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000066000100002L});
public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000060000100002L});
public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000008000002L});
public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x00000001D0000000L});
public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000020000000L});
public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000380L});
public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000000000010L,0x0000000000000030L});
public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000008800000L});
public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000800000L});
public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000000000010L});
public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000400000L});
public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000000000020L});
public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000000004000L});
public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000000408000L});
public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000C00020000002L});
public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000000000030L});
public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000000000000L,0x0000000402700000L,0x0000000000008000L});
public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000000060L});
public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0002000000000000L});
public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000040L});
public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000900L});
public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000200L});
public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000000000040L,0x0000000000000400L});
public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000000002L,0x0000000000001000L});
public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000000200002L});
public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000008A141F0L,0xFF714080001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x00000000082141F0L,0xFF714080001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x00000001082141F0L,0xFF714080001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000100400000L});
public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000400002L});
public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000002L,0x00000000003F8000L});
public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000000000000000L,0x0000000000100000L});
public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000000L,0x0000000000600000L});
public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000000000000L,0x0000000000400000L});
public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000000000002L,0x0000000000800000L});
public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0000000000000002L,0x0000000001000000L});
public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000002L,0x000000001E000000L});
public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000002L,0x0000000020700000L});
public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000000002L,0x0000000FC0300000L});
public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000000000L,0x0000000100000000L});
public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000000000000000L,0x0000000000200000L});
public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000000000L,0x0000000200100000L});
public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000030L});
public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000000000002L,0x0000007000000400L});
public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000000000002L,0x0000010000000000L});
public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000002L,0x0000060000000000L});
public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000000000002L,0x0000180000000040L});
public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000040L,0x0100000000000380L});
public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000040L,0x0300000000100380L});
public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000200040L,0x0000000200000000L,0x0000000000000020L});
public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000400000L,0x0000000000200000L});
public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000008200002L,0x0000180000000040L});
public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0000000008A141F0L,0xFF716082001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000008000002L,0x0000180000000040L});
public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x000000000821C1F0L,0xFF714080001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x00000001082141F0L,0xFFF16082001063B8L,0x000000000000000BL});
public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000400000L,0x0000200000000000L});
public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x00000001082141F0L,0xFFF14080001063B8L,0x000000000000000BL});
public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000100000000L});
public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x00000000082141F2L,0xFFF14080001073B8L,0x000000000000000BL});
public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x00000000082141F2L,0xFFF14080001063B8L,0x000000000000000BL});
public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000002L,0x0000800000000000L});
public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x00000000082141F0L,0xFF714082001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L});
public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000608040L,0x000E000200000000L});
public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000400000L,0x000A000000000000L});
public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000400000L,0x0002000000000000L});
public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x00000000082141F0L,0xFFF14080001073B8L,0x000000000000000BL});
public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000400000L,0x0000000000001000L});
public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x00000000082141F0L,0xFFF14080001063B8L,0x000000000000000BL});
public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x00000000082141F0L,0xFF714080001073B0L,0x000000000000000BL});
public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L});
public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000000L,0x0020000000000000L});
public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x000000000821C1F0L,0xFFF14080001063B8L,0x000000000000000BL});
public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x000000000821C1F0L,0xFFF14080001073B8L,0x000000000000000BL});
public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000020000002L});
public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000008200002L});
public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000008200002L,0x0000000000100000L});
public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x00000000082141F2L,0xFF714080001063B0L,0x000000000000000BL});
public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000014L});
public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000014L});
public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000110L});
public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000A00040L,0x0000000200000000L});
public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L});
public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L});
public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100040L});
public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000002L,0x0300000000000000L});
public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000040L});
public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000400L});
public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000080L});
public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000042L});
}