| package org.eclipse.osbp.xtext.gridsource.parser.antlr.internal; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.parser.*; |
| import org.eclipse.xtext.parser.impl.*; |
| import org.eclipse.emf.ecore.util.EcoreUtil; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.emf.common.util.Enumerator; |
| import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
| import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
| import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; |
| import org.eclipse.osbp.xtext.gridsource.services.GridSourceGrammarAccess; |
| |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| import java.util.Map; |
| import java.util.HashMap; |
| @SuppressWarnings("all") |
| public class InternalGridSourceParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_THEME_RESOURCE", "RULE_INT", "RULE_EVENT_TOPIC", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'gridsource'", "'for'", "'{'", "'inputs'", "'}'", "'inputType'", "'filters'", "'&&'", "'root:'", "'='", "'input:'", "'prop'", "'style'", "'.'", "'buttonStyle'", "'eventTopic'", "'htmlStyle'", "'boolStyle'", "'dateStyle'", "'format'", "'numberStyle'", "'progressbarStyle'", "'max'", "'indicatorStyle'", "'greenFrom'", "'redUntil'", "'quantityStyle'", "'value'", "'('", "')'", "'uom'", "'priceStyle'", "'currency'", "'textStyle'", "'imageStyle'", "'number'", "'then'", "'string'", "'+'", "'-'", "'['", "']'", "','", "'=>'", "'<'", "'>'", "'?'", "'extends'", "'&'", "'super'", "'*'", "'import'", "'static'", "'extension'", "';'", "'equal'", "'greater equal'", "'greater than'", "'lower equal'", "'lower than'", "'not equal'" |
| }; |
| public static final int T__50=50; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__59=59; |
| 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__55=55; |
| public static final int T__56=56; |
| public static final int T__13=13; |
| public static final int T__57=57; |
| public static final int T__14=14; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__52=52; |
| public static final int T__53=53; |
| public static final int T__54=54; |
| public static final int T__60=60; |
| public static final int T__61=61; |
| public static final int RULE_ID=4; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int RULE_EVENT_TOPIC=8; |
| public static final int T__28=28; |
| public static final int RULE_INT=7; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__66=66; |
| public static final int RULE_ML_COMMENT=9; |
| public static final int T__23=23; |
| public static final int T__67=67; |
| public static final int T__24=24; |
| public static final int T__68=68; |
| public static final int T__25=25; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__63=63; |
| public static final int T__20=20; |
| public static final int T__64=64; |
| public static final int T__21=21; |
| public static final int T__65=65; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=5; |
| public static final int RULE_SL_COMMENT=10; |
| 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__73=73; |
| public static final int EOF=-1; |
| 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 RULE_WS=11; |
| public static final int RULE_ANY_OTHER=12; |
| 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 RULE_THEME_RESOURCE=6; |
| 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; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalGridSourceParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalGridSourceParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalGridSourceParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalGridSource.g"; } |
| |
| |
| |
| private GridSourceGrammarAccess grammarAccess; |
| |
| public InternalGridSourceParser(TokenStream input, GridSourceGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "Source"; |
| } |
| |
| @Override |
| protected GridSourceGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleSource" |
| // InternalGridSource.g:65:1: entryRuleSource returns [EObject current=null] : iv_ruleSource= ruleSource EOF ; |
| public final EObject entryRuleSource() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleSource = null; |
| |
| |
| try { |
| // InternalGridSource.g:65:47: (iv_ruleSource= ruleSource EOF ) |
| // InternalGridSource.g:66:2: iv_ruleSource= ruleSource EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSourceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSource=ruleSource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSource; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSource" |
| |
| |
| // $ANTLR start "ruleSource" |
| // InternalGridSource.g:72:1: ruleSource returns [EObject current=null] : (otherlv_0= 'gridsource' ( (lv_id_1_0= ruleQualifiedName ) ) otherlv_2= 'for' ( (lv_rootType_3_0= ruleJvmTypeReference ) ) otherlv_4= '{' otherlv_5= 'inputs' otherlv_6= '{' ( (lv_inputs_7_0= ruleInput ) )* otherlv_8= '}' ( (lv_properties_9_0= ruleProperty ) )* otherlv_10= '}' ) ; |
| public final EObject ruleSource() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| Token otherlv_5=null; |
| Token otherlv_6=null; |
| Token otherlv_8=null; |
| Token otherlv_10=null; |
| AntlrDatatypeRuleToken lv_id_1_0 = null; |
| |
| EObject lv_rootType_3_0 = null; |
| |
| EObject lv_inputs_7_0 = null; |
| |
| EObject lv_properties_9_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:78:2: ( (otherlv_0= 'gridsource' ( (lv_id_1_0= ruleQualifiedName ) ) otherlv_2= 'for' ( (lv_rootType_3_0= ruleJvmTypeReference ) ) otherlv_4= '{' otherlv_5= 'inputs' otherlv_6= '{' ( (lv_inputs_7_0= ruleInput ) )* otherlv_8= '}' ( (lv_properties_9_0= ruleProperty ) )* otherlv_10= '}' ) ) |
| // InternalGridSource.g:79:2: (otherlv_0= 'gridsource' ( (lv_id_1_0= ruleQualifiedName ) ) otherlv_2= 'for' ( (lv_rootType_3_0= ruleJvmTypeReference ) ) otherlv_4= '{' otherlv_5= 'inputs' otherlv_6= '{' ( (lv_inputs_7_0= ruleInput ) )* otherlv_8= '}' ( (lv_properties_9_0= ruleProperty ) )* otherlv_10= '}' ) |
| { |
| // InternalGridSource.g:79:2: (otherlv_0= 'gridsource' ( (lv_id_1_0= ruleQualifiedName ) ) otherlv_2= 'for' ( (lv_rootType_3_0= ruleJvmTypeReference ) ) otherlv_4= '{' otherlv_5= 'inputs' otherlv_6= '{' ( (lv_inputs_7_0= ruleInput ) )* otherlv_8= '}' ( (lv_properties_9_0= ruleProperty ) )* otherlv_10= '}' ) |
| // InternalGridSource.g:80:3: otherlv_0= 'gridsource' ( (lv_id_1_0= ruleQualifiedName ) ) otherlv_2= 'for' ( (lv_rootType_3_0= ruleJvmTypeReference ) ) otherlv_4= '{' otherlv_5= 'inputs' otherlv_6= '{' ( (lv_inputs_7_0= ruleInput ) )* otherlv_8= '}' ( (lv_properties_9_0= ruleProperty ) )* otherlv_10= '}' |
| { |
| otherlv_0=(Token)match(input,13,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getSourceAccess().getGridsourceKeyword_0()); |
| |
| } |
| // InternalGridSource.g:84:3: ( (lv_id_1_0= ruleQualifiedName ) ) |
| // InternalGridSource.g:85:4: (lv_id_1_0= ruleQualifiedName ) |
| { |
| // InternalGridSource.g:85:4: (lv_id_1_0= ruleQualifiedName ) |
| // InternalGridSource.g:86:5: lv_id_1_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSourceAccess().getIdQualifiedNameParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_4); |
| lv_id_1_0=ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSourceRule()); |
| } |
| set( |
| current, |
| "id", |
| lv_id_1_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,14,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getSourceAccess().getForKeyword_2()); |
| |
| } |
| // InternalGridSource.g:107:3: ( (lv_rootType_3_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:108:4: (lv_rootType_3_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:108:4: (lv_rootType_3_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:109:5: lv_rootType_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSourceAccess().getRootTypeJvmTypeReferenceParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_rootType_3_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSourceRule()); |
| } |
| set( |
| current, |
| "rootType", |
| lv_rootType_3_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getSourceAccess().getLeftCurlyBracketKeyword_4()); |
| |
| } |
| otherlv_5=(Token)match(input,16,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getSourceAccess().getInputsKeyword_5()); |
| |
| } |
| otherlv_6=(Token)match(input,15,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getSourceAccess().getLeftCurlyBracketKeyword_6()); |
| |
| } |
| // InternalGridSource.g:138:3: ( (lv_inputs_7_0= ruleInput ) )* |
| loop1: |
| do { |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==18) ) { |
| alt1=1; |
| } |
| |
| |
| switch (alt1) { |
| case 1 : |
| // InternalGridSource.g:139:4: (lv_inputs_7_0= ruleInput ) |
| { |
| // InternalGridSource.g:139:4: (lv_inputs_7_0= ruleInput ) |
| // InternalGridSource.g:140:5: lv_inputs_7_0= ruleInput |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSourceAccess().getInputsInputParserRuleCall_7_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_inputs_7_0=ruleInput(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSourceRule()); |
| } |
| add( |
| current, |
| "inputs", |
| lv_inputs_7_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.Input"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop1; |
| } |
| } while (true); |
| |
| otherlv_8=(Token)match(input,17,FOLLOW_9); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getSourceAccess().getRightCurlyBracketKeyword_8()); |
| |
| } |
| // InternalGridSource.g:161:3: ( (lv_properties_9_0= ruleProperty ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==24) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalGridSource.g:162:4: (lv_properties_9_0= ruleProperty ) |
| { |
| // InternalGridSource.g:162:4: (lv_properties_9_0= ruleProperty ) |
| // InternalGridSource.g:163:5: lv_properties_9_0= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSourceAccess().getPropertiesPropertyParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_properties_9_0=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getSourceRule()); |
| } |
| add( |
| current, |
| "properties", |
| lv_properties_9_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| otherlv_10=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getSourceAccess().getRightCurlyBracketKeyword_10()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSource" |
| |
| |
| // $ANTLR start "entryRuleInput" |
| // InternalGridSource.g:188:1: entryRuleInput returns [EObject current=null] : iv_ruleInput= ruleInput EOF ; |
| public final EObject entryRuleInput() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleInput = null; |
| |
| |
| try { |
| // InternalGridSource.g:188:46: (iv_ruleInput= ruleInput EOF ) |
| // InternalGridSource.g:189:2: iv_ruleInput= ruleInput EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getInputRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleInput=ruleInput(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleInput; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleInput" |
| |
| |
| // $ANTLR start "ruleInput" |
| // InternalGridSource.g:195:1: ruleInput returns [EObject current=null] : (otherlv_0= 'inputType' ( (lv_inputType_1_0= ruleJvmTypeReference ) ) otherlv_2= 'filters' ( (lv_filters_3_0= ruleEQFilter ) ) (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* ) ; |
| public final EObject ruleInput() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_inputType_1_0 = null; |
| |
| EObject lv_filters_3_0 = null; |
| |
| EObject lv_filters_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:201:2: ( (otherlv_0= 'inputType' ( (lv_inputType_1_0= ruleJvmTypeReference ) ) otherlv_2= 'filters' ( (lv_filters_3_0= ruleEQFilter ) ) (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* ) ) |
| // InternalGridSource.g:202:2: (otherlv_0= 'inputType' ( (lv_inputType_1_0= ruleJvmTypeReference ) ) otherlv_2= 'filters' ( (lv_filters_3_0= ruleEQFilter ) ) (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* ) |
| { |
| // InternalGridSource.g:202:2: (otherlv_0= 'inputType' ( (lv_inputType_1_0= ruleJvmTypeReference ) ) otherlv_2= 'filters' ( (lv_filters_3_0= ruleEQFilter ) ) (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* ) |
| // InternalGridSource.g:203:3: otherlv_0= 'inputType' ( (lv_inputType_1_0= ruleJvmTypeReference ) ) otherlv_2= 'filters' ( (lv_filters_3_0= ruleEQFilter ) ) (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* |
| { |
| otherlv_0=(Token)match(input,18,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getInputAccess().getInputTypeKeyword_0()); |
| |
| } |
| // InternalGridSource.g:207:3: ( (lv_inputType_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:208:4: (lv_inputType_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:208:4: (lv_inputType_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:209:5: lv_inputType_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getInputAccess().getInputTypeJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_10); |
| lv_inputType_1_0=ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getInputRule()); |
| } |
| set( |
| current, |
| "inputType", |
| lv_inputType_1_0, |
| "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,19,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getInputAccess().getFiltersKeyword_2()); |
| |
| } |
| // InternalGridSource.g:230:3: ( (lv_filters_3_0= ruleEQFilter ) ) |
| // InternalGridSource.g:231:4: (lv_filters_3_0= ruleEQFilter ) |
| { |
| // InternalGridSource.g:231:4: (lv_filters_3_0= ruleEQFilter ) |
| // InternalGridSource.g:232:5: lv_filters_3_0= ruleEQFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getInputAccess().getFiltersEQFilterParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_filters_3_0=ruleEQFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getInputRule()); |
| } |
| add( |
| current, |
| "filters", |
| lv_filters_3_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.EQFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:249:3: (otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==20) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalGridSource.g:250:4: otherlv_4= '&&' ( (lv_filters_5_0= ruleEQFilter ) ) |
| { |
| otherlv_4=(Token)match(input,20,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getInputAccess().getAmpersandAmpersandKeyword_4_0()); |
| |
| } |
| // InternalGridSource.g:254:4: ( (lv_filters_5_0= ruleEQFilter ) ) |
| // InternalGridSource.g:255:5: (lv_filters_5_0= ruleEQFilter ) |
| { |
| // InternalGridSource.g:255:5: (lv_filters_5_0= ruleEQFilter ) |
| // InternalGridSource.g:256:6: lv_filters_5_0= ruleEQFilter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getInputAccess().getFiltersEQFilterParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_filters_5_0=ruleEQFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getInputRule()); |
| } |
| add( |
| current, |
| "filters", |
| lv_filters_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.EQFilter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleInput" |
| |
| |
| // $ANTLR start "entryRuleEQFilter" |
| // InternalGridSource.g:278:1: entryRuleEQFilter returns [EObject current=null] : iv_ruleEQFilter= ruleEQFilter EOF ; |
| public final EObject entryRuleEQFilter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleEQFilter = null; |
| |
| |
| try { |
| // InternalGridSource.g:278:49: (iv_ruleEQFilter= ruleEQFilter EOF ) |
| // InternalGridSource.g:279:2: iv_ruleEQFilter= ruleEQFilter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getEQFilterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleEQFilter=ruleEQFilter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleEQFilter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleEQFilter" |
| |
| |
| // $ANTLR start "ruleEQFilter" |
| // InternalGridSource.g:285:1: ruleEQFilter returns [EObject current=null] : ( () otherlv_1= 'root:' ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) otherlv_3= '=' otherlv_4= 'input:' ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) ) ; |
| public final EObject ruleEQFilter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| EObject lv_rootTypePropertyPath_2_0 = null; |
| |
| EObject lv_inputTypePropertyPath_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:291:2: ( ( () otherlv_1= 'root:' ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) otherlv_3= '=' otherlv_4= 'input:' ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) ) ) |
| // InternalGridSource.g:292:2: ( () otherlv_1= 'root:' ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) otherlv_3= '=' otherlv_4= 'input:' ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) ) |
| { |
| // InternalGridSource.g:292:2: ( () otherlv_1= 'root:' ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) otherlv_3= '=' otherlv_4= 'input:' ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) ) |
| // InternalGridSource.g:293:3: () otherlv_1= 'root:' ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) otherlv_3= '=' otherlv_4= 'input:' ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) |
| { |
| // InternalGridSource.g:293:3: () |
| // InternalGridSource.g:294:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getEQFilterAccess().getCxGridSourceEQFilterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,21,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getEQFilterAccess().getRootKeyword_1()); |
| |
| } |
| // InternalGridSource.g:304:3: ( (lv_rootTypePropertyPath_2_0= ruleNestedField ) ) |
| // InternalGridSource.g:305:4: (lv_rootTypePropertyPath_2_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:305:4: (lv_rootTypePropertyPath_2_0= ruleNestedField ) |
| // InternalGridSource.g:306:5: lv_rootTypePropertyPath_2_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEQFilterAccess().getRootTypePropertyPathNestedFieldParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_13); |
| lv_rootTypePropertyPath_2_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEQFilterRule()); |
| } |
| set( |
| current, |
| "rootTypePropertyPath", |
| lv_rootTypePropertyPath_2_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,22,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getEQFilterAccess().getEqualsSignKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,23,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getEQFilterAccess().getInputKeyword_4()); |
| |
| } |
| // InternalGridSource.g:331:3: ( (lv_inputTypePropertyPath_5_0= ruleNestedField ) ) |
| // InternalGridSource.g:332:4: (lv_inputTypePropertyPath_5_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:332:4: (lv_inputTypePropertyPath_5_0= ruleNestedField ) |
| // InternalGridSource.g:333:5: lv_inputTypePropertyPath_5_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getEQFilterAccess().getInputTypePropertyPathNestedFieldParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_inputTypePropertyPath_5_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getEQFilterRule()); |
| } |
| set( |
| current, |
| "inputTypePropertyPath", |
| lv_inputTypePropertyPath_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleEQFilter" |
| |
| |
| // $ANTLR start "entryRuleProperty" |
| // InternalGridSource.g:354:1: entryRuleProperty returns [EObject current=null] : iv_ruleProperty= ruleProperty EOF ; |
| public final EObject entryRuleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleProperty = null; |
| |
| |
| try { |
| // InternalGridSource.g:354:49: (iv_ruleProperty= ruleProperty EOF ) |
| // InternalGridSource.g:355:2: iv_ruleProperty= ruleProperty EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleProperty=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleProperty; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleProperty" |
| |
| |
| // $ANTLR start "ruleProperty" |
| // InternalGridSource.g:361:1: ruleProperty returns [EObject current=null] : (otherlv_0= 'prop' ( (lv_path_1_0= ruleNestedField ) ) otherlv_2= 'style' ( (lv_style_3_0= rulePropertyStyle ) ) ) ; |
| public final EObject ruleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_2=null; |
| EObject lv_path_1_0 = null; |
| |
| EObject lv_style_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:367:2: ( (otherlv_0= 'prop' ( (lv_path_1_0= ruleNestedField ) ) otherlv_2= 'style' ( (lv_style_3_0= rulePropertyStyle ) ) ) ) |
| // InternalGridSource.g:368:2: (otherlv_0= 'prop' ( (lv_path_1_0= ruleNestedField ) ) otherlv_2= 'style' ( (lv_style_3_0= rulePropertyStyle ) ) ) |
| { |
| // InternalGridSource.g:368:2: (otherlv_0= 'prop' ( (lv_path_1_0= ruleNestedField ) ) otherlv_2= 'style' ( (lv_style_3_0= rulePropertyStyle ) ) ) |
| // InternalGridSource.g:369:3: otherlv_0= 'prop' ( (lv_path_1_0= ruleNestedField ) ) otherlv_2= 'style' ( (lv_style_3_0= rulePropertyStyle ) ) |
| { |
| otherlv_0=(Token)match(input,24,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getPropertyAccess().getPropKeyword_0()); |
| |
| } |
| // InternalGridSource.g:373:3: ( (lv_path_1_0= ruleNestedField ) ) |
| // InternalGridSource.g:374:4: (lv_path_1_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:374:4: (lv_path_1_0= ruleNestedField ) |
| // InternalGridSource.g:375:5: lv_path_1_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getPathNestedFieldParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_15); |
| lv_path_1_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_1_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_2=(Token)match(input,25,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyAccess().getStyleKeyword_2()); |
| |
| } |
| // InternalGridSource.g:396:3: ( (lv_style_3_0= rulePropertyStyle ) ) |
| // InternalGridSource.g:397:4: (lv_style_3_0= rulePropertyStyle ) |
| { |
| // InternalGridSource.g:397:4: (lv_style_3_0= rulePropertyStyle ) |
| // InternalGridSource.g:398:5: lv_style_3_0= rulePropertyStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getStylePropertyStyleParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_style_3_0=rulePropertyStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyRule()); |
| } |
| set( |
| current, |
| "style", |
| lv_style_3_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.PropertyStyle"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleProperty" |
| |
| |
| // $ANTLR start "entryRuleNestedField" |
| // InternalGridSource.g:419:1: entryRuleNestedField returns [EObject current=null] : iv_ruleNestedField= ruleNestedField EOF ; |
| public final EObject entryRuleNestedField() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNestedField = null; |
| |
| |
| try { |
| // InternalGridSource.g:419:52: (iv_ruleNestedField= ruleNestedField EOF ) |
| // InternalGridSource.g:420:2: iv_ruleNestedField= ruleNestedField EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNestedFieldRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNestedField=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNestedField; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNestedField" |
| |
| |
| // $ANTLR start "ruleNestedField" |
| // InternalGridSource.g:426:1: ruleNestedField returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) ; |
| public final EObject ruleNestedField() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_path_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:432:2: ( ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) ) |
| // InternalGridSource.g:433:2: ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) |
| { |
| // InternalGridSource.g:433:2: ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) |
| // InternalGridSource.g:434:3: () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? |
| { |
| // InternalGridSource.g:434:3: () |
| // InternalGridSource.g:435:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getNestedFieldAccess().getCxGridNestedFieldAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalGridSource.g:441:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalGridSource.g:442:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalGridSource.g:442:4: (otherlv_1= RULE_ID ) |
| // InternalGridSource.g:443:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNestedFieldRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNestedFieldAccess().getFieldJvmOperationCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:454:3: ( (lv_path_2_0= ruleNestedPath ) )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==26) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalGridSource.g:455:4: (lv_path_2_0= ruleNestedPath ) |
| { |
| // InternalGridSource.g:455:4: (lv_path_2_0= ruleNestedPath ) |
| // InternalGridSource.g:456:5: lv_path_2_0= ruleNestedPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNestedFieldAccess().getPathNestedPathParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_path_2_0=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNestedFieldRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_2_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNestedField" |
| |
| |
| // $ANTLR start "entryRuleNestedPath" |
| // InternalGridSource.g:477:1: entryRuleNestedPath returns [EObject current=null] : iv_ruleNestedPath= ruleNestedPath EOF ; |
| public final EObject entryRuleNestedPath() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNestedPath = null; |
| |
| |
| try { |
| // InternalGridSource.g:477:51: (iv_ruleNestedPath= ruleNestedPath EOF ) |
| // InternalGridSource.g:478:2: iv_ruleNestedPath= ruleNestedPath EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNestedPathRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNestedPath=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNestedPath; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNestedPath" |
| |
| |
| // $ANTLR start "ruleNestedPath" |
| // InternalGridSource.g:484:1: ruleNestedPath returns [EObject current=null] : ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) ; |
| public final EObject ruleNestedPath() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| EObject lv_path_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:490:2: ( ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) ) |
| // InternalGridSource.g:491:2: ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) |
| { |
| // InternalGridSource.g:491:2: ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) |
| // InternalGridSource.g:492:3: () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? |
| { |
| // InternalGridSource.g:492:3: () |
| // InternalGridSource.g:493:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getNestedPathAccess().getCxGridNestedPathAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,26,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNestedPathAccess().getFullStopKeyword_1()); |
| |
| } |
| // InternalGridSource.g:503:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalGridSource.g:504:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalGridSource.g:504:4: (otherlv_2= RULE_ID ) |
| // InternalGridSource.g:505:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNestedPathRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNestedPathAccess().getFieldJvmOperationCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:516:3: ( (lv_path_3_0= ruleNestedPath ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==26) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalGridSource.g:517:4: (lv_path_3_0= ruleNestedPath ) |
| { |
| // InternalGridSource.g:517:4: (lv_path_3_0= ruleNestedPath ) |
| // InternalGridSource.g:518:5: lv_path_3_0= ruleNestedPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNestedPathAccess().getPathNestedPathParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_path_3_0=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNestedPathRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_3_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNestedPath" |
| |
| |
| // $ANTLR start "entryRulePropertyStyle" |
| // InternalGridSource.g:539:1: entryRulePropertyStyle returns [EObject current=null] : iv_rulePropertyStyle= rulePropertyStyle EOF ; |
| public final EObject entryRulePropertyStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:539:54: (iv_rulePropertyStyle= rulePropertyStyle EOF ) |
| // InternalGridSource.g:540:2: iv_rulePropertyStyle= rulePropertyStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyStyle=rulePropertyStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyStyle" |
| |
| |
| // $ANTLR start "rulePropertyStyle" |
| // InternalGridSource.g:546:1: rulePropertyStyle returns [EObject current=null] : (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) ; |
| public final EObject rulePropertyStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PropertyButtonStyle_0 = null; |
| |
| EObject this_PropertyHtmlStyle_1 = null; |
| |
| EObject this_PropertyProgressbarStyle_2 = null; |
| |
| EObject this_PropertyTextStyle_3 = null; |
| |
| EObject this_PropertyBooleanStyle_4 = null; |
| |
| EObject this_PropertyDateStyle_5 = null; |
| |
| EObject this_PropertyNumberStyle_6 = null; |
| |
| EObject this_PropertyImageStyle_7 = null; |
| |
| EObject this_PropertyQuantityStyle_8 = null; |
| |
| EObject this_PropertyPriceStyle_9 = null; |
| |
| EObject this_GridPropIndicatorStyle_10 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:552:2: ( (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) ) |
| // InternalGridSource.g:553:2: (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) |
| { |
| // InternalGridSource.g:553:2: (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) |
| int alt6=11; |
| switch ( input.LA(1) ) { |
| case 27: |
| { |
| alt6=1; |
| } |
| break; |
| case 29: |
| { |
| alt6=2; |
| } |
| break; |
| case 34: |
| { |
| alt6=3; |
| } |
| break; |
| case 46: |
| { |
| alt6=4; |
| } |
| break; |
| case 30: |
| { |
| alt6=5; |
| } |
| break; |
| case 31: |
| { |
| alt6=6; |
| } |
| break; |
| case 33: |
| { |
| alt6=7; |
| } |
| break; |
| case 47: |
| { |
| alt6=8; |
| } |
| break; |
| case 39: |
| { |
| alt6=9; |
| } |
| break; |
| case 44: |
| { |
| alt6=10; |
| } |
| break; |
| case 36: |
| { |
| alt6=11; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 6, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt6) { |
| case 1 : |
| // InternalGridSource.g:554:3: this_PropertyButtonStyle_0= rulePropertyButtonStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyButtonStyleParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyButtonStyle_0=rulePropertyButtonStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyButtonStyle_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:563:3: this_PropertyHtmlStyle_1= rulePropertyHtmlStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyHtmlStyleParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyHtmlStyle_1=rulePropertyHtmlStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyHtmlStyle_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalGridSource.g:572:3: this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyProgressbarStyleParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyProgressbarStyle_2=rulePropertyProgressbarStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyProgressbarStyle_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalGridSource.g:581:3: this_PropertyTextStyle_3= rulePropertyTextStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyTextStyleParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyTextStyle_3=rulePropertyTextStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyTextStyle_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalGridSource.g:590:3: this_PropertyBooleanStyle_4= rulePropertyBooleanStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyBooleanStyleParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyBooleanStyle_4=rulePropertyBooleanStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyBooleanStyle_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalGridSource.g:599:3: this_PropertyDateStyle_5= rulePropertyDateStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyDateStyleParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyDateStyle_5=rulePropertyDateStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyDateStyle_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalGridSource.g:608:3: this_PropertyNumberStyle_6= rulePropertyNumberStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyNumberStyleParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyNumberStyle_6=rulePropertyNumberStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyNumberStyle_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalGridSource.g:617:3: this_PropertyImageStyle_7= rulePropertyImageStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyImageStyleParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyImageStyle_7=rulePropertyImageStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyImageStyle_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalGridSource.g:626:3: this_PropertyQuantityStyle_8= rulePropertyQuantityStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyQuantityStyleParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyQuantityStyle_8=rulePropertyQuantityStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyQuantityStyle_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalGridSource.g:635:3: this_PropertyPriceStyle_9= rulePropertyPriceStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyPriceStyleParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyPriceStyle_9=rulePropertyPriceStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyPriceStyle_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalGridSource.g:644:3: this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getGridPropIndicatorStyleParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_GridPropIndicatorStyle_10=ruleGridPropIndicatorStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_GridPropIndicatorStyle_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyButtonStyle" |
| // InternalGridSource.g:656:1: entryRulePropertyButtonStyle returns [EObject current=null] : iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF ; |
| public final EObject entryRulePropertyButtonStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyButtonStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:656:60: (iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF ) |
| // InternalGridSource.g:657:2: iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyButtonStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyButtonStyle=rulePropertyButtonStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyButtonStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyButtonStyle" |
| |
| |
| // $ANTLR start "rulePropertyButtonStyle" |
| // InternalGridSource.g:663:1: rulePropertyButtonStyle returns [EObject current=null] : ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyButtonStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_eventTopic_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:669:2: ( ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) ) |
| // InternalGridSource.g:670:2: ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) |
| { |
| // InternalGridSource.g:670:2: ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) |
| // InternalGridSource.g:671:3: () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| { |
| // InternalGridSource.g:671:3: () |
| // InternalGridSource.g:672:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyButtonStyleAccess().getCxGridPropButtonStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,27,FOLLOW_18); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyButtonStyleAccess().getButtonStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,28,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyButtonStyleAccess().getEventTopicKeyword_2()); |
| |
| } |
| // InternalGridSource.g:686:3: ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| // InternalGridSource.g:687:4: (lv_eventTopic_3_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:687:4: (lv_eventTopic_3_0= RULE_STRING ) |
| // InternalGridSource.g:688:5: lv_eventTopic_3_0= RULE_STRING |
| { |
| lv_eventTopic_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyButtonStyleAccess().getEventTopicSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyButtonStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "eventTopic", |
| lv_eventTopic_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyButtonStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyHtmlStyle" |
| // InternalGridSource.g:708:1: entryRulePropertyHtmlStyle returns [EObject current=null] : iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF ; |
| public final EObject entryRulePropertyHtmlStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyHtmlStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:708:58: (iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF ) |
| // InternalGridSource.g:709:2: iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyHtmlStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyHtmlStyle=rulePropertyHtmlStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyHtmlStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyHtmlStyle" |
| |
| |
| // $ANTLR start "rulePropertyHtmlStyle" |
| // InternalGridSource.g:715:1: rulePropertyHtmlStyle returns [EObject current=null] : ( () otherlv_1= 'htmlStyle' ) ; |
| public final EObject rulePropertyHtmlStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:721:2: ( ( () otherlv_1= 'htmlStyle' ) ) |
| // InternalGridSource.g:722:2: ( () otherlv_1= 'htmlStyle' ) |
| { |
| // InternalGridSource.g:722:2: ( () otherlv_1= 'htmlStyle' ) |
| // InternalGridSource.g:723:3: () otherlv_1= 'htmlStyle' |
| { |
| // InternalGridSource.g:723:3: () |
| // InternalGridSource.g:724:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyHtmlStyleAccess().getCxGridPropHtmlStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,29,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyHtmlStyleAccess().getHtmlStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyHtmlStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyBooleanStyle" |
| // InternalGridSource.g:738:1: entryRulePropertyBooleanStyle returns [EObject current=null] : iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF ; |
| public final EObject entryRulePropertyBooleanStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyBooleanStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:738:61: (iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF ) |
| // InternalGridSource.g:739:2: iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyBooleanStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyBooleanStyle=rulePropertyBooleanStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyBooleanStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyBooleanStyle" |
| |
| |
| // $ANTLR start "rulePropertyBooleanStyle" |
| // InternalGridSource.g:745:1: rulePropertyBooleanStyle returns [EObject current=null] : ( () otherlv_1= 'boolStyle' ) ; |
| public final EObject rulePropertyBooleanStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:751:2: ( ( () otherlv_1= 'boolStyle' ) ) |
| // InternalGridSource.g:752:2: ( () otherlv_1= 'boolStyle' ) |
| { |
| // InternalGridSource.g:752:2: ( () otherlv_1= 'boolStyle' ) |
| // InternalGridSource.g:753:3: () otherlv_1= 'boolStyle' |
| { |
| // InternalGridSource.g:753:3: () |
| // InternalGridSource.g:754:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyBooleanStyleAccess().getCxGridPropBooleanStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyBooleanStyleAccess().getBoolStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyBooleanStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyDateStyle" |
| // InternalGridSource.g:768:1: entryRulePropertyDateStyle returns [EObject current=null] : iv_rulePropertyDateStyle= rulePropertyDateStyle EOF ; |
| public final EObject entryRulePropertyDateStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyDateStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:768:58: (iv_rulePropertyDateStyle= rulePropertyDateStyle EOF ) |
| // InternalGridSource.g:769:2: iv_rulePropertyDateStyle= rulePropertyDateStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyDateStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyDateStyle=rulePropertyDateStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyDateStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyDateStyle" |
| |
| |
| // $ANTLR start "rulePropertyDateStyle" |
| // InternalGridSource.g:775:1: rulePropertyDateStyle returns [EObject current=null] : ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyDateStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_dateFormat_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:781:2: ( ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) ) |
| // InternalGridSource.g:782:2: ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) |
| { |
| // InternalGridSource.g:782:2: ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) |
| // InternalGridSource.g:783:3: () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) |
| { |
| // InternalGridSource.g:783:3: () |
| // InternalGridSource.g:784:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyDateStyleAccess().getCxGridPropDateStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,31,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyDateStyleAccess().getDateStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,32,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyDateStyleAccess().getFormatKeyword_2()); |
| |
| } |
| // InternalGridSource.g:798:3: ( (lv_dateFormat_3_0= RULE_STRING ) ) |
| // InternalGridSource.g:799:4: (lv_dateFormat_3_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:799:4: (lv_dateFormat_3_0= RULE_STRING ) |
| // InternalGridSource.g:800:5: lv_dateFormat_3_0= RULE_STRING |
| { |
| lv_dateFormat_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dateFormat_3_0, grammarAccess.getPropertyDateStyleAccess().getDateFormatSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyDateStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dateFormat", |
| lv_dateFormat_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyDateStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyNumberStyle" |
| // InternalGridSource.g:820:1: entryRulePropertyNumberStyle returns [EObject current=null] : iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF ; |
| public final EObject entryRulePropertyNumberStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyNumberStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:820:60: (iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF ) |
| // InternalGridSource.g:821:2: iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyNumberStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyNumberStyle=rulePropertyNumberStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyNumberStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyNumberStyle" |
| |
| |
| // $ANTLR start "rulePropertyNumberStyle" |
| // InternalGridSource.g:827:1: rulePropertyNumberStyle returns [EObject current=null] : ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyNumberStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_numberFormat_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:833:2: ( ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) ) |
| // InternalGridSource.g:834:2: ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) |
| { |
| // InternalGridSource.g:834:2: ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) |
| // InternalGridSource.g:835:3: () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) |
| { |
| // InternalGridSource.g:835:3: () |
| // InternalGridSource.g:836:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyNumberStyleAccess().getCxGridPropNumberStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,33,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyNumberStyleAccess().getNumberStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,32,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyNumberStyleAccess().getFormatKeyword_2()); |
| |
| } |
| // InternalGridSource.g:850:3: ( (lv_numberFormat_3_0= RULE_STRING ) ) |
| // InternalGridSource.g:851:4: (lv_numberFormat_3_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:851:4: (lv_numberFormat_3_0= RULE_STRING ) |
| // InternalGridSource.g:852:5: lv_numberFormat_3_0= RULE_STRING |
| { |
| lv_numberFormat_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_numberFormat_3_0, grammarAccess.getPropertyNumberStyleAccess().getNumberFormatSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyNumberStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "numberFormat", |
| lv_numberFormat_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyNumberStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyProgressbarStyle" |
| // InternalGridSource.g:872:1: entryRulePropertyProgressbarStyle returns [EObject current=null] : iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF ; |
| public final EObject entryRulePropertyProgressbarStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyProgressbarStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:872:65: (iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF ) |
| // InternalGridSource.g:873:2: iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyProgressbarStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyProgressbarStyle=rulePropertyProgressbarStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyProgressbarStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyProgressbarStyle" |
| |
| |
| // $ANTLR start "rulePropertyProgressbarStyle" |
| // InternalGridSource.g:879:1: rulePropertyProgressbarStyle returns [EObject current=null] : ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) ; |
| public final EObject rulePropertyProgressbarStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| AntlrDatatypeRuleToken lv_maxValue_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:885:2: ( ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) ) |
| // InternalGridSource.g:886:2: ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) |
| { |
| // InternalGridSource.g:886:2: ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) |
| // InternalGridSource.g:887:3: () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) |
| { |
| // InternalGridSource.g:887:3: () |
| // InternalGridSource.g:888:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyProgressbarStyleAccess().getCxGridPropProgressbarStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,34,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyProgressbarStyleAccess().getProgressbarStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,35,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyProgressbarStyleAccess().getMaxKeyword_2()); |
| |
| } |
| // InternalGridSource.g:902:3: ( (lv_maxValue_3_0= ruleLDouble ) ) |
| // InternalGridSource.g:903:4: (lv_maxValue_3_0= ruleLDouble ) |
| { |
| // InternalGridSource.g:903:4: (lv_maxValue_3_0= ruleLDouble ) |
| // InternalGridSource.g:904:5: lv_maxValue_3_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyProgressbarStyleAccess().getMaxValueLDoubleParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_maxValue_3_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyProgressbarStyleRule()); |
| } |
| set( |
| current, |
| "maxValue", |
| lv_maxValue_3_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyProgressbarStyle" |
| |
| |
| // $ANTLR start "entryRuleGridPropIndicatorStyle" |
| // InternalGridSource.g:925:1: entryRuleGridPropIndicatorStyle returns [EObject current=null] : iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF ; |
| public final EObject entryRuleGridPropIndicatorStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleGridPropIndicatorStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:925:63: (iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF ) |
| // InternalGridSource.g:926:2: iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleGridPropIndicatorStyle=ruleGridPropIndicatorStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleGridPropIndicatorStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleGridPropIndicatorStyle" |
| |
| |
| // $ANTLR start "ruleGridPropIndicatorStyle" |
| // InternalGridSource.g:932:1: ruleGridPropIndicatorStyle returns [EObject current=null] : ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) ; |
| public final EObject ruleGridPropIndicatorStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_greenStarts_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_redEnds_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:938:2: ( ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) ) |
| // InternalGridSource.g:939:2: ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) |
| { |
| // InternalGridSource.g:939:2: ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) |
| // InternalGridSource.g:940:3: () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) |
| { |
| // InternalGridSource.g:940:3: () |
| // InternalGridSource.g:941:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getGridPropIndicatorStyleAccess().getCxGridPropIndicatorStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,36,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getGridPropIndicatorStyleAccess().getIndicatorStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,37,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getGridPropIndicatorStyleAccess().getGreenFromKeyword_2()); |
| |
| } |
| // InternalGridSource.g:955:3: ( (lv_greenStarts_3_0= ruleLDouble ) ) |
| // InternalGridSource.g:956:4: (lv_greenStarts_3_0= ruleLDouble ) |
| { |
| // InternalGridSource.g:956:4: (lv_greenStarts_3_0= ruleLDouble ) |
| // InternalGridSource.g:957:5: lv_greenStarts_3_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getGreenStartsLDoubleParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_24); |
| lv_greenStarts_3_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| set( |
| current, |
| "greenStarts", |
| lv_greenStarts_3_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,38,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getGridPropIndicatorStyleAccess().getRedUntilKeyword_4()); |
| |
| } |
| // InternalGridSource.g:978:3: ( (lv_redEnds_5_0= ruleLDouble ) ) |
| // InternalGridSource.g:979:4: (lv_redEnds_5_0= ruleLDouble ) |
| { |
| // InternalGridSource.g:979:4: (lv_redEnds_5_0= ruleLDouble ) |
| // InternalGridSource.g:980:5: lv_redEnds_5_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getRedEndsLDoubleParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_redEnds_5_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| set( |
| current, |
| "redEnds", |
| lv_redEnds_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleGridPropIndicatorStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyQuantityStyle" |
| // InternalGridSource.g:1001:1: entryRulePropertyQuantityStyle returns [EObject current=null] : iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF ; |
| public final EObject entryRulePropertyQuantityStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyQuantityStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:1001:62: (iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF ) |
| // InternalGridSource.g:1002:2: iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyQuantityStyle=rulePropertyQuantityStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyQuantityStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyQuantityStyle" |
| |
| |
| // $ANTLR start "rulePropertyQuantityStyle" |
| // InternalGridSource.g:1008:1: rulePropertyQuantityStyle returns [EObject current=null] : ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) ; |
| public final EObject rulePropertyQuantityStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_htmlPattern_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_valueNumberFormat_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| EObject lv_valuePropertyPath_5_0 = null; |
| |
| EObject lv_uomPropertyPath_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1014:2: ( ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) ) |
| // InternalGridSource.g:1015:2: ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) |
| { |
| // InternalGridSource.g:1015:2: ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) |
| // InternalGridSource.g:1016:3: () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) |
| { |
| // InternalGridSource.g:1016:3: () |
| // InternalGridSource.g:1017:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyQuantityStyleAccess().getCxGridPropQuantityStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,39,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyQuantityStyleAccess().getQuantityStyleKeyword_1()); |
| |
| } |
| // InternalGridSource.g:1027:3: ( (lv_htmlPattern_2_0= RULE_STRING ) )? |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==RULE_STRING) ) { |
| alt7=1; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalGridSource.g:1028:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1028:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| // InternalGridSource.g:1029:5: lv_htmlPattern_2_0= RULE_STRING |
| { |
| lv_htmlPattern_2_0=(Token)match(input,RULE_STRING,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyQuantityStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "htmlPattern", |
| lv_htmlPattern_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,40,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyQuantityStyleAccess().getValueKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,22,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_4()); |
| |
| } |
| // InternalGridSource.g:1053:3: ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) |
| // InternalGridSource.g:1054:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:1054:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| // InternalGridSource.g:1055:5: lv_valuePropertyPath_5_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_27); |
| lv_valuePropertyPath_5_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| set( |
| current, |
| "valuePropertyPath", |
| lv_valuePropertyPath_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1072:3: (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? |
| int alt8=2; |
| int LA8_0 = input.LA(1); |
| |
| if ( (LA8_0==41) ) { |
| alt8=1; |
| } |
| switch (alt8) { |
| case 1 : |
| // InternalGridSource.g:1073:4: otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' |
| { |
| otherlv_6=(Token)match(input,41,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyQuantityStyleAccess().getLeftParenthesisKeyword_6_0()); |
| |
| } |
| otherlv_7=(Token)match(input,32,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyQuantityStyleAccess().getFormatKeyword_6_1()); |
| |
| } |
| // InternalGridSource.g:1081:4: ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) |
| // InternalGridSource.g:1082:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1082:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| // InternalGridSource.g:1083:6: lv_valueNumberFormat_8_0= RULE_STRING |
| { |
| lv_valueNumberFormat_8_0=(Token)match(input,RULE_STRING,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyQuantityStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "valueNumberFormat", |
| lv_valueNumberFormat_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,42,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyQuantityStyleAccess().getRightParenthesisKeyword_6_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,43,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyQuantityStyleAccess().getUomKeyword_7()); |
| |
| } |
| otherlv_11=(Token)match(input,22,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_8()); |
| |
| } |
| // InternalGridSource.g:1112:3: ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) |
| // InternalGridSource.g:1113:4: (lv_uomPropertyPath_12_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:1113:4: (lv_uomPropertyPath_12_0= ruleNestedField ) |
| // InternalGridSource.g:1114:5: lv_uomPropertyPath_12_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getUomPropertyPathNestedFieldParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_uomPropertyPath_12_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| set( |
| current, |
| "uomPropertyPath", |
| lv_uomPropertyPath_12_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyQuantityStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyPriceStyle" |
| // InternalGridSource.g:1135:1: entryRulePropertyPriceStyle returns [EObject current=null] : iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF ; |
| public final EObject entryRulePropertyPriceStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyPriceStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:1135:59: (iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF ) |
| // InternalGridSource.g:1136:2: iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyPriceStyle=rulePropertyPriceStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyPriceStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyPriceStyle" |
| |
| |
| // $ANTLR start "rulePropertyPriceStyle" |
| // InternalGridSource.g:1142:1: rulePropertyPriceStyle returns [EObject current=null] : ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) ; |
| public final EObject rulePropertyPriceStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_htmlPattern_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_valueNumberFormat_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| EObject lv_valuePropertyPath_5_0 = null; |
| |
| EObject lv_currencyPropertyPath_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1148:2: ( ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) ) |
| // InternalGridSource.g:1149:2: ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) |
| { |
| // InternalGridSource.g:1149:2: ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) |
| // InternalGridSource.g:1150:3: () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) |
| { |
| // InternalGridSource.g:1150:3: () |
| // InternalGridSource.g:1151:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyPriceStyleAccess().getCxGridPropPriceStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,44,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyPriceStyleAccess().getPriceStyleKeyword_1()); |
| |
| } |
| // InternalGridSource.g:1161:3: ( (lv_htmlPattern_2_0= RULE_STRING ) )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==RULE_STRING) ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalGridSource.g:1162:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1162:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| // InternalGridSource.g:1163:5: lv_htmlPattern_2_0= RULE_STRING |
| { |
| lv_htmlPattern_2_0=(Token)match(input,RULE_STRING,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyPriceStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "htmlPattern", |
| lv_htmlPattern_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,40,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyPriceStyleAccess().getValueKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,22,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_4()); |
| |
| } |
| // InternalGridSource.g:1187:3: ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) |
| // InternalGridSource.g:1188:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:1188:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| // InternalGridSource.g:1189:5: lv_valuePropertyPath_5_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| lv_valuePropertyPath_5_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| set( |
| current, |
| "valuePropertyPath", |
| lv_valuePropertyPath_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1206:3: (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? |
| int alt10=2; |
| int LA10_0 = input.LA(1); |
| |
| if ( (LA10_0==41) ) { |
| alt10=1; |
| } |
| switch (alt10) { |
| case 1 : |
| // InternalGridSource.g:1207:4: otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' |
| { |
| otherlv_6=(Token)match(input,41,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyPriceStyleAccess().getLeftParenthesisKeyword_6_0()); |
| |
| } |
| otherlv_7=(Token)match(input,32,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyPriceStyleAccess().getFormatKeyword_6_1()); |
| |
| } |
| // InternalGridSource.g:1215:4: ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) |
| // InternalGridSource.g:1216:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1216:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| // InternalGridSource.g:1217:6: lv_valueNumberFormat_8_0= RULE_STRING |
| { |
| lv_valueNumberFormat_8_0=(Token)match(input,RULE_STRING,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyPriceStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "valueNumberFormat", |
| lv_valueNumberFormat_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,42,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyPriceStyleAccess().getRightParenthesisKeyword_6_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,45,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyPriceStyleAccess().getCurrencyKeyword_7()); |
| |
| } |
| otherlv_11=(Token)match(input,22,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_8()); |
| |
| } |
| // InternalGridSource.g:1246:3: ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) |
| // InternalGridSource.g:1247:4: (lv_currencyPropertyPath_12_0= ruleNestedField ) |
| { |
| // InternalGridSource.g:1247:4: (lv_currencyPropertyPath_12_0= ruleNestedField ) |
| // InternalGridSource.g:1248:5: lv_currencyPropertyPath_12_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getCurrencyPropertyPathNestedFieldParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_currencyPropertyPath_12_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| set( |
| current, |
| "currencyPropertyPath", |
| lv_currencyPropertyPath_12_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyPriceStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyTextStyle" |
| // InternalGridSource.g:1269:1: entryRulePropertyTextStyle returns [EObject current=null] : iv_rulePropertyTextStyle= rulePropertyTextStyle EOF ; |
| public final EObject entryRulePropertyTextStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyTextStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:1269:58: (iv_rulePropertyTextStyle= rulePropertyTextStyle EOF ) |
| // InternalGridSource.g:1270:2: iv_rulePropertyTextStyle= rulePropertyTextStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyTextStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyTextStyle=rulePropertyTextStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyTextStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyTextStyle" |
| |
| |
| // $ANTLR start "rulePropertyTextStyle" |
| // InternalGridSource.g:1276:1: rulePropertyTextStyle returns [EObject current=null] : ( () otherlv_1= 'textStyle' ) ; |
| public final EObject rulePropertyTextStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1282:2: ( ( () otherlv_1= 'textStyle' ) ) |
| // InternalGridSource.g:1283:2: ( () otherlv_1= 'textStyle' ) |
| { |
| // InternalGridSource.g:1283:2: ( () otherlv_1= 'textStyle' ) |
| // InternalGridSource.g:1284:3: () otherlv_1= 'textStyle' |
| { |
| // InternalGridSource.g:1284:3: () |
| // InternalGridSource.g:1285:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyTextStyleAccess().getCxGridPropTextStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,46,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyTextStyleAccess().getTextStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyTextStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyImageStyle" |
| // InternalGridSource.g:1299:1: entryRulePropertyImageStyle returns [EObject current=null] : iv_rulePropertyImageStyle= rulePropertyImageStyle EOF ; |
| public final EObject entryRulePropertyImageStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyImageStyle = null; |
| |
| |
| try { |
| // InternalGridSource.g:1299:59: (iv_rulePropertyImageStyle= rulePropertyImageStyle EOF ) |
| // InternalGridSource.g:1300:2: iv_rulePropertyImageStyle= rulePropertyImageStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyImageStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyImageStyle=rulePropertyImageStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyImageStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyImageStyle" |
| |
| |
| // $ANTLR start "rulePropertyImageStyle" |
| // InternalGridSource.g:1306:1: rulePropertyImageStyle returns [EObject current=null] : ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) ; |
| public final EObject rulePropertyImageStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_eventTopic_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_configs_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1312:2: ( ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) ) |
| // InternalGridSource.g:1313:2: ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) |
| { |
| // InternalGridSource.g:1313:2: ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) |
| // InternalGridSource.g:1314:3: () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' |
| { |
| // InternalGridSource.g:1314:3: () |
| // InternalGridSource.g:1315:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyImageStyleAccess().getCxGridPropImageStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,47,FOLLOW_32); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyImageStyleAccess().getImageStyleKeyword_1()); |
| |
| } |
| // InternalGridSource.g:1325:3: (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==28) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalGridSource.g:1326:4: otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| { |
| otherlv_2=(Token)match(input,28,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyImageStyleAccess().getEventTopicKeyword_2_0()); |
| |
| } |
| // InternalGridSource.g:1330:4: ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| // InternalGridSource.g:1331:5: (lv_eventTopic_3_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1331:5: (lv_eventTopic_3_0= RULE_STRING ) |
| // InternalGridSource.g:1332:6: lv_eventTopic_3_0= RULE_STRING |
| { |
| lv_eventTopic_3_0=(Token)match(input,RULE_STRING,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyImageStyleAccess().getEventTopicSTRINGTerminalRuleCall_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyImageStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "eventTopic", |
| lv_eventTopic_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,15,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyImageStyleAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalGridSource.g:1353:3: ( (lv_configs_5_0= ruleStyleConfig ) )* |
| loop12: |
| do { |
| int alt12=2; |
| int LA12_0 = input.LA(1); |
| |
| if ( (LA12_0==48||LA12_0==50) ) { |
| alt12=1; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalGridSource.g:1354:4: (lv_configs_5_0= ruleStyleConfig ) |
| { |
| // InternalGridSource.g:1354:4: (lv_configs_5_0= ruleStyleConfig ) |
| // InternalGridSource.g:1355:5: lv_configs_5_0= ruleStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyImageStyleAccess().getConfigsStyleConfigParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_33); |
| lv_configs_5_0=ruleStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyImageStyleRule()); |
| } |
| add( |
| current, |
| "configs", |
| lv_configs_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.StyleConfig"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop12; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyImageStyleAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyImageStyle" |
| |
| |
| // $ANTLR start "entryRuleQualifiedName" |
| // InternalGridSource.g:1380:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalGridSource.g:1380:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalGridSource.g:1381: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" |
| // InternalGridSource.g:1387: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 { |
| // InternalGridSource.g:1393:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalGridSource.g:1394:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalGridSource.g:1394:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalGridSource.g:1395:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| 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(); |
| |
| } |
| // InternalGridSource.g:1405:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop13: |
| do { |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==26) ) { |
| int LA13_2 = input.LA(2); |
| |
| if ( (LA13_2==RULE_ID) && (synpred1_InternalGridSource())) { |
| alt13=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt13) { |
| case 1 : |
| // InternalGridSource.g:1406:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalGridSource.g:1406:4: ( ( '.' )=>kw= '.' ) |
| // InternalGridSource.g:1407:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,26,FOLLOW_3); 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_17); |
| 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 loop13; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleValidID" |
| // InternalGridSource.g:1429:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalGridSource.g:1429:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalGridSource.g:1430: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" |
| // InternalGridSource.g:1436: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 { |
| // InternalGridSource.g:1442:2: (this_ID_0= RULE_ID ) |
| // InternalGridSource.g:1443: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 "entryRuleStyleConfig" |
| // InternalGridSource.g:1453:1: entryRuleStyleConfig returns [EObject current=null] : iv_ruleStyleConfig= ruleStyleConfig EOF ; |
| public final EObject entryRuleStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStyleConfig = null; |
| |
| |
| try { |
| // InternalGridSource.g:1453:52: (iv_ruleStyleConfig= ruleStyleConfig EOF ) |
| // InternalGridSource.g:1454:2: iv_ruleStyleConfig= ruleStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleStyleConfig=ruleStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStyleConfig" |
| |
| |
| // $ANTLR start "ruleStyleConfig" |
| // InternalGridSource.g:1460:1: ruleStyleConfig returns [EObject current=null] : (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) ; |
| public final EObject ruleStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_NumericToResourceStyleConfig_0 = null; |
| |
| EObject this_StringToResourceStyleConfig_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1466:2: ( (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) ) |
| // InternalGridSource.g:1467:2: (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) |
| { |
| // InternalGridSource.g:1467:2: (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==48) ) { |
| alt14=1; |
| } |
| else if ( (LA14_0==50) ) { |
| alt14=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 14, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalGridSource.g:1468:3: this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStyleConfigAccess().getNumericToResourceStyleConfigParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_NumericToResourceStyleConfig_0=ruleNumericToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NumericToResourceStyleConfig_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:1477:3: this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStyleConfigAccess().getStringToResourceStyleConfigParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_StringToResourceStyleConfig_1=ruleStringToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_StringToResourceStyleConfig_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleNumericToResourceStyleConfig" |
| // InternalGridSource.g:1489:1: entryRuleNumericToResourceStyleConfig returns [EObject current=null] : iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF ; |
| public final EObject entryRuleNumericToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNumericToResourceStyleConfig = null; |
| |
| |
| try { |
| // InternalGridSource.g:1489:69: (iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF ) |
| // InternalGridSource.g:1490:2: iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNumericToResourceStyleConfig=ruleNumericToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNumericToResourceStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNumericToResourceStyleConfig" |
| |
| |
| // $ANTLR start "ruleNumericToResourceStyleConfig" |
| // InternalGridSource.g:1496:1: ruleNumericToResourceStyleConfig returns [EObject current=null] : (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ; |
| public final EObject ruleNumericToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_3=null; |
| Token lv_resourceThemePath_4_0=null; |
| Enumerator lv_compare_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_value_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1502:2: ( (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ) |
| // InternalGridSource.g:1503:2: (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| { |
| // InternalGridSource.g:1503:2: (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| // InternalGridSource.g:1504:3: otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| { |
| otherlv_0=(Token)match(input,48,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getNumericToResourceStyleConfigAccess().getNumberKeyword_0()); |
| |
| } |
| // InternalGridSource.g:1508:3: ( (lv_compare_1_0= ruleStyleCompare ) ) |
| // InternalGridSource.g:1509:4: (lv_compare_1_0= ruleStyleCompare ) |
| { |
| // InternalGridSource.g:1509:4: (lv_compare_1_0= ruleStyleCompare ) |
| // InternalGridSource.g:1510:5: lv_compare_1_0= ruleStyleCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| lv_compare_1_0=ruleStyleCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "compare", |
| lv_compare_1_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.StyleCompare"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1527:3: ( (lv_value_2_0= ruleLDouble ) ) |
| // InternalGridSource.g:1528:4: (lv_value_2_0= ruleLDouble ) |
| { |
| // InternalGridSource.g:1528:4: (lv_value_2_0= ruleLDouble ) |
| // InternalGridSource.g:1529:5: lv_value_2_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getValueLDoubleParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_35); |
| lv_value_2_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,49,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getNumericToResourceStyleConfigAccess().getThenKeyword_3()); |
| |
| } |
| // InternalGridSource.g:1550:3: ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| // InternalGridSource.g:1551:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| { |
| // InternalGridSource.g:1551:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| // InternalGridSource.g:1552:5: lv_resourceThemePath_4_0= RULE_THEME_RESOURCE |
| { |
| lv_resourceThemePath_4_0=(Token)match(input,RULE_THEME_RESOURCE,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getNumericToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "resourceThemePath", |
| lv_resourceThemePath_4_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.THEME_RESOURCE"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumericToResourceStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleStringToResourceStyleConfig" |
| // InternalGridSource.g:1572:1: entryRuleStringToResourceStyleConfig returns [EObject current=null] : iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF ; |
| public final EObject entryRuleStringToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStringToResourceStyleConfig = null; |
| |
| |
| try { |
| // InternalGridSource.g:1572:68: (iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF ) |
| // InternalGridSource.g:1573:2: iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleStringToResourceStyleConfig=ruleStringToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStringToResourceStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStringToResourceStyleConfig" |
| |
| |
| // $ANTLR start "ruleStringToResourceStyleConfig" |
| // InternalGridSource.g:1579:1: ruleStringToResourceStyleConfig returns [EObject current=null] : (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ; |
| public final EObject ruleStringToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_value_2_0=null; |
| Token otherlv_3=null; |
| Token lv_resourceThemePath_4_0=null; |
| Enumerator lv_compare_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1585:2: ( (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ) |
| // InternalGridSource.g:1586:2: (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| { |
| // InternalGridSource.g:1586:2: (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| // InternalGridSource.g:1587:3: otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| { |
| otherlv_0=(Token)match(input,50,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getStringToResourceStyleConfigAccess().getStringKeyword_0()); |
| |
| } |
| // InternalGridSource.g:1591:3: ( (lv_compare_1_0= ruleStyleCompare ) ) |
| // InternalGridSource.g:1592:4: (lv_compare_1_0= ruleStyleCompare ) |
| { |
| // InternalGridSource.g:1592:4: (lv_compare_1_0= ruleStyleCompare ) |
| // InternalGridSource.g:1593:5: lv_compare_1_0= ruleStyleCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStringToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_compare_1_0=ruleStyleCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "compare", |
| lv_compare_1_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.StyleCompare"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1610:3: ( (lv_value_2_0= RULE_STRING ) ) |
| // InternalGridSource.g:1611:4: (lv_value_2_0= RULE_STRING ) |
| { |
| // InternalGridSource.g:1611:4: (lv_value_2_0= RULE_STRING ) |
| // InternalGridSource.g:1612:5: lv_value_2_0= RULE_STRING |
| { |
| lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_2_0, grammarAccess.getStringToResourceStyleConfigAccess().getValueSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,49,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getStringToResourceStyleConfigAccess().getThenKeyword_3()); |
| |
| } |
| // InternalGridSource.g:1632:3: ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| // InternalGridSource.g:1633:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| { |
| // InternalGridSource.g:1633:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| // InternalGridSource.g:1634:5: lv_resourceThemePath_4_0= RULE_THEME_RESOURCE |
| { |
| lv_resourceThemePath_4_0=(Token)match(input,RULE_THEME_RESOURCE,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getStringToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "resourceThemePath", |
| lv_resourceThemePath_4_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.THEME_RESOURCE"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStringToResourceStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleLInt" |
| // InternalGridSource.g:1654:1: entryRuleLInt returns [String current=null] : iv_ruleLInt= ruleLInt EOF ; |
| public final String entryRuleLInt() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLInt = null; |
| |
| |
| try { |
| // InternalGridSource.g:1654:44: (iv_ruleLInt= ruleLInt EOF ) |
| // InternalGridSource.g:1655: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" |
| // InternalGridSource.g:1661: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 { |
| // InternalGridSource.g:1667:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ) |
| // InternalGridSource.g:1668:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) |
| { |
| // InternalGridSource.g:1668:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) |
| // InternalGridSource.g:1669:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT |
| { |
| // InternalGridSource.g:1669:3: (kw= '+' | kw= '-' )? |
| int alt15=3; |
| int LA15_0 = input.LA(1); |
| |
| if ( (LA15_0==51) ) { |
| alt15=1; |
| } |
| else if ( (LA15_0==52) ) { |
| alt15=2; |
| } |
| switch (alt15) { |
| case 1 : |
| // InternalGridSource.g:1670:4: kw= '+' |
| { |
| kw=(Token)match(input,51,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLIntAccess().getPlusSignKeyword_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:1676:4: kw= '-' |
| { |
| kw=(Token)match(input,52,FOLLOW_37); 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 "entryRuleLDouble" |
| // InternalGridSource.g:1693:1: entryRuleLDouble returns [String current=null] : iv_ruleLDouble= ruleLDouble EOF ; |
| public final String entryRuleLDouble() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLDouble = null; |
| |
| |
| try { |
| // InternalGridSource.g:1693:47: (iv_ruleLDouble= ruleLDouble EOF ) |
| // InternalGridSource.g:1694:2: iv_ruleLDouble= ruleLDouble EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLDoubleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleLDouble=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLDouble.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLDouble" |
| |
| |
| // $ANTLR start "ruleLDouble" |
| // InternalGridSource.g:1700:1: ruleLDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) ; |
| public final AntlrDatatypeRuleToken ruleLDouble() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_2=null; |
| AntlrDatatypeRuleToken this_LInt_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1706:2: ( (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) ) |
| // InternalGridSource.g:1707:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) |
| { |
| // InternalGridSource.g:1707:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) |
| // InternalGridSource.g:1708:3: this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLDoubleAccess().getLIntParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_17); |
| 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(); |
| |
| } |
| // InternalGridSource.g:1718:3: (kw= '.' this_INT_2= RULE_INT )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==26) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalGridSource.g:1719:4: kw= '.' this_INT_2= RULE_INT |
| { |
| kw=(Token)match(input,26,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLDoubleAccess().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.getLDoubleAccess().getINTTerminalRuleCall_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLDouble" |
| |
| |
| // $ANTLR start "entryRuleJvmTypeReference" |
| // InternalGridSource.g:1736:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalGridSource.g:1736:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalGridSource.g:1737: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" |
| // InternalGridSource.g:1743: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 { |
| // InternalGridSource.g:1749:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalGridSource.g:1750:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalGridSource.g:1750:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==RULE_ID) ) { |
| alt18=1; |
| } |
| else if ( (LA18_0==41||LA18_0==56) ) { |
| alt18=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 18, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalGridSource.g:1751:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalGridSource.g:1751:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalGridSource.g:1752:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalGridSource.g:1760:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( (LA17_0==53) && (synpred2_InternalGridSource())) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalGridSource.g:1761:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalGridSource.g:1767:5: ( () ruleArrayBrackets ) |
| // InternalGridSource.g:1768:6: () ruleArrayBrackets |
| { |
| // InternalGridSource.g:1768:6: () |
| // InternalGridSource.g:1769: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_38); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:1786: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" |
| // InternalGridSource.g:1798:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalGridSource.g:1798:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalGridSource.g:1799: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" |
| // InternalGridSource.g:1805:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:1811:2: ( (kw= '[' kw= ']' ) ) |
| // InternalGridSource.g:1812:2: (kw= '[' kw= ']' ) |
| { |
| // InternalGridSource.g:1812:2: (kw= '[' kw= ']' ) |
| // InternalGridSource.g:1813:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,53,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,54,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" |
| // InternalGridSource.g:1827:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalGridSource.g:1827:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalGridSource.g:1828: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" |
| // InternalGridSource.g:1834: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 { |
| // InternalGridSource.g:1840:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalGridSource.g:1841:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalGridSource.g:1841:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalGridSource.g:1842:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalGridSource.g:1842:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt21=2; |
| int LA21_0 = input.LA(1); |
| |
| if ( (LA21_0==41) ) { |
| alt21=1; |
| } |
| switch (alt21) { |
| case 1 : |
| // InternalGridSource.g:1843:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,41,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalGridSource.g:1847:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt20=2; |
| int LA20_0 = input.LA(1); |
| |
| if ( (LA20_0==RULE_ID||LA20_0==41||LA20_0==56) ) { |
| alt20=1; |
| } |
| switch (alt20) { |
| case 1 : |
| // InternalGridSource.g:1848:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalGridSource.g:1848:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:1849:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:1849:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:1850:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1867:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop19: |
| do { |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( (LA19_0==55) ) { |
| alt19=1; |
| } |
| |
| |
| switch (alt19) { |
| case 1 : |
| // InternalGridSource.g:1868:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,55,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalGridSource.g:1872:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:1873:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:1873:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:1874:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| 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 loop19; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,42,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,56,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalGridSource.g:1902:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:1903:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:1903:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:1904: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" |
| // InternalGridSource.g:1925:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalGridSource.g:1925:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalGridSource.g:1926: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" |
| // InternalGridSource.g:1932: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 { |
| // InternalGridSource.g:1938: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= '>' )? )* )? ) ) |
| // InternalGridSource.g:1939: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= '>' )? )* )? ) |
| { |
| // InternalGridSource.g:1939: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= '>' )? )* )? ) |
| // InternalGridSource.g:1940: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= '>' )? )* )? |
| { |
| // InternalGridSource.g:1940:3: ( ( ruleQualifiedName ) ) |
| // InternalGridSource.g:1941:4: ( ruleQualifiedName ) |
| { |
| // InternalGridSource.g:1941:4: ( ruleQualifiedName ) |
| // InternalGridSource.g:1942: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_43); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1956: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 alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==57) && (synpred3_InternalGridSource())) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalGridSource.g:1957: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= '>' )? )* |
| { |
| // InternalGridSource.g:1957:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalGridSource.g:1958:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,57,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalGridSource.g:1964:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalGridSource.g:1965:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalGridSource.g:1965:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalGridSource.g:1966:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:1983:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop22: |
| do { |
| int alt22=2; |
| int LA22_0 = input.LA(1); |
| |
| if ( (LA22_0==55) ) { |
| alt22=1; |
| } |
| |
| |
| switch (alt22) { |
| case 1 : |
| // InternalGridSource.g:1984:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,55,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalGridSource.g:1988:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalGridSource.g:1989:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalGridSource.g:1989:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalGridSource.g:1990:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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 loop22; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,58,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalGridSource.g:2012:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop25: |
| do { |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==26) && (synpred4_InternalGridSource())) { |
| alt25=1; |
| } |
| |
| |
| switch (alt25) { |
| case 1 : |
| // InternalGridSource.g:2013:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalGridSource.g:2013:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalGridSource.g:2014:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalGridSource.g:2020:6: ( () otherlv_7= '.' ) |
| // InternalGridSource.g:2021:7: () otherlv_7= '.' |
| { |
| // InternalGridSource.g:2021:7: () |
| // InternalGridSource.g:2022:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,26,FOLLOW_3); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2034:5: ( ( ruleValidID ) ) |
| // InternalGridSource.g:2035:6: ( ruleValidID ) |
| { |
| // InternalGridSource.g:2035:6: ( ruleValidID ) |
| // InternalGridSource.g:2036: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_46); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2050:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt24=2; |
| int LA24_0 = input.LA(1); |
| |
| if ( (LA24_0==57) && (synpred5_InternalGridSource())) { |
| alt24=1; |
| } |
| switch (alt24) { |
| case 1 : |
| // InternalGridSource.g:2051:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalGridSource.g:2051:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalGridSource.g:2052:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,57,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalGridSource.g:2058:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalGridSource.g:2059:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalGridSource.g:2059:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalGridSource.g:2060:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2077:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop23: |
| do { |
| int alt23=2; |
| int LA23_0 = input.LA(1); |
| |
| if ( (LA23_0==55) ) { |
| alt23=1; |
| } |
| |
| |
| switch (alt23) { |
| case 1 : |
| // InternalGridSource.g:2078:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,55,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalGridSource.g:2082:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalGridSource.g:2083:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalGridSource.g:2083:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalGridSource.g:2084:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_45); |
| 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 loop23; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,58,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop25; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalGridSource.g:2113:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalGridSource.g:2113:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalGridSource.g:2114: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" |
| // InternalGridSource.g:2120: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 { |
| // InternalGridSource.g:2126:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalGridSource.g:2127:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalGridSource.g:2127:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt27=2; |
| int LA27_0 = input.LA(1); |
| |
| if ( (LA27_0==RULE_ID||LA27_0==41||LA27_0==56) ) { |
| alt27=1; |
| } |
| else if ( (LA27_0==59) ) { |
| alt27=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 27, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt27) { |
| case 1 : |
| // InternalGridSource.g:2128: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 : |
| // InternalGridSource.g:2137: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" |
| // InternalGridSource.g:2149:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalGridSource.g:2149:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalGridSource.g:2150: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" |
| // InternalGridSource.g:2156: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 { |
| // InternalGridSource.g:2162:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalGridSource.g:2163:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalGridSource.g:2163:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalGridSource.g:2164:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalGridSource.g:2164:3: () |
| // InternalGridSource.g:2165:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,59,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalGridSource.g:2175:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt30=3; |
| int LA30_0 = input.LA(1); |
| |
| if ( (LA30_0==60) ) { |
| alt30=1; |
| } |
| else if ( (LA30_0==62) ) { |
| alt30=2; |
| } |
| switch (alt30) { |
| case 1 : |
| // InternalGridSource.g:2176:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalGridSource.g:2176:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalGridSource.g:2177:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalGridSource.g:2177:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalGridSource.g:2178:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalGridSource.g:2178:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalGridSource.g:2179:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2196:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==61) ) { |
| alt28=1; |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalGridSource.g:2197:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalGridSource.g:2197:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalGridSource.g:2198:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| 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 loop28; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:2217:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalGridSource.g:2217:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalGridSource.g:2218:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalGridSource.g:2218:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalGridSource.g:2219:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalGridSource.g:2219:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalGridSource.g:2220:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2237:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop29: |
| do { |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==61) ) { |
| alt29=1; |
| } |
| |
| |
| switch (alt29) { |
| case 1 : |
| // InternalGridSource.g:2238:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalGridSource.g:2238:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalGridSource.g:2239:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| 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 loop29; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalGridSource.g:2262:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalGridSource.g:2262:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalGridSource.g:2263: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" |
| // InternalGridSource.g:2269: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 { |
| // InternalGridSource.g:2275:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalGridSource.g:2276:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalGridSource.g:2276:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalGridSource.g:2277:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,60,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalGridSource.g:2281:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:2282:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:2282:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:2283: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" |
| // InternalGridSource.g:2304:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalGridSource.g:2304:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalGridSource.g:2305: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" |
| // InternalGridSource.g:2311: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 { |
| // InternalGridSource.g:2317:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalGridSource.g:2318:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalGridSource.g:2318:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalGridSource.g:2319:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,61,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalGridSource.g:2323:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:2324:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:2324:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:2325: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" |
| // InternalGridSource.g:2346:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalGridSource.g:2346:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalGridSource.g:2347: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" |
| // InternalGridSource.g:2353: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 { |
| // InternalGridSource.g:2359:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalGridSource.g:2360:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalGridSource.g:2360:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalGridSource.g:2361:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,62,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalGridSource.g:2365:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:2366:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:2366:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:2367: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" |
| // InternalGridSource.g:2388:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalGridSource.g:2388:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalGridSource.g:2389: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" |
| // InternalGridSource.g:2395: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 { |
| // InternalGridSource.g:2401:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalGridSource.g:2402:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalGridSource.g:2402:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalGridSource.g:2403:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,61,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalGridSource.g:2407:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalGridSource.g:2408:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalGridSource.g:2408:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalGridSource.g:2409: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" |
| // InternalGridSource.g:2430:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalGridSource.g:2430:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalGridSource.g:2431: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" |
| // InternalGridSource.g:2437: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 { |
| // InternalGridSource.g:2443:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalGridSource.g:2444:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalGridSource.g:2444:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalGridSource.g:2445:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| 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,26,FOLLOW_50); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,63,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 "entryRuleXImportDeclaration" |
| // InternalGridSource.g:2469:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalGridSource.g:2469:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalGridSource.g:2470: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" |
| // InternalGridSource.g:2476:1: ruleXImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) ; |
| public final EObject ruleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_static_1_0=null; |
| Token lv_extension_2_0=null; |
| Token lv_wildcard_4_0=null; |
| Token otherlv_8=null; |
| AntlrDatatypeRuleToken lv_memberName_5_0 = null; |
| |
| AntlrDatatypeRuleToken lv_importedNamespace_7_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalGridSource.g:2482:2: ( (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) ) |
| // InternalGridSource.g:2483:2: (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) |
| { |
| // InternalGridSource.g:2483:2: (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) |
| // InternalGridSource.g:2484:3: otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? |
| { |
| otherlv_0=(Token)match(input,64,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); |
| |
| } |
| // InternalGridSource.g:2488:3: ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) |
| int alt33=3; |
| alt33 = dfa33.predict(input); |
| switch (alt33) { |
| case 1 : |
| // InternalGridSource.g:2489:4: ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) |
| { |
| // InternalGridSource.g:2489:4: ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) |
| // InternalGridSource.g:2490:5: ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) |
| { |
| // InternalGridSource.g:2490:5: ( (lv_static_1_0= 'static' ) ) |
| // InternalGridSource.g:2491:6: (lv_static_1_0= 'static' ) |
| { |
| // InternalGridSource.g:2491:6: (lv_static_1_0= 'static' ) |
| // InternalGridSource.g:2492:7: lv_static_1_0= 'static' |
| { |
| lv_static_1_0=(Token)match(input,65,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_static_1_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "static", true, "static"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2504:5: ( (lv_extension_2_0= 'extension' ) )? |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==66) ) { |
| alt31=1; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalGridSource.g:2505:6: (lv_extension_2_0= 'extension' ) |
| { |
| // InternalGridSource.g:2505:6: (lv_extension_2_0= 'extension' ) |
| // InternalGridSource.g:2506:7: lv_extension_2_0= 'extension' |
| { |
| lv_extension_2_0=(Token)match(input,66,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_extension_2_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "extension", true, "extension"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalGridSource.g:2518:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalGridSource.g:2519:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalGridSource.g:2519:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalGridSource.g:2520:7: ruleQualifiedNameInStaticImport |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); |
| |
| } |
| pushFollow(FOLLOW_53); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalGridSource.g:2534:5: ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) |
| int alt32=2; |
| int LA32_0 = input.LA(1); |
| |
| if ( (LA32_0==63) ) { |
| alt32=1; |
| } |
| else if ( (LA32_0==RULE_ID) ) { |
| alt32=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 32, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt32) { |
| case 1 : |
| // InternalGridSource.g:2535:6: ( (lv_wildcard_4_0= '*' ) ) |
| { |
| // InternalGridSource.g:2535:6: ( (lv_wildcard_4_0= '*' ) ) |
| // InternalGridSource.g:2536:7: (lv_wildcard_4_0= '*' ) |
| { |
| // InternalGridSource.g:2536:7: (lv_wildcard_4_0= '*' ) |
| // InternalGridSource.g:2537:8: lv_wildcard_4_0= '*' |
| { |
| lv_wildcard_4_0=(Token)match(input,63,FOLLOW_54); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_wildcard_4_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| setWithLastConsumed(current, "wildcard", true, "*"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:2550:6: ( (lv_memberName_5_0= ruleValidID ) ) |
| { |
| // InternalGridSource.g:2550:6: ( (lv_memberName_5_0= ruleValidID ) ) |
| // InternalGridSource.g:2551:7: (lv_memberName_5_0= ruleValidID ) |
| { |
| // InternalGridSource.g:2551:7: (lv_memberName_5_0= ruleValidID ) |
| // InternalGridSource.g:2552:8: lv_memberName_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_memberName_5_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_5_0, |
| "org.eclipse.osbp.xtext.gridsource.GridSource.ValidID"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:2572:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalGridSource.g:2572:4: ( ( ruleQualifiedName ) ) |
| // InternalGridSource.g:2573:5: ( ruleQualifiedName ) |
| { |
| // InternalGridSource.g:2573:5: ( ruleQualifiedName ) |
| // InternalGridSource.g:2574:6: ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getXImportDeclarationRule()); |
| } |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalGridSource.g:2589:4: ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalGridSource.g:2589:4: ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalGridSource.g:2590:5: (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalGridSource.g:2590:5: (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) |
| // InternalGridSource.g:2591:6: lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_importedNamespace_7_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_7_0, |
| "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalGridSource.g:2609:3: (otherlv_8= ';' )? |
| int alt34=2; |
| int LA34_0 = input.LA(1); |
| |
| if ( (LA34_0==67) ) { |
| alt34=1; |
| } |
| switch (alt34) { |
| case 1 : |
| // InternalGridSource.g:2610:4: otherlv_8= ';' |
| { |
| otherlv_8=(Token)match(input,67,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportDeclaration" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalGridSource.g:2619:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalGridSource.g:2619:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalGridSource.g:2620: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" |
| // InternalGridSource.g:2626: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 { |
| // InternalGridSource.g:2632:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalGridSource.g:2633:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalGridSource.g:2633:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt35=0; |
| loop35: |
| do { |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==RULE_ID) ) { |
| int LA35_2 = input.LA(2); |
| |
| if ( (LA35_2==26) ) { |
| alt35=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt35) { |
| case 1 : |
| // InternalGridSource.g:2634:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_49); |
| 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,26,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt35 >= 1 ) break loop35; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(35, input); |
| throw eee; |
| } |
| cnt35++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleStyleCompare" |
| // InternalGridSource.g:2653:1: ruleStyleCompare returns [Enumerator current=null] : ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) ; |
| public final Enumerator ruleStyleCompare() 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 { |
| // InternalGridSource.g:2659:2: ( ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) ) |
| // InternalGridSource.g:2660:2: ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) |
| { |
| // InternalGridSource.g:2660:2: ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) |
| int alt36=6; |
| switch ( input.LA(1) ) { |
| case 68: |
| { |
| alt36=1; |
| } |
| break; |
| case 69: |
| { |
| alt36=2; |
| } |
| break; |
| case 70: |
| { |
| alt36=3; |
| } |
| break; |
| case 71: |
| { |
| alt36=4; |
| } |
| break; |
| case 72: |
| { |
| alt36=5; |
| } |
| break; |
| case 73: |
| { |
| alt36=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 36, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt36) { |
| case 1 : |
| // InternalGridSource.g:2661:3: (enumLiteral_0= 'equal' ) |
| { |
| // InternalGridSource.g:2661:3: (enumLiteral_0= 'equal' ) |
| // InternalGridSource.g:2662:4: enumLiteral_0= 'equal' |
| { |
| enumLiteral_0=(Token)match(input,68,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalGridSource.g:2669:3: (enumLiteral_1= 'greater equal' ) |
| { |
| // InternalGridSource.g:2669:3: (enumLiteral_1= 'greater equal' ) |
| // InternalGridSource.g:2670:4: enumLiteral_1= 'greater equal' |
| { |
| enumLiteral_1=(Token)match(input,69,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalGridSource.g:2677:3: (enumLiteral_2= 'greater than' ) |
| { |
| // InternalGridSource.g:2677:3: (enumLiteral_2= 'greater than' ) |
| // InternalGridSource.g:2678:4: enumLiteral_2= 'greater than' |
| { |
| enumLiteral_2=(Token)match(input,70,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalGridSource.g:2685:3: (enumLiteral_3= 'lower equal' ) |
| { |
| // InternalGridSource.g:2685:3: (enumLiteral_3= 'lower equal' ) |
| // InternalGridSource.g:2686:4: enumLiteral_3= 'lower equal' |
| { |
| enumLiteral_3=(Token)match(input,71,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalGridSource.g:2693:3: (enumLiteral_4= 'lower than' ) |
| { |
| // InternalGridSource.g:2693:3: (enumLiteral_4= 'lower than' ) |
| // InternalGridSource.g:2694:4: enumLiteral_4= 'lower than' |
| { |
| enumLiteral_4=(Token)match(input,72,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalGridSource.g:2701:3: (enumLiteral_5= 'not equal' ) |
| { |
| // InternalGridSource.g:2701:3: (enumLiteral_5= 'not equal' ) |
| // InternalGridSource.g:2702:4: enumLiteral_5= 'not equal' |
| { |
| enumLiteral_5=(Token)match(input,73,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStyleCompare" |
| |
| // $ANTLR start synpred1_InternalGridSource |
| public final void synpred1_InternalGridSource_fragment() throws RecognitionException { |
| // InternalGridSource.g:1407:5: ( '.' ) |
| // InternalGridSource.g:1407:6: '.' |
| { |
| match(input,26,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalGridSource |
| |
| // $ANTLR start synpred2_InternalGridSource |
| public final void synpred2_InternalGridSource_fragment() throws RecognitionException { |
| // InternalGridSource.g:1761:5: ( ( () ruleArrayBrackets ) ) |
| // InternalGridSource.g:1761:6: ( () ruleArrayBrackets ) |
| { |
| // InternalGridSource.g:1761:6: ( () ruleArrayBrackets ) |
| // InternalGridSource.g:1762:6: () ruleArrayBrackets |
| { |
| // InternalGridSource.g:1762:6: () |
| // InternalGridSource.g:1763:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalGridSource |
| |
| // $ANTLR start synpred3_InternalGridSource |
| public final void synpred3_InternalGridSource_fragment() throws RecognitionException { |
| // InternalGridSource.g:1958:5: ( '<' ) |
| // InternalGridSource.g:1958:6: '<' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred3_InternalGridSource |
| |
| // $ANTLR start synpred4_InternalGridSource |
| public final void synpred4_InternalGridSource_fragment() throws RecognitionException { |
| // InternalGridSource.g:2014:6: ( ( () '.' ) ) |
| // InternalGridSource.g:2014:7: ( () '.' ) |
| { |
| // InternalGridSource.g:2014:7: ( () '.' ) |
| // InternalGridSource.g:2015:7: () '.' |
| { |
| // InternalGridSource.g:2015:7: () |
| // InternalGridSource.g:2016:7: |
| { |
| } |
| |
| match(input,26,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred4_InternalGridSource |
| |
| // $ANTLR start synpred5_InternalGridSource |
| public final void synpred5_InternalGridSource_fragment() throws RecognitionException { |
| // InternalGridSource.g:2052:7: ( '<' ) |
| // InternalGridSource.g:2052:8: '<' |
| { |
| match(input,57,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalGridSource |
| |
| // Delegated rules |
| |
| public final boolean synpred2_InternalGridSource() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalGridSource_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_InternalGridSource() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred3_InternalGridSource_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred1_InternalGridSource() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalGridSource_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_InternalGridSource() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred4_InternalGridSource_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred5_InternalGridSource() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalGridSource_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 DFA33 dfa33 = new DFA33(this); |
| static final String dfa_1s = "\7\uffff"; |
| static final String dfa_2s = "\2\uffff\1\4\2\uffff\1\4\1\uffff"; |
| static final String dfa_3s = "\1\4\1\uffff\1\32\1\4\1\uffff\1\32\1\uffff"; |
| static final String dfa_4s = "\1\101\1\uffff\1\103\1\77\1\uffff\1\103\1\uffff"; |
| static final String dfa_5s = "\1\uffff\1\1\2\uffff\1\2\1\uffff\1\3"; |
| static final String dfa_6s = "\7\uffff}>"; |
| static final String[] dfa_7s = { |
| "\1\2\74\uffff\1\1", |
| "", |
| "\1\3\50\uffff\1\4", |
| "\1\5\72\uffff\1\6", |
| "", |
| "\1\3\50\uffff\1\4", |
| "" |
| }; |
| |
| 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 DFA33 extends DFA { |
| |
| public DFA33(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 33; |
| 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 "2488:3: ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) )"; |
| } |
| } |
| |
| |
| 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[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000004000L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0100020000000010L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000008000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000010000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000060000L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000001020000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000080000L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000200000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100002L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000400000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000800000L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000002000000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000D096E8000000L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000004000002L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000010000000L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000100000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000800000000L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0018000000000080L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000002000000000L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000004000000000L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000010000000020L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000010000000000L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x00000A0000000000L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000040000000000L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000080000000000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000220000000000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000200000000000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000010008000L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0005000000020000L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000000000L,0x00000000000003F0L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0002000000000000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000000000080L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0020000000000002L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0040000000000000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0100060000000010L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0080040000000000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0100000000000000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0200000000000002L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0900020000000010L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0480000000000000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0200000004000002L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x5000000000000002L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x2000000000000002L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000000004000000L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x8000000000000000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000000000010L,0x0000000000000002L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000000000010L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x8000000000000010L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |