InternalPropertiesParser.java
package org.osate.xtext.aadl2.properties.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.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.osate.xtext.aadl2.properties.services.PropertiesGrammarAccess;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
/**
* Copyright (c) 2004-2025 Carnegie Mellon University and others. (see Contributors file).
* All Rights Reserved.
*
* NO WARRANTY. ALL MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE
* OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT
* MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
* SPDX-License-Identifier: EPL-2.0
*
* Created, in part, with funding and support from the United States Government. (see Acknowledgments file).
*
* This program includes and/or can make use of certain third party source code, object code, documentation and other
* files ("Third Party Software"). The Third Party Software that is used by this program is dependent upon your system
* configuration. By using this program, You agree to comply with any and all relevant Third Party Software terms and
* conditions contained in any such Third Party Software or separate license file distributed with such Third Party
* Software. The parties who own the Third Party Software ("Third Party Licensors") are intended third party benefici-
* aries to this license with respect to the terms applicable to their Third Party Software. Third Party Software li-
* censes only apply to the Third Party Software and not any other portion of this program or this program as a whole.
*/
@SuppressWarnings("all")
public class InternalPropertiesParser extends AbstractInternalAntlrParser {
public static final String[] tokenNames = new String[] {
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "Classifier", "Reference", "Constant", "Applies", "Binding", "Compute", "Delta", "False", "Modes", "True", "PlusSignEqualsSignGreaterThanSign", "FullStopFullStop", "ColonColon", "EqualsSignGreaterThanSign", "In", "To", "LeftParenthesis", "RightParenthesis", "Asterisk", "PlusSign", "Comma", "HyphenMinus", "FullStop", "Semicolon", "LeftSquareBracket", "RightSquareBracket", "LeftCurlyBracket", "RightCurlyBracket", "RULE_SL_COMMENT", "RULE_DIGIT", "RULE_EXPONENT", "RULE_INT_EXPONENT", "RULE_REAL_LIT", "RULE_BASED_INTEGER", "RULE_INTEGER_LIT", "RULE_EXTENDED_DIGIT", "RULE_STRING", "RULE_ID", "RULE_WS"
};
public static final int EqualsSignGreaterThanSign=17;
public static final int In=18;
public static final int Constant=6;
public static final int RULE_REAL_LIT=36;
public static final int True=13;
public static final int RULE_STRING=40;
public static final int Classifier=4;
public static final int False=11;
public static final int RULE_SL_COMMENT=32;
public static final int RULE_INT_EXPONENT=35;
public static final int Comma=24;
public static final int HyphenMinus=25;
public static final int PlusSignEqualsSignGreaterThanSign=14;
public static final int LeftParenthesis=20;
public static final int FullStopFullStop=15;
public static final int To=19;
public static final int RightCurlyBracket=31;
public static final int Applies=7;
public static final int EOF=-1;
public static final int Asterisk=22;
public static final int RULE_BASED_INTEGER=37;
public static final int RightSquareBracket=29;
public static final int Binding=8;
public static final int Modes=12;
public static final int FullStop=26;
public static final int RULE_ID=41;
public static final int RULE_WS=42;
public static final int Reference=5;
public static final int RightParenthesis=21;
public static final int LeftCurlyBracket=30;
public static final int RULE_DIGIT=33;
public static final int ColonColon=16;
public static final int Semicolon=27;
public static final int RULE_EXPONENT=34;
public static final int Delta=10;
public static final int PlusSign=23;
public static final int Compute=9;
public static final int RULE_EXTENDED_DIGIT=39;
public static final int LeftSquareBracket=28;
public static final int RULE_INTEGER_LIT=38;
// delegates
// delegators
public InternalPropertiesParser(TokenStream input) {
this(input, new RecognizerSharedState());
}
public InternalPropertiesParser(TokenStream input, RecognizerSharedState state) {
super(input, state);
}
public String[] getTokenNames() { return InternalPropertiesParser.tokenNames; }
public String getGrammarFileName() { return "InternalPropertiesParser.g"; }
private PropertiesGrammarAccess grammarAccess;
public InternalPropertiesParser(TokenStream input, PropertiesGrammarAccess grammarAccess) {
this(input);
this.grammarAccess = grammarAccess;
registerRules(grammarAccess.getGrammar());
}
@Override
protected String getFirstRuleName() {
return "PModel";
}
@Override
protected PropertiesGrammarAccess getGrammarAccess() {
return grammarAccess;
}
// $ANTLR start "entryRulePModel"
// InternalPropertiesParser.g:77:1: entryRulePModel returns [EObject current=null] : iv_rulePModel= rulePModel EOF ;
public final EObject entryRulePModel() throws RecognitionException {
EObject current = null;
EObject iv_rulePModel = null;
try {
// InternalPropertiesParser.g:77:47: (iv_rulePModel= rulePModel EOF )
// InternalPropertiesParser.g:78:2: iv_rulePModel= rulePModel EOF
{
newCompositeNode(grammarAccess.getPModelRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_rulePModel=rulePModel();
state._fsp--;
current =iv_rulePModel;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRulePModel"
// $ANTLR start "rulePModel"
// InternalPropertiesParser.g:84:1: rulePModel returns [EObject current=null] : this_ContainedPropertyAssociation_0= ruleContainedPropertyAssociation ;
public final EObject rulePModel() throws RecognitionException {
EObject current = null;
EObject this_ContainedPropertyAssociation_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:90:2: (this_ContainedPropertyAssociation_0= ruleContainedPropertyAssociation )
// InternalPropertiesParser.g:91:2: this_ContainedPropertyAssociation_0= ruleContainedPropertyAssociation
{
newCompositeNode(grammarAccess.getPModelAccess().getContainedPropertyAssociationParserRuleCall());
pushFollow(FollowSets000.FOLLOW_2);
this_ContainedPropertyAssociation_0=ruleContainedPropertyAssociation();
state._fsp--;
current = this_ContainedPropertyAssociation_0;
afterParserOrEnumRuleCall();
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "rulePModel"
// $ANTLR start "entryRuleContainedPropertyAssociation"
// InternalPropertiesParser.g:102:1: entryRuleContainedPropertyAssociation returns [EObject current=null] : iv_ruleContainedPropertyAssociation= ruleContainedPropertyAssociation EOF ;
public final EObject entryRuleContainedPropertyAssociation() throws RecognitionException {
EObject current = null;
EObject iv_ruleContainedPropertyAssociation = null;
try {
// InternalPropertiesParser.g:102:69: (iv_ruleContainedPropertyAssociation= ruleContainedPropertyAssociation EOF )
// InternalPropertiesParser.g:103:2: iv_ruleContainedPropertyAssociation= ruleContainedPropertyAssociation EOF
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleContainedPropertyAssociation=ruleContainedPropertyAssociation();
state._fsp--;
current =iv_ruleContainedPropertyAssociation;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleContainedPropertyAssociation"
// $ANTLR start "ruleContainedPropertyAssociation"
// InternalPropertiesParser.g:109:1: ruleContainedPropertyAssociation returns [EObject current=null] : ( ( ( ruleQPREF ) ) (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) ) ( (lv_constant_3_0= Constant ) )? ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* ) ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )? ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )? otherlv_15= Semicolon ) ;
public final EObject ruleContainedPropertyAssociation() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token lv_append_2_0=null;
Token lv_constant_3_0=null;
Token otherlv_5=null;
Token otherlv_9=null;
Token otherlv_12=null;
Token otherlv_14=null;
Token otherlv_15=null;
EObject lv_ownedValue_4_0 = null;
EObject lv_ownedValue_6_0 = null;
EObject lv_appliesTo_8_0 = null;
EObject lv_appliesTo_10_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:115:2: ( ( ( ( ruleQPREF ) ) (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) ) ( (lv_constant_3_0= Constant ) )? ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* ) ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )? ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )? otherlv_15= Semicolon ) )
// InternalPropertiesParser.g:116:2: ( ( ( ruleQPREF ) ) (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) ) ( (lv_constant_3_0= Constant ) )? ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* ) ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )? ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )? otherlv_15= Semicolon )
{
// InternalPropertiesParser.g:116:2: ( ( ( ruleQPREF ) ) (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) ) ( (lv_constant_3_0= Constant ) )? ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* ) ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )? ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )? otherlv_15= Semicolon )
// InternalPropertiesParser.g:117:3: ( ( ruleQPREF ) ) (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) ) ( (lv_constant_3_0= Constant ) )? ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* ) ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )? ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )? otherlv_15= Semicolon
{
// InternalPropertiesParser.g:117:3: ( ( ruleQPREF ) )
// InternalPropertiesParser.g:118:4: ( ruleQPREF )
{
// InternalPropertiesParser.g:118:4: ( ruleQPREF )
// InternalPropertiesParser.g:119:5: ruleQPREF
{
if (current==null) {
current = createModelElement(grammarAccess.getContainedPropertyAssociationRule());
}
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getPropertyPropertyCrossReference_0_0());
pushFollow(FollowSets000.FOLLOW_3);
ruleQPREF();
state._fsp--;
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:133:3: (otherlv_1= EqualsSignGreaterThanSign | ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) ) )
int alt1=2;
int LA1_0 = input.LA(1);
if ( (LA1_0==EqualsSignGreaterThanSign) ) {
alt1=1;
}
else if ( (LA1_0==PlusSignEqualsSignGreaterThanSign) ) {
alt1=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 1, 0, input);
throw nvae;
}
switch (alt1) {
case 1 :
// InternalPropertiesParser.g:134:4: otherlv_1= EqualsSignGreaterThanSign
{
otherlv_1=(Token)match(input,EqualsSignGreaterThanSign,FollowSets000.FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getContainedPropertyAssociationAccess().getEqualsSignGreaterThanSignKeyword_1_0());
}
break;
case 2 :
// InternalPropertiesParser.g:139:4: ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) )
{
// InternalPropertiesParser.g:139:4: ( (lv_append_2_0= PlusSignEqualsSignGreaterThanSign ) )
// InternalPropertiesParser.g:140:5: (lv_append_2_0= PlusSignEqualsSignGreaterThanSign )
{
// InternalPropertiesParser.g:140:5: (lv_append_2_0= PlusSignEqualsSignGreaterThanSign )
// InternalPropertiesParser.g:141:6: lv_append_2_0= PlusSignEqualsSignGreaterThanSign
{
lv_append_2_0=(Token)match(input,PlusSignEqualsSignGreaterThanSign,FollowSets000.FOLLOW_4);
newLeafNode(lv_append_2_0, grammarAccess.getContainedPropertyAssociationAccess().getAppendPlusSignEqualsSignGreaterThanSignKeyword_1_1_0());
if (current==null) {
current = createModelElement(grammarAccess.getContainedPropertyAssociationRule());
}
setWithLastConsumed(current, "append", true, "+=>");
}
}
}
break;
}
// InternalPropertiesParser.g:154:3: ( (lv_constant_3_0= Constant ) )?
int alt2=2;
int LA2_0 = input.LA(1);
if ( (LA2_0==Constant) ) {
alt2=1;
}
switch (alt2) {
case 1 :
// InternalPropertiesParser.g:155:4: (lv_constant_3_0= Constant )
{
// InternalPropertiesParser.g:155:4: (lv_constant_3_0= Constant )
// InternalPropertiesParser.g:156:5: lv_constant_3_0= Constant
{
lv_constant_3_0=(Token)match(input,Constant,FollowSets000.FOLLOW_4);
newLeafNode(lv_constant_3_0, grammarAccess.getContainedPropertyAssociationAccess().getConstantConstantKeyword_2_0());
if (current==null) {
current = createModelElement(grammarAccess.getContainedPropertyAssociationRule());
}
setWithLastConsumed(current, "constant", true, "constant");
}
}
break;
}
// InternalPropertiesParser.g:168:3: ( ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )* )
// InternalPropertiesParser.g:169:4: ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) ) (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )*
{
// InternalPropertiesParser.g:169:4: ( (lv_ownedValue_4_0= ruleOptionalModalPropertyValue ) )
// InternalPropertiesParser.g:170:5: (lv_ownedValue_4_0= ruleOptionalModalPropertyValue )
{
// InternalPropertiesParser.g:170:5: (lv_ownedValue_4_0= ruleOptionalModalPropertyValue )
// InternalPropertiesParser.g:171:6: lv_ownedValue_4_0= ruleOptionalModalPropertyValue
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getOwnedValueOptionalModalPropertyValueParserRuleCall_3_0_0());
pushFollow(FollowSets000.FOLLOW_5);
lv_ownedValue_4_0=ruleOptionalModalPropertyValue();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainedPropertyAssociationRule());
}
add(
current,
"ownedValue",
lv_ownedValue_4_0,
"org.osate.xtext.aadl2.properties.Properties.OptionalModalPropertyValue");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:188:4: (otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) ) )*
loop3:
do {
int alt3=2;
int LA3_0 = input.LA(1);
if ( (LA3_0==Comma) ) {
alt3=1;
}
switch (alt3) {
case 1 :
// InternalPropertiesParser.g:189:5: otherlv_5= Comma ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) )
{
otherlv_5=(Token)match(input,Comma,FollowSets000.FOLLOW_4);
newLeafNode(otherlv_5, grammarAccess.getContainedPropertyAssociationAccess().getCommaKeyword_3_1_0());
// InternalPropertiesParser.g:193:5: ( (lv_ownedValue_6_0= ruleOptionalModalPropertyValue ) )
// InternalPropertiesParser.g:194:6: (lv_ownedValue_6_0= ruleOptionalModalPropertyValue )
{
// InternalPropertiesParser.g:194:6: (lv_ownedValue_6_0= ruleOptionalModalPropertyValue )
// InternalPropertiesParser.g:195:7: lv_ownedValue_6_0= ruleOptionalModalPropertyValue
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getOwnedValueOptionalModalPropertyValueParserRuleCall_3_1_1_0());
pushFollow(FollowSets000.FOLLOW_5);
lv_ownedValue_6_0=ruleOptionalModalPropertyValue();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainedPropertyAssociationRule());
}
add(
current,
"ownedValue",
lv_ownedValue_6_0,
"org.osate.xtext.aadl2.properties.Properties.OptionalModalPropertyValue");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop3;
}
} while (true);
}
// InternalPropertiesParser.g:214:3: ( ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )* )?
int alt5=2;
int LA5_0 = input.LA(1);
if ( (LA5_0==Applies) ) {
alt5=1;
}
switch (alt5) {
case 1 :
// InternalPropertiesParser.g:215:4: ruleAppliesToKeywords ( (lv_appliesTo_8_0= ruleContainmentPath ) ) (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )*
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getAppliesToKeywordsParserRuleCall_4_0());
pushFollow(FollowSets000.FOLLOW_6);
ruleAppliesToKeywords();
state._fsp--;
afterParserOrEnumRuleCall();
// InternalPropertiesParser.g:222:4: ( (lv_appliesTo_8_0= ruleContainmentPath ) )
// InternalPropertiesParser.g:223:5: (lv_appliesTo_8_0= ruleContainmentPath )
{
// InternalPropertiesParser.g:223:5: (lv_appliesTo_8_0= ruleContainmentPath )
// InternalPropertiesParser.g:224:6: lv_appliesTo_8_0= ruleContainmentPath
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getAppliesToContainmentPathParserRuleCall_4_1_0());
pushFollow(FollowSets000.FOLLOW_7);
lv_appliesTo_8_0=ruleContainmentPath();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainedPropertyAssociationRule());
}
add(
current,
"appliesTo",
lv_appliesTo_8_0,
"org.osate.xtext.aadl2.properties.Properties.ContainmentPath");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:241:4: (otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) ) )*
loop4:
do {
int alt4=2;
int LA4_0 = input.LA(1);
if ( (LA4_0==Comma) ) {
alt4=1;
}
switch (alt4) {
case 1 :
// InternalPropertiesParser.g:242:5: otherlv_9= Comma ( (lv_appliesTo_10_0= ruleContainmentPath ) )
{
otherlv_9=(Token)match(input,Comma,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_9, grammarAccess.getContainedPropertyAssociationAccess().getCommaKeyword_4_2_0());
// InternalPropertiesParser.g:246:5: ( (lv_appliesTo_10_0= ruleContainmentPath ) )
// InternalPropertiesParser.g:247:6: (lv_appliesTo_10_0= ruleContainmentPath )
{
// InternalPropertiesParser.g:247:6: (lv_appliesTo_10_0= ruleContainmentPath )
// InternalPropertiesParser.g:248:7: lv_appliesTo_10_0= ruleContainmentPath
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getAppliesToContainmentPathParserRuleCall_4_2_1_0());
pushFollow(FollowSets000.FOLLOW_7);
lv_appliesTo_10_0=ruleContainmentPath();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainedPropertyAssociationRule());
}
add(
current,
"appliesTo",
lv_appliesTo_10_0,
"org.osate.xtext.aadl2.properties.Properties.ContainmentPath");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop4;
}
} while (true);
}
break;
}
// InternalPropertiesParser.g:267:3: ( ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis )?
int alt6=2;
int LA6_0 = input.LA(1);
if ( (LA6_0==In) ) {
alt6=1;
}
switch (alt6) {
case 1 :
// InternalPropertiesParser.g:268:4: ruleInBindingKeywords otherlv_12= LeftParenthesis ( ( ruleQCREF ) ) otherlv_14= RightParenthesis
{
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getInBindingKeywordsParserRuleCall_5_0());
pushFollow(FollowSets000.FOLLOW_8);
ruleInBindingKeywords();
state._fsp--;
afterParserOrEnumRuleCall();
otherlv_12=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_12, grammarAccess.getContainedPropertyAssociationAccess().getLeftParenthesisKeyword_5_1());
// InternalPropertiesParser.g:279:4: ( ( ruleQCREF ) )
// InternalPropertiesParser.g:280:5: ( ruleQCREF )
{
// InternalPropertiesParser.g:280:5: ( ruleQCREF )
// InternalPropertiesParser.g:281:6: ruleQCREF
{
if (current==null) {
current = createModelElement(grammarAccess.getContainedPropertyAssociationRule());
}
newCompositeNode(grammarAccess.getContainedPropertyAssociationAccess().getInBindingClassifierCrossReference_5_2_0());
pushFollow(FollowSets000.FOLLOW_9);
ruleQCREF();
state._fsp--;
afterParserOrEnumRuleCall();
}
}
otherlv_14=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_10);
newLeafNode(otherlv_14, grammarAccess.getContainedPropertyAssociationAccess().getRightParenthesisKeyword_5_3());
}
break;
}
otherlv_15=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_15, grammarAccess.getContainedPropertyAssociationAccess().getSemicolonKeyword_6());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleContainedPropertyAssociation"
// $ANTLR start "entryRuleContainmentPath"
// InternalPropertiesParser.g:308:1: entryRuleContainmentPath returns [EObject current=null] : iv_ruleContainmentPath= ruleContainmentPath EOF ;
public final EObject entryRuleContainmentPath() throws RecognitionException {
EObject current = null;
EObject iv_ruleContainmentPath = null;
try {
// InternalPropertiesParser.g:308:56: (iv_ruleContainmentPath= ruleContainmentPath EOF )
// InternalPropertiesParser.g:309:2: iv_ruleContainmentPath= ruleContainmentPath EOF
{
newCompositeNode(grammarAccess.getContainmentPathRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleContainmentPath=ruleContainmentPath();
state._fsp--;
current =iv_ruleContainmentPath;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleContainmentPath"
// $ANTLR start "ruleContainmentPath"
// InternalPropertiesParser.g:315:1: ruleContainmentPath returns [EObject current=null] : ( (lv_path_0_0= ruleContainmentPathElement ) ) ;
public final EObject ruleContainmentPath() throws RecognitionException {
EObject current = null;
EObject lv_path_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:321:2: ( ( (lv_path_0_0= ruleContainmentPathElement ) ) )
// InternalPropertiesParser.g:322:2: ( (lv_path_0_0= ruleContainmentPathElement ) )
{
// InternalPropertiesParser.g:322:2: ( (lv_path_0_0= ruleContainmentPathElement ) )
// InternalPropertiesParser.g:323:3: (lv_path_0_0= ruleContainmentPathElement )
{
// InternalPropertiesParser.g:323:3: (lv_path_0_0= ruleContainmentPathElement )
// InternalPropertiesParser.g:324:4: lv_path_0_0= ruleContainmentPathElement
{
newCompositeNode(grammarAccess.getContainmentPathAccess().getPathContainmentPathElementParserRuleCall_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_path_0_0=ruleContainmentPathElement();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainmentPathRule());
}
set(
current,
"path",
lv_path_0_0,
"org.osate.xtext.aadl2.properties.Properties.ContainmentPathElement");
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleContainmentPath"
// $ANTLR start "entryRuleOptionalModalPropertyValue"
// InternalPropertiesParser.g:344:1: entryRuleOptionalModalPropertyValue returns [EObject current=null] : iv_ruleOptionalModalPropertyValue= ruleOptionalModalPropertyValue EOF ;
public final EObject entryRuleOptionalModalPropertyValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleOptionalModalPropertyValue = null;
try {
// InternalPropertiesParser.g:344:67: (iv_ruleOptionalModalPropertyValue= ruleOptionalModalPropertyValue EOF )
// InternalPropertiesParser.g:345:2: iv_ruleOptionalModalPropertyValue= ruleOptionalModalPropertyValue EOF
{
newCompositeNode(grammarAccess.getOptionalModalPropertyValueRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleOptionalModalPropertyValue=ruleOptionalModalPropertyValue();
state._fsp--;
current =iv_ruleOptionalModalPropertyValue;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleOptionalModalPropertyValue"
// $ANTLR start "ruleOptionalModalPropertyValue"
// InternalPropertiesParser.g:351:1: ruleOptionalModalPropertyValue returns [EObject current=null] : ( ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )? ) ;
public final EObject ruleOptionalModalPropertyValue() throws RecognitionException {
EObject current = null;
Token otherlv_2=null;
Token otherlv_3=null;
Token otherlv_4=null;
Token otherlv_5=null;
Token otherlv_6=null;
EObject lv_ownedValue_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:357:2: ( ( ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )? ) )
// InternalPropertiesParser.g:358:2: ( ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )? )
{
// InternalPropertiesParser.g:358:2: ( ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )? )
// InternalPropertiesParser.g:359:3: ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )?
{
// InternalPropertiesParser.g:359:3: ( (lv_ownedValue_0_0= rulePropertyExpression ) )
// InternalPropertiesParser.g:360:4: (lv_ownedValue_0_0= rulePropertyExpression )
{
// InternalPropertiesParser.g:360:4: (lv_ownedValue_0_0= rulePropertyExpression )
// InternalPropertiesParser.g:361:5: lv_ownedValue_0_0= rulePropertyExpression
{
newCompositeNode(grammarAccess.getOptionalModalPropertyValueAccess().getOwnedValuePropertyExpressionParserRuleCall_0_0());
pushFollow(FollowSets000.FOLLOW_11);
lv_ownedValue_0_0=rulePropertyExpression();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getOptionalModalPropertyValueRule());
}
set(
current,
"ownedValue",
lv_ownedValue_0_0,
"org.osate.xtext.aadl2.properties.Properties.PropertyExpression");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:378:3: ( ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis )?
int alt8=2;
int LA8_0 = input.LA(1);
if ( (LA8_0==In) ) {
int LA8_1 = input.LA(2);
if ( (LA8_1==Modes) ) {
alt8=1;
}
}
switch (alt8) {
case 1 :
// InternalPropertiesParser.g:379:4: ruleInModesKeywords otherlv_2= LeftParenthesis ( (otherlv_3= RULE_ID ) ) (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )* otherlv_6= RightParenthesis
{
newCompositeNode(grammarAccess.getOptionalModalPropertyValueAccess().getInModesKeywordsParserRuleCall_1_0());
pushFollow(FollowSets000.FOLLOW_8);
ruleInModesKeywords();
state._fsp--;
afterParserOrEnumRuleCall();
otherlv_2=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_2, grammarAccess.getOptionalModalPropertyValueAccess().getLeftParenthesisKeyword_1_1());
// InternalPropertiesParser.g:390:4: ( (otherlv_3= RULE_ID ) )
// InternalPropertiesParser.g:391:5: (otherlv_3= RULE_ID )
{
// InternalPropertiesParser.g:391:5: (otherlv_3= RULE_ID )
// InternalPropertiesParser.g:392:6: otherlv_3= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getOptionalModalPropertyValueRule());
}
otherlv_3=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_12);
newLeafNode(otherlv_3, grammarAccess.getOptionalModalPropertyValueAccess().getInModeModeCrossReference_1_2_0());
}
}
// InternalPropertiesParser.g:403:4: (otherlv_4= Comma ( (otherlv_5= RULE_ID ) ) )*
loop7:
do {
int alt7=2;
int LA7_0 = input.LA(1);
if ( (LA7_0==Comma) ) {
alt7=1;
}
switch (alt7) {
case 1 :
// InternalPropertiesParser.g:404:5: otherlv_4= Comma ( (otherlv_5= RULE_ID ) )
{
otherlv_4=(Token)match(input,Comma,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_4, grammarAccess.getOptionalModalPropertyValueAccess().getCommaKeyword_1_3_0());
// InternalPropertiesParser.g:408:5: ( (otherlv_5= RULE_ID ) )
// InternalPropertiesParser.g:409:6: (otherlv_5= RULE_ID )
{
// InternalPropertiesParser.g:409:6: (otherlv_5= RULE_ID )
// InternalPropertiesParser.g:410:7: otherlv_5= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getOptionalModalPropertyValueRule());
}
otherlv_5=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_12);
newLeafNode(otherlv_5, grammarAccess.getOptionalModalPropertyValueAccess().getInModeModeCrossReference_1_3_1_0());
}
}
}
break;
default :
break loop7;
}
} while (true);
otherlv_6=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_6, grammarAccess.getOptionalModalPropertyValueAccess().getRightParenthesisKeyword_1_4());
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleOptionalModalPropertyValue"
// $ANTLR start "entryRulePropertyValue"
// InternalPropertiesParser.g:431:1: entryRulePropertyValue returns [EObject current=null] : iv_rulePropertyValue= rulePropertyValue EOF ;
public final EObject entryRulePropertyValue() throws RecognitionException {
EObject current = null;
EObject iv_rulePropertyValue = null;
try {
// InternalPropertiesParser.g:431:54: (iv_rulePropertyValue= rulePropertyValue EOF )
// InternalPropertiesParser.g:432:2: iv_rulePropertyValue= rulePropertyValue EOF
{
newCompositeNode(grammarAccess.getPropertyValueRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_rulePropertyValue=rulePropertyValue();
state._fsp--;
current =iv_rulePropertyValue;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRulePropertyValue"
// $ANTLR start "rulePropertyValue"
// InternalPropertiesParser.g:438:1: rulePropertyValue returns [EObject current=null] : ( (lv_ownedValue_0_0= rulePropertyExpression ) ) ;
public final EObject rulePropertyValue() throws RecognitionException {
EObject current = null;
EObject lv_ownedValue_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:444:2: ( ( (lv_ownedValue_0_0= rulePropertyExpression ) ) )
// InternalPropertiesParser.g:445:2: ( (lv_ownedValue_0_0= rulePropertyExpression ) )
{
// InternalPropertiesParser.g:445:2: ( (lv_ownedValue_0_0= rulePropertyExpression ) )
// InternalPropertiesParser.g:446:3: (lv_ownedValue_0_0= rulePropertyExpression )
{
// InternalPropertiesParser.g:446:3: (lv_ownedValue_0_0= rulePropertyExpression )
// InternalPropertiesParser.g:447:4: lv_ownedValue_0_0= rulePropertyExpression
{
newCompositeNode(grammarAccess.getPropertyValueAccess().getOwnedValuePropertyExpressionParserRuleCall_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_ownedValue_0_0=rulePropertyExpression();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getPropertyValueRule());
}
set(
current,
"ownedValue",
lv_ownedValue_0_0,
"org.osate.xtext.aadl2.properties.Properties.PropertyExpression");
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "rulePropertyValue"
// $ANTLR start "entryRulePropertyExpression"
// InternalPropertiesParser.g:467:1: entryRulePropertyExpression returns [EObject current=null] : iv_rulePropertyExpression= rulePropertyExpression EOF ;
public final EObject entryRulePropertyExpression() throws RecognitionException {
EObject current = null;
EObject iv_rulePropertyExpression = null;
try {
// InternalPropertiesParser.g:467:59: (iv_rulePropertyExpression= rulePropertyExpression EOF )
// InternalPropertiesParser.g:468:2: iv_rulePropertyExpression= rulePropertyExpression EOF
{
newCompositeNode(grammarAccess.getPropertyExpressionRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_rulePropertyExpression=rulePropertyExpression();
state._fsp--;
current =iv_rulePropertyExpression;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRulePropertyExpression"
// $ANTLR start "rulePropertyExpression"
// InternalPropertiesParser.g:474:1: rulePropertyExpression returns [EObject current=null] : (this_RecordTerm_0= ruleRecordTerm | this_ReferenceTerm_1= ruleReferenceTerm | this_ComponentClassifierTerm_2= ruleComponentClassifierTerm | this_ComputedTerm_3= ruleComputedTerm | this_StringTerm_4= ruleStringTerm | this_NumericRangeTerm_5= ruleNumericRangeTerm | this_RealTerm_6= ruleRealTerm | this_IntegerTerm_7= ruleIntegerTerm | this_ListTerm_8= ruleListTerm | this_BooleanLiteral_9= ruleBooleanLiteral | this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm ) ;
public final EObject rulePropertyExpression() throws RecognitionException {
EObject current = null;
EObject this_RecordTerm_0 = null;
EObject this_ReferenceTerm_1 = null;
EObject this_ComponentClassifierTerm_2 = null;
EObject this_ComputedTerm_3 = null;
EObject this_StringTerm_4 = null;
EObject this_NumericRangeTerm_5 = null;
EObject this_RealTerm_6 = null;
EObject this_IntegerTerm_7 = null;
EObject this_ListTerm_8 = null;
EObject this_BooleanLiteral_9 = null;
EObject this_LiteralorReferenceTerm_10 = null;
enterRule();
try {
// InternalPropertiesParser.g:480:2: ( (this_RecordTerm_0= ruleRecordTerm | this_ReferenceTerm_1= ruleReferenceTerm | this_ComponentClassifierTerm_2= ruleComponentClassifierTerm | this_ComputedTerm_3= ruleComputedTerm | this_StringTerm_4= ruleStringTerm | this_NumericRangeTerm_5= ruleNumericRangeTerm | this_RealTerm_6= ruleRealTerm | this_IntegerTerm_7= ruleIntegerTerm | this_ListTerm_8= ruleListTerm | this_BooleanLiteral_9= ruleBooleanLiteral | this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm ) )
// InternalPropertiesParser.g:481:2: (this_RecordTerm_0= ruleRecordTerm | this_ReferenceTerm_1= ruleReferenceTerm | this_ComponentClassifierTerm_2= ruleComponentClassifierTerm | this_ComputedTerm_3= ruleComputedTerm | this_StringTerm_4= ruleStringTerm | this_NumericRangeTerm_5= ruleNumericRangeTerm | this_RealTerm_6= ruleRealTerm | this_IntegerTerm_7= ruleIntegerTerm | this_ListTerm_8= ruleListTerm | this_BooleanLiteral_9= ruleBooleanLiteral | this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm )
{
// InternalPropertiesParser.g:481:2: (this_RecordTerm_0= ruleRecordTerm | this_ReferenceTerm_1= ruleReferenceTerm | this_ComponentClassifierTerm_2= ruleComponentClassifierTerm | this_ComputedTerm_3= ruleComputedTerm | this_StringTerm_4= ruleStringTerm | this_NumericRangeTerm_5= ruleNumericRangeTerm | this_RealTerm_6= ruleRealTerm | this_IntegerTerm_7= ruleIntegerTerm | this_ListTerm_8= ruleListTerm | this_BooleanLiteral_9= ruleBooleanLiteral | this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm )
int alt9=11;
alt9 = dfa9.predict(input);
switch (alt9) {
case 1 :
// InternalPropertiesParser.g:482:3: this_RecordTerm_0= ruleRecordTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getRecordTermParserRuleCall_0());
pushFollow(FollowSets000.FOLLOW_2);
this_RecordTerm_0=ruleRecordTerm();
state._fsp--;
current = this_RecordTerm_0;
afterParserOrEnumRuleCall();
}
break;
case 2 :
// InternalPropertiesParser.g:491:3: this_ReferenceTerm_1= ruleReferenceTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getReferenceTermParserRuleCall_1());
pushFollow(FollowSets000.FOLLOW_2);
this_ReferenceTerm_1=ruleReferenceTerm();
state._fsp--;
current = this_ReferenceTerm_1;
afterParserOrEnumRuleCall();
}
break;
case 3 :
// InternalPropertiesParser.g:500:3: this_ComponentClassifierTerm_2= ruleComponentClassifierTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getComponentClassifierTermParserRuleCall_2());
pushFollow(FollowSets000.FOLLOW_2);
this_ComponentClassifierTerm_2=ruleComponentClassifierTerm();
state._fsp--;
current = this_ComponentClassifierTerm_2;
afterParserOrEnumRuleCall();
}
break;
case 4 :
// InternalPropertiesParser.g:509:3: this_ComputedTerm_3= ruleComputedTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getComputedTermParserRuleCall_3());
pushFollow(FollowSets000.FOLLOW_2);
this_ComputedTerm_3=ruleComputedTerm();
state._fsp--;
current = this_ComputedTerm_3;
afterParserOrEnumRuleCall();
}
break;
case 5 :
// InternalPropertiesParser.g:518:3: this_StringTerm_4= ruleStringTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getStringTermParserRuleCall_4());
pushFollow(FollowSets000.FOLLOW_2);
this_StringTerm_4=ruleStringTerm();
state._fsp--;
current = this_StringTerm_4;
afterParserOrEnumRuleCall();
}
break;
case 6 :
// InternalPropertiesParser.g:527:3: this_NumericRangeTerm_5= ruleNumericRangeTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getNumericRangeTermParserRuleCall_5());
pushFollow(FollowSets000.FOLLOW_2);
this_NumericRangeTerm_5=ruleNumericRangeTerm();
state._fsp--;
current = this_NumericRangeTerm_5;
afterParserOrEnumRuleCall();
}
break;
case 7 :
// InternalPropertiesParser.g:536:3: this_RealTerm_6= ruleRealTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getRealTermParserRuleCall_6());
pushFollow(FollowSets000.FOLLOW_2);
this_RealTerm_6=ruleRealTerm();
state._fsp--;
current = this_RealTerm_6;
afterParserOrEnumRuleCall();
}
break;
case 8 :
// InternalPropertiesParser.g:545:3: this_IntegerTerm_7= ruleIntegerTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getIntegerTermParserRuleCall_7());
pushFollow(FollowSets000.FOLLOW_2);
this_IntegerTerm_7=ruleIntegerTerm();
state._fsp--;
current = this_IntegerTerm_7;
afterParserOrEnumRuleCall();
}
break;
case 9 :
// InternalPropertiesParser.g:554:3: this_ListTerm_8= ruleListTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getListTermParserRuleCall_8());
pushFollow(FollowSets000.FOLLOW_2);
this_ListTerm_8=ruleListTerm();
state._fsp--;
current = this_ListTerm_8;
afterParserOrEnumRuleCall();
}
break;
case 10 :
// InternalPropertiesParser.g:563:3: this_BooleanLiteral_9= ruleBooleanLiteral
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getBooleanLiteralParserRuleCall_9());
pushFollow(FollowSets000.FOLLOW_2);
this_BooleanLiteral_9=ruleBooleanLiteral();
state._fsp--;
current = this_BooleanLiteral_9;
afterParserOrEnumRuleCall();
}
break;
case 11 :
// InternalPropertiesParser.g:572:3: this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm
{
newCompositeNode(grammarAccess.getPropertyExpressionAccess().getLiteralorReferenceTermParserRuleCall_10());
pushFollow(FollowSets000.FOLLOW_2);
this_LiteralorReferenceTerm_10=ruleLiteralorReferenceTerm();
state._fsp--;
current = this_LiteralorReferenceTerm_10;
afterParserOrEnumRuleCall();
}
break;
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "rulePropertyExpression"
// $ANTLR start "entryRuleLiteralorReferenceTerm"
// InternalPropertiesParser.g:584:1: entryRuleLiteralorReferenceTerm returns [EObject current=null] : iv_ruleLiteralorReferenceTerm= ruleLiteralorReferenceTerm EOF ;
public final EObject entryRuleLiteralorReferenceTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleLiteralorReferenceTerm = null;
try {
// InternalPropertiesParser.g:584:63: (iv_ruleLiteralorReferenceTerm= ruleLiteralorReferenceTerm EOF )
// InternalPropertiesParser.g:585:2: iv_ruleLiteralorReferenceTerm= ruleLiteralorReferenceTerm EOF
{
newCompositeNode(grammarAccess.getLiteralorReferenceTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleLiteralorReferenceTerm=ruleLiteralorReferenceTerm();
state._fsp--;
current =iv_ruleLiteralorReferenceTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleLiteralorReferenceTerm"
// $ANTLR start "ruleLiteralorReferenceTerm"
// InternalPropertiesParser.g:591:1: ruleLiteralorReferenceTerm returns [EObject current=null] : ( ( ruleQPREF ) ) ;
public final EObject ruleLiteralorReferenceTerm() throws RecognitionException {
EObject current = null;
enterRule();
try {
// InternalPropertiesParser.g:597:2: ( ( ( ruleQPREF ) ) )
// InternalPropertiesParser.g:598:2: ( ( ruleQPREF ) )
{
// InternalPropertiesParser.g:598:2: ( ( ruleQPREF ) )
// InternalPropertiesParser.g:599:3: ( ruleQPREF )
{
// InternalPropertiesParser.g:599:3: ( ruleQPREF )
// InternalPropertiesParser.g:600:4: ruleQPREF
{
if (current==null) {
current = createModelElement(grammarAccess.getLiteralorReferenceTermRule());
}
newCompositeNode(grammarAccess.getLiteralorReferenceTermAccess().getNamedValueAbstractNamedValueCrossReference_0());
pushFollow(FollowSets000.FOLLOW_2);
ruleQPREF();
state._fsp--;
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleLiteralorReferenceTerm"
// $ANTLR start "entryRuleBooleanLiteral"
// InternalPropertiesParser.g:617:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ;
public final EObject entryRuleBooleanLiteral() throws RecognitionException {
EObject current = null;
EObject iv_ruleBooleanLiteral = null;
try {
// InternalPropertiesParser.g:617:55: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF )
// InternalPropertiesParser.g:618:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF
{
newCompositeNode(grammarAccess.getBooleanLiteralRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleBooleanLiteral=ruleBooleanLiteral();
state._fsp--;
current =iv_ruleBooleanLiteral;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleBooleanLiteral"
// $ANTLR start "ruleBooleanLiteral"
// InternalPropertiesParser.g:624:1: ruleBooleanLiteral returns [EObject current=null] : ( () ( ( (lv_value_1_0= True ) ) | otherlv_2= False ) ) ;
public final EObject ruleBooleanLiteral() throws RecognitionException {
EObject current = null;
Token lv_value_1_0=null;
Token otherlv_2=null;
enterRule();
try {
// InternalPropertiesParser.g:630:2: ( ( () ( ( (lv_value_1_0= True ) ) | otherlv_2= False ) ) )
// InternalPropertiesParser.g:631:2: ( () ( ( (lv_value_1_0= True ) ) | otherlv_2= False ) )
{
// InternalPropertiesParser.g:631:2: ( () ( ( (lv_value_1_0= True ) ) | otherlv_2= False ) )
// InternalPropertiesParser.g:632:3: () ( ( (lv_value_1_0= True ) ) | otherlv_2= False )
{
// InternalPropertiesParser.g:632:3: ()
// InternalPropertiesParser.g:633:4:
{
current = forceCreateModelElement(
grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(),
current);
}
// InternalPropertiesParser.g:639:3: ( ( (lv_value_1_0= True ) ) | otherlv_2= False )
int alt10=2;
int LA10_0 = input.LA(1);
if ( (LA10_0==True) ) {
alt10=1;
}
else if ( (LA10_0==False) ) {
alt10=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 10, 0, input);
throw nvae;
}
switch (alt10) {
case 1 :
// InternalPropertiesParser.g:640:4: ( (lv_value_1_0= True ) )
{
// InternalPropertiesParser.g:640:4: ( (lv_value_1_0= True ) )
// InternalPropertiesParser.g:641:5: (lv_value_1_0= True )
{
// InternalPropertiesParser.g:641:5: (lv_value_1_0= True )
// InternalPropertiesParser.g:642:6: lv_value_1_0= True
{
lv_value_1_0=(Token)match(input,True,FollowSets000.FOLLOW_2);
newLeafNode(lv_value_1_0, grammarAccess.getBooleanLiteralAccess().getValueTrueKeyword_1_0_0());
if (current==null) {
current = createModelElement(grammarAccess.getBooleanLiteralRule());
}
setWithLastConsumed(current, "value", true, "true");
}
}
}
break;
case 2 :
// InternalPropertiesParser.g:655:4: otherlv_2= False
{
otherlv_2=(Token)match(input,False,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_2, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_1());
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleBooleanLiteral"
// $ANTLR start "entryRuleConstantValue"
// InternalPropertiesParser.g:664:1: entryRuleConstantValue returns [EObject current=null] : iv_ruleConstantValue= ruleConstantValue EOF ;
public final EObject entryRuleConstantValue() throws RecognitionException {
EObject current = null;
EObject iv_ruleConstantValue = null;
try {
// InternalPropertiesParser.g:664:54: (iv_ruleConstantValue= ruleConstantValue EOF )
// InternalPropertiesParser.g:665:2: iv_ruleConstantValue= ruleConstantValue EOF
{
newCompositeNode(grammarAccess.getConstantValueRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleConstantValue=ruleConstantValue();
state._fsp--;
current =iv_ruleConstantValue;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleConstantValue"
// $ANTLR start "ruleConstantValue"
// InternalPropertiesParser.g:671:1: ruleConstantValue returns [EObject current=null] : ( ( ruleQPREF ) ) ;
public final EObject ruleConstantValue() throws RecognitionException {
EObject current = null;
enterRule();
try {
// InternalPropertiesParser.g:677:2: ( ( ( ruleQPREF ) ) )
// InternalPropertiesParser.g:678:2: ( ( ruleQPREF ) )
{
// InternalPropertiesParser.g:678:2: ( ( ruleQPREF ) )
// InternalPropertiesParser.g:679:3: ( ruleQPREF )
{
// InternalPropertiesParser.g:679:3: ( ruleQPREF )
// InternalPropertiesParser.g:680:4: ruleQPREF
{
if (current==null) {
current = createModelElement(grammarAccess.getConstantValueRule());
}
newCompositeNode(grammarAccess.getConstantValueAccess().getNamedValuePropertyConstantCrossReference_0());
pushFollow(FollowSets000.FOLLOW_2);
ruleQPREF();
state._fsp--;
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleConstantValue"
// $ANTLR start "entryRuleReferenceTerm"
// InternalPropertiesParser.g:697:1: entryRuleReferenceTerm returns [EObject current=null] : iv_ruleReferenceTerm= ruleReferenceTerm EOF ;
public final EObject entryRuleReferenceTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleReferenceTerm = null;
try {
// InternalPropertiesParser.g:697:54: (iv_ruleReferenceTerm= ruleReferenceTerm EOF )
// InternalPropertiesParser.g:698:2: iv_ruleReferenceTerm= ruleReferenceTerm EOF
{
newCompositeNode(grammarAccess.getReferenceTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleReferenceTerm=ruleReferenceTerm();
state._fsp--;
current =iv_ruleReferenceTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleReferenceTerm"
// $ANTLR start "ruleReferenceTerm"
// InternalPropertiesParser.g:704:1: ruleReferenceTerm returns [EObject current=null] : (otherlv_0= Reference otherlv_1= LeftParenthesis ( (lv_path_2_0= ruleContainmentPathElement ) ) otherlv_3= RightParenthesis ) ;
public final EObject ruleReferenceTerm() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
EObject lv_path_2_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:710:2: ( (otherlv_0= Reference otherlv_1= LeftParenthesis ( (lv_path_2_0= ruleContainmentPathElement ) ) otherlv_3= RightParenthesis ) )
// InternalPropertiesParser.g:711:2: (otherlv_0= Reference otherlv_1= LeftParenthesis ( (lv_path_2_0= ruleContainmentPathElement ) ) otherlv_3= RightParenthesis )
{
// InternalPropertiesParser.g:711:2: (otherlv_0= Reference otherlv_1= LeftParenthesis ( (lv_path_2_0= ruleContainmentPathElement ) ) otherlv_3= RightParenthesis )
// InternalPropertiesParser.g:712:3: otherlv_0= Reference otherlv_1= LeftParenthesis ( (lv_path_2_0= ruleContainmentPathElement ) ) otherlv_3= RightParenthesis
{
otherlv_0=(Token)match(input,Reference,FollowSets000.FOLLOW_8);
newLeafNode(otherlv_0, grammarAccess.getReferenceTermAccess().getReferenceKeyword_0());
otherlv_1=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_1, grammarAccess.getReferenceTermAccess().getLeftParenthesisKeyword_1());
// InternalPropertiesParser.g:720:3: ( (lv_path_2_0= ruleContainmentPathElement ) )
// InternalPropertiesParser.g:721:4: (lv_path_2_0= ruleContainmentPathElement )
{
// InternalPropertiesParser.g:721:4: (lv_path_2_0= ruleContainmentPathElement )
// InternalPropertiesParser.g:722:5: lv_path_2_0= ruleContainmentPathElement
{
newCompositeNode(grammarAccess.getReferenceTermAccess().getPathContainmentPathElementParserRuleCall_2_0());
pushFollow(FollowSets000.FOLLOW_9);
lv_path_2_0=ruleContainmentPathElement();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getReferenceTermRule());
}
set(
current,
"path",
lv_path_2_0,
"org.osate.xtext.aadl2.properties.Properties.ContainmentPathElement");
afterParserOrEnumRuleCall();
}
}
otherlv_3=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_3, grammarAccess.getReferenceTermAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleReferenceTerm"
// $ANTLR start "entryRuleRecordTerm"
// InternalPropertiesParser.g:747:1: entryRuleRecordTerm returns [EObject current=null] : iv_ruleRecordTerm= ruleRecordTerm EOF ;
public final EObject entryRuleRecordTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleRecordTerm = null;
try {
// InternalPropertiesParser.g:747:51: (iv_ruleRecordTerm= ruleRecordTerm EOF )
// InternalPropertiesParser.g:748:2: iv_ruleRecordTerm= ruleRecordTerm EOF
{
newCompositeNode(grammarAccess.getRecordTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleRecordTerm=ruleRecordTerm();
state._fsp--;
current =iv_ruleRecordTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleRecordTerm"
// $ANTLR start "ruleRecordTerm"
// InternalPropertiesParser.g:754:1: ruleRecordTerm returns [EObject current=null] : (otherlv_0= LeftSquareBracket ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+ otherlv_2= RightSquareBracket ) ;
public final EObject ruleRecordTerm() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
EObject lv_ownedFieldValue_1_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:760:2: ( (otherlv_0= LeftSquareBracket ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+ otherlv_2= RightSquareBracket ) )
// InternalPropertiesParser.g:761:2: (otherlv_0= LeftSquareBracket ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+ otherlv_2= RightSquareBracket )
{
// InternalPropertiesParser.g:761:2: (otherlv_0= LeftSquareBracket ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+ otherlv_2= RightSquareBracket )
// InternalPropertiesParser.g:762:3: otherlv_0= LeftSquareBracket ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+ otherlv_2= RightSquareBracket
{
otherlv_0=(Token)match(input,LeftSquareBracket,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_0, grammarAccess.getRecordTermAccess().getLeftSquareBracketKeyword_0());
// InternalPropertiesParser.g:766:3: ( (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation ) )+
int cnt11=0;
loop11:
do {
int alt11=2;
int LA11_0 = input.LA(1);
if ( (LA11_0==RULE_ID) ) {
alt11=1;
}
switch (alt11) {
case 1 :
// InternalPropertiesParser.g:767:4: (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation )
{
// InternalPropertiesParser.g:767:4: (lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation )
// InternalPropertiesParser.g:768:5: lv_ownedFieldValue_1_0= ruleFieldPropertyAssociation
{
newCompositeNode(grammarAccess.getRecordTermAccess().getOwnedFieldValueFieldPropertyAssociationParserRuleCall_1_0());
pushFollow(FollowSets000.FOLLOW_13);
lv_ownedFieldValue_1_0=ruleFieldPropertyAssociation();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getRecordTermRule());
}
add(
current,
"ownedFieldValue",
lv_ownedFieldValue_1_0,
"org.osate.xtext.aadl2.properties.Properties.FieldPropertyAssociation");
afterParserOrEnumRuleCall();
}
}
break;
default :
if ( cnt11 >= 1 ) break loop11;
EarlyExitException eee =
new EarlyExitException(11, input);
throw eee;
}
cnt11++;
} while (true);
otherlv_2=(Token)match(input,RightSquareBracket,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_2, grammarAccess.getRecordTermAccess().getRightSquareBracketKeyword_2());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleRecordTerm"
// $ANTLR start "entryRuleComputedTerm"
// InternalPropertiesParser.g:793:1: entryRuleComputedTerm returns [EObject current=null] : iv_ruleComputedTerm= ruleComputedTerm EOF ;
public final EObject entryRuleComputedTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleComputedTerm = null;
try {
// InternalPropertiesParser.g:793:53: (iv_ruleComputedTerm= ruleComputedTerm EOF )
// InternalPropertiesParser.g:794:2: iv_ruleComputedTerm= ruleComputedTerm EOF
{
newCompositeNode(grammarAccess.getComputedTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleComputedTerm=ruleComputedTerm();
state._fsp--;
current =iv_ruleComputedTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleComputedTerm"
// $ANTLR start "ruleComputedTerm"
// InternalPropertiesParser.g:800:1: ruleComputedTerm returns [EObject current=null] : (otherlv_0= Compute otherlv_1= LeftParenthesis ( (lv_function_2_0= RULE_ID ) ) otherlv_3= RightParenthesis ) ;
public final EObject ruleComputedTerm() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token lv_function_2_0=null;
Token otherlv_3=null;
enterRule();
try {
// InternalPropertiesParser.g:806:2: ( (otherlv_0= Compute otherlv_1= LeftParenthesis ( (lv_function_2_0= RULE_ID ) ) otherlv_3= RightParenthesis ) )
// InternalPropertiesParser.g:807:2: (otherlv_0= Compute otherlv_1= LeftParenthesis ( (lv_function_2_0= RULE_ID ) ) otherlv_3= RightParenthesis )
{
// InternalPropertiesParser.g:807:2: (otherlv_0= Compute otherlv_1= LeftParenthesis ( (lv_function_2_0= RULE_ID ) ) otherlv_3= RightParenthesis )
// InternalPropertiesParser.g:808:3: otherlv_0= Compute otherlv_1= LeftParenthesis ( (lv_function_2_0= RULE_ID ) ) otherlv_3= RightParenthesis
{
otherlv_0=(Token)match(input,Compute,FollowSets000.FOLLOW_8);
newLeafNode(otherlv_0, grammarAccess.getComputedTermAccess().getComputeKeyword_0());
otherlv_1=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_1, grammarAccess.getComputedTermAccess().getLeftParenthesisKeyword_1());
// InternalPropertiesParser.g:816:3: ( (lv_function_2_0= RULE_ID ) )
// InternalPropertiesParser.g:817:4: (lv_function_2_0= RULE_ID )
{
// InternalPropertiesParser.g:817:4: (lv_function_2_0= RULE_ID )
// InternalPropertiesParser.g:818:5: lv_function_2_0= RULE_ID
{
lv_function_2_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_9);
newLeafNode(lv_function_2_0, grammarAccess.getComputedTermAccess().getFunctionIDTerminalRuleCall_2_0());
if (current==null) {
current = createModelElement(grammarAccess.getComputedTermRule());
}
setWithLastConsumed(
current,
"function",
lv_function_2_0,
"org.osate.xtext.aadl2.properties.Properties.ID");
}
}
otherlv_3=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_3, grammarAccess.getComputedTermAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleComputedTerm"
// $ANTLR start "entryRuleComponentClassifierTerm"
// InternalPropertiesParser.g:842:1: entryRuleComponentClassifierTerm returns [EObject current=null] : iv_ruleComponentClassifierTerm= ruleComponentClassifierTerm EOF ;
public final EObject entryRuleComponentClassifierTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleComponentClassifierTerm = null;
try {
// InternalPropertiesParser.g:842:64: (iv_ruleComponentClassifierTerm= ruleComponentClassifierTerm EOF )
// InternalPropertiesParser.g:843:2: iv_ruleComponentClassifierTerm= ruleComponentClassifierTerm EOF
{
newCompositeNode(grammarAccess.getComponentClassifierTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleComponentClassifierTerm=ruleComponentClassifierTerm();
state._fsp--;
current =iv_ruleComponentClassifierTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleComponentClassifierTerm"
// $ANTLR start "ruleComponentClassifierTerm"
// InternalPropertiesParser.g:849:1: ruleComponentClassifierTerm returns [EObject current=null] : (otherlv_0= Classifier otherlv_1= LeftParenthesis ( ( ruleQCREF ) ) otherlv_3= RightParenthesis ) ;
public final EObject ruleComponentClassifierTerm() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
enterRule();
try {
// InternalPropertiesParser.g:855:2: ( (otherlv_0= Classifier otherlv_1= LeftParenthesis ( ( ruleQCREF ) ) otherlv_3= RightParenthesis ) )
// InternalPropertiesParser.g:856:2: (otherlv_0= Classifier otherlv_1= LeftParenthesis ( ( ruleQCREF ) ) otherlv_3= RightParenthesis )
{
// InternalPropertiesParser.g:856:2: (otherlv_0= Classifier otherlv_1= LeftParenthesis ( ( ruleQCREF ) ) otherlv_3= RightParenthesis )
// InternalPropertiesParser.g:857:3: otherlv_0= Classifier otherlv_1= LeftParenthesis ( ( ruleQCREF ) ) otherlv_3= RightParenthesis
{
otherlv_0=(Token)match(input,Classifier,FollowSets000.FOLLOW_8);
newLeafNode(otherlv_0, grammarAccess.getComponentClassifierTermAccess().getClassifierKeyword_0());
otherlv_1=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_1, grammarAccess.getComponentClassifierTermAccess().getLeftParenthesisKeyword_1());
// InternalPropertiesParser.g:865:3: ( ( ruleQCREF ) )
// InternalPropertiesParser.g:866:4: ( ruleQCREF )
{
// InternalPropertiesParser.g:866:4: ( ruleQCREF )
// InternalPropertiesParser.g:867:5: ruleQCREF
{
if (current==null) {
current = createModelElement(grammarAccess.getComponentClassifierTermRule());
}
newCompositeNode(grammarAccess.getComponentClassifierTermAccess().getClassifierComponentClassifierCrossReference_2_0());
pushFollow(FollowSets000.FOLLOW_9);
ruleQCREF();
state._fsp--;
afterParserOrEnumRuleCall();
}
}
otherlv_3=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_3, grammarAccess.getComponentClassifierTermAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleComponentClassifierTerm"
// $ANTLR start "entryRuleListTerm"
// InternalPropertiesParser.g:889:1: entryRuleListTerm returns [EObject current=null] : iv_ruleListTerm= ruleListTerm EOF ;
public final EObject entryRuleListTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleListTerm = null;
try {
// InternalPropertiesParser.g:889:49: (iv_ruleListTerm= ruleListTerm EOF )
// InternalPropertiesParser.g:890:2: iv_ruleListTerm= ruleListTerm EOF
{
newCompositeNode(grammarAccess.getListTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleListTerm=ruleListTerm();
state._fsp--;
current =iv_ruleListTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleListTerm"
// $ANTLR start "ruleListTerm"
// InternalPropertiesParser.g:896:1: ruleListTerm returns [EObject current=null] : ( () otherlv_1= LeftParenthesis ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )? otherlv_5= RightParenthesis ) ;
public final EObject ruleListTerm() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
EObject lv_ownedListElement_2_0 = null;
EObject lv_ownedListElement_4_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:902:2: ( ( () otherlv_1= LeftParenthesis ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )? otherlv_5= RightParenthesis ) )
// InternalPropertiesParser.g:903:2: ( () otherlv_1= LeftParenthesis ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )? otherlv_5= RightParenthesis )
{
// InternalPropertiesParser.g:903:2: ( () otherlv_1= LeftParenthesis ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )? otherlv_5= RightParenthesis )
// InternalPropertiesParser.g:904:3: () otherlv_1= LeftParenthesis ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )? otherlv_5= RightParenthesis
{
// InternalPropertiesParser.g:904:3: ()
// InternalPropertiesParser.g:905:4:
{
current = forceCreateModelElement(
grammarAccess.getListTermAccess().getListValueAction_0(),
current);
}
otherlv_1=(Token)match(input,LeftParenthesis,FollowSets000.FOLLOW_14);
newLeafNode(otherlv_1, grammarAccess.getListTermAccess().getLeftParenthesisKeyword_1());
// InternalPropertiesParser.g:915:3: ( ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )* )?
int alt13=2;
int LA13_0 = input.LA(1);
if ( ((LA13_0>=Classifier && LA13_0<=Reference)||LA13_0==Compute||LA13_0==False||LA13_0==True||LA13_0==LeftParenthesis||LA13_0==PlusSign||LA13_0==HyphenMinus||LA13_0==LeftSquareBracket||LA13_0==RULE_REAL_LIT||LA13_0==RULE_INTEGER_LIT||(LA13_0>=RULE_STRING && LA13_0<=RULE_ID)) ) {
alt13=1;
}
switch (alt13) {
case 1 :
// InternalPropertiesParser.g:916:4: ( (lv_ownedListElement_2_0= rulePropertyExpression ) ) (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )*
{
// InternalPropertiesParser.g:916:4: ( (lv_ownedListElement_2_0= rulePropertyExpression ) )
// InternalPropertiesParser.g:917:5: (lv_ownedListElement_2_0= rulePropertyExpression )
{
// InternalPropertiesParser.g:917:5: (lv_ownedListElement_2_0= rulePropertyExpression )
// InternalPropertiesParser.g:918:6: lv_ownedListElement_2_0= rulePropertyExpression
{
newCompositeNode(grammarAccess.getListTermAccess().getOwnedListElementPropertyExpressionParserRuleCall_2_0_0());
pushFollow(FollowSets000.FOLLOW_12);
lv_ownedListElement_2_0=rulePropertyExpression();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getListTermRule());
}
add(
current,
"ownedListElement",
lv_ownedListElement_2_0,
"org.osate.xtext.aadl2.properties.Properties.PropertyExpression");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:935:4: (otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) ) )*
loop12:
do {
int alt12=2;
int LA12_0 = input.LA(1);
if ( (LA12_0==Comma) ) {
alt12=1;
}
switch (alt12) {
case 1 :
// InternalPropertiesParser.g:936:5: otherlv_3= Comma ( (lv_ownedListElement_4_0= rulePropertyExpression ) )
{
otherlv_3=(Token)match(input,Comma,FollowSets000.FOLLOW_4);
newLeafNode(otherlv_3, grammarAccess.getListTermAccess().getCommaKeyword_2_1_0());
// InternalPropertiesParser.g:940:5: ( (lv_ownedListElement_4_0= rulePropertyExpression ) )
// InternalPropertiesParser.g:941:6: (lv_ownedListElement_4_0= rulePropertyExpression )
{
// InternalPropertiesParser.g:941:6: (lv_ownedListElement_4_0= rulePropertyExpression )
// InternalPropertiesParser.g:942:7: lv_ownedListElement_4_0= rulePropertyExpression
{
newCompositeNode(grammarAccess.getListTermAccess().getOwnedListElementPropertyExpressionParserRuleCall_2_1_1_0());
pushFollow(FollowSets000.FOLLOW_12);
lv_ownedListElement_4_0=rulePropertyExpression();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getListTermRule());
}
add(
current,
"ownedListElement",
lv_ownedListElement_4_0,
"org.osate.xtext.aadl2.properties.Properties.PropertyExpression");
afterParserOrEnumRuleCall();
}
}
}
break;
default :
break loop12;
}
} while (true);
}
break;
}
otherlv_5=(Token)match(input,RightParenthesis,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_5, grammarAccess.getListTermAccess().getRightParenthesisKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleListTerm"
// $ANTLR start "entryRuleFieldPropertyAssociation"
// InternalPropertiesParser.g:969:1: entryRuleFieldPropertyAssociation returns [EObject current=null] : iv_ruleFieldPropertyAssociation= ruleFieldPropertyAssociation EOF ;
public final EObject entryRuleFieldPropertyAssociation() throws RecognitionException {
EObject current = null;
EObject iv_ruleFieldPropertyAssociation = null;
try {
// InternalPropertiesParser.g:969:65: (iv_ruleFieldPropertyAssociation= ruleFieldPropertyAssociation EOF )
// InternalPropertiesParser.g:970:2: iv_ruleFieldPropertyAssociation= ruleFieldPropertyAssociation EOF
{
newCompositeNode(grammarAccess.getFieldPropertyAssociationRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleFieldPropertyAssociation=ruleFieldPropertyAssociation();
state._fsp--;
current =iv_ruleFieldPropertyAssociation;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleFieldPropertyAssociation"
// $ANTLR start "ruleFieldPropertyAssociation"
// InternalPropertiesParser.g:976:1: ruleFieldPropertyAssociation returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon ) ;
public final EObject ruleFieldPropertyAssociation() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_1=null;
Token otherlv_3=null;
EObject lv_ownedValue_2_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:982:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon ) )
// InternalPropertiesParser.g:983:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon )
{
// InternalPropertiesParser.g:983:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon )
// InternalPropertiesParser.g:984:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= EqualsSignGreaterThanSign ( (lv_ownedValue_2_0= rulePropertyExpression ) ) otherlv_3= Semicolon
{
// InternalPropertiesParser.g:984:3: ( (otherlv_0= RULE_ID ) )
// InternalPropertiesParser.g:985:4: (otherlv_0= RULE_ID )
{
// InternalPropertiesParser.g:985:4: (otherlv_0= RULE_ID )
// InternalPropertiesParser.g:986:5: otherlv_0= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getFieldPropertyAssociationRule());
}
otherlv_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_15);
newLeafNode(otherlv_0, grammarAccess.getFieldPropertyAssociationAccess().getPropertyBasicPropertyCrossReference_0_0());
}
}
otherlv_1=(Token)match(input,EqualsSignGreaterThanSign,FollowSets000.FOLLOW_4);
newLeafNode(otherlv_1, grammarAccess.getFieldPropertyAssociationAccess().getEqualsSignGreaterThanSignKeyword_1());
// InternalPropertiesParser.g:1001:3: ( (lv_ownedValue_2_0= rulePropertyExpression ) )
// InternalPropertiesParser.g:1002:4: (lv_ownedValue_2_0= rulePropertyExpression )
{
// InternalPropertiesParser.g:1002:4: (lv_ownedValue_2_0= rulePropertyExpression )
// InternalPropertiesParser.g:1003:5: lv_ownedValue_2_0= rulePropertyExpression
{
newCompositeNode(grammarAccess.getFieldPropertyAssociationAccess().getOwnedValuePropertyExpressionParserRuleCall_2_0());
pushFollow(FollowSets000.FOLLOW_10);
lv_ownedValue_2_0=rulePropertyExpression();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getFieldPropertyAssociationRule());
}
set(
current,
"ownedValue",
lv_ownedValue_2_0,
"org.osate.xtext.aadl2.properties.Properties.PropertyExpression");
afterParserOrEnumRuleCall();
}
}
otherlv_3=(Token)match(input,Semicolon,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_3, grammarAccess.getFieldPropertyAssociationAccess().getSemicolonKeyword_3());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleFieldPropertyAssociation"
// $ANTLR start "entryRuleContainmentPathElement"
// InternalPropertiesParser.g:1028:1: entryRuleContainmentPathElement returns [EObject current=null] : iv_ruleContainmentPathElement= ruleContainmentPathElement EOF ;
public final EObject entryRuleContainmentPathElement() throws RecognitionException {
EObject current = null;
EObject iv_ruleContainmentPathElement = null;
try {
// InternalPropertiesParser.g:1028:63: (iv_ruleContainmentPathElement= ruleContainmentPathElement EOF )
// InternalPropertiesParser.g:1029:2: iv_ruleContainmentPathElement= ruleContainmentPathElement EOF
{
newCompositeNode(grammarAccess.getContainmentPathElementRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleContainmentPathElement=ruleContainmentPathElement();
state._fsp--;
current =iv_ruleContainmentPathElement;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleContainmentPathElement"
// $ANTLR start "ruleContainmentPathElement"
// InternalPropertiesParser.g:1035:1: ruleContainmentPathElement returns [EObject current=null] : ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* ) (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )? ) ;
public final EObject ruleContainmentPathElement() throws RecognitionException {
EObject current = null;
Token otherlv_0=null;
Token otherlv_2=null;
EObject lv_arrayRange_1_0 = null;
EObject lv_path_3_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1041:2: ( ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* ) (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )? ) )
// InternalPropertiesParser.g:1042:2: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* ) (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )? )
{
// InternalPropertiesParser.g:1042:2: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* ) (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )? )
// InternalPropertiesParser.g:1043:3: ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* ) (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )?
{
// InternalPropertiesParser.g:1043:3: ( ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )* )
// InternalPropertiesParser.g:1044:4: ( (otherlv_0= RULE_ID ) ) ( (lv_arrayRange_1_0= ruleArrayRange ) )*
{
// InternalPropertiesParser.g:1044:4: ( (otherlv_0= RULE_ID ) )
// InternalPropertiesParser.g:1045:5: (otherlv_0= RULE_ID )
{
// InternalPropertiesParser.g:1045:5: (otherlv_0= RULE_ID )
// InternalPropertiesParser.g:1046:6: otherlv_0= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getContainmentPathElementRule());
}
otherlv_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_16);
newLeafNode(otherlv_0, grammarAccess.getContainmentPathElementAccess().getNamedElementNamedElementCrossReference_0_0_0());
}
}
// InternalPropertiesParser.g:1057:4: ( (lv_arrayRange_1_0= ruleArrayRange ) )*
loop14:
do {
int alt14=2;
int LA14_0 = input.LA(1);
if ( (LA14_0==LeftSquareBracket) ) {
alt14=1;
}
switch (alt14) {
case 1 :
// InternalPropertiesParser.g:1058:5: (lv_arrayRange_1_0= ruleArrayRange )
{
// InternalPropertiesParser.g:1058:5: (lv_arrayRange_1_0= ruleArrayRange )
// InternalPropertiesParser.g:1059:6: lv_arrayRange_1_0= ruleArrayRange
{
newCompositeNode(grammarAccess.getContainmentPathElementAccess().getArrayRangeArrayRangeParserRuleCall_0_1_0());
pushFollow(FollowSets000.FOLLOW_16);
lv_arrayRange_1_0=ruleArrayRange();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainmentPathElementRule());
}
add(
current,
"arrayRange",
lv_arrayRange_1_0,
"org.osate.xtext.aadl2.properties.Properties.ArrayRange");
afterParserOrEnumRuleCall();
}
}
break;
default :
break loop14;
}
} while (true);
}
// InternalPropertiesParser.g:1077:3: (otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) ) )?
int alt15=2;
int LA15_0 = input.LA(1);
if ( (LA15_0==FullStop) ) {
alt15=1;
}
switch (alt15) {
case 1 :
// InternalPropertiesParser.g:1078:4: otherlv_2= FullStop ( (lv_path_3_0= ruleContainmentPathElement ) )
{
otherlv_2=(Token)match(input,FullStop,FollowSets000.FOLLOW_6);
newLeafNode(otherlv_2, grammarAccess.getContainmentPathElementAccess().getFullStopKeyword_1_0());
// InternalPropertiesParser.g:1082:4: ( (lv_path_3_0= ruleContainmentPathElement ) )
// InternalPropertiesParser.g:1083:5: (lv_path_3_0= ruleContainmentPathElement )
{
// InternalPropertiesParser.g:1083:5: (lv_path_3_0= ruleContainmentPathElement )
// InternalPropertiesParser.g:1084:6: lv_path_3_0= ruleContainmentPathElement
{
newCompositeNode(grammarAccess.getContainmentPathElementAccess().getPathContainmentPathElementParserRuleCall_1_1_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_path_3_0=ruleContainmentPathElement();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getContainmentPathElementRule());
}
set(
current,
"path",
lv_path_3_0,
"org.osate.xtext.aadl2.properties.Properties.ContainmentPathElement");
afterParserOrEnumRuleCall();
}
}
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleContainmentPathElement"
// $ANTLR start "entryRulePlusMinus"
// InternalPropertiesParser.g:1106:1: entryRulePlusMinus returns [String current=null] : iv_rulePlusMinus= rulePlusMinus EOF ;
public final String entryRulePlusMinus() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_rulePlusMinus = null;
try {
// InternalPropertiesParser.g:1106:49: (iv_rulePlusMinus= rulePlusMinus EOF )
// InternalPropertiesParser.g:1107:2: iv_rulePlusMinus= rulePlusMinus EOF
{
newCompositeNode(grammarAccess.getPlusMinusRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_rulePlusMinus=rulePlusMinus();
state._fsp--;
current =iv_rulePlusMinus.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRulePlusMinus"
// $ANTLR start "rulePlusMinus"
// InternalPropertiesParser.g:1113:1: rulePlusMinus returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= PlusSign | kw= HyphenMinus ) ;
public final AntlrDatatypeRuleToken rulePlusMinus() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPropertiesParser.g:1119:2: ( (kw= PlusSign | kw= HyphenMinus ) )
// InternalPropertiesParser.g:1120:2: (kw= PlusSign | kw= HyphenMinus )
{
// InternalPropertiesParser.g:1120:2: (kw= PlusSign | kw= HyphenMinus )
int alt16=2;
int LA16_0 = input.LA(1);
if ( (LA16_0==PlusSign) ) {
alt16=1;
}
else if ( (LA16_0==HyphenMinus) ) {
alt16=2;
}
else {
NoViableAltException nvae =
new NoViableAltException("", 16, 0, input);
throw nvae;
}
switch (alt16) {
case 1 :
// InternalPropertiesParser.g:1121:3: kw= PlusSign
{
kw=(Token)match(input,PlusSign,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getPlusMinusAccess().getPlusSignKeyword_0());
}
break;
case 2 :
// InternalPropertiesParser.g:1127:3: kw= HyphenMinus
{
kw=(Token)match(input,HyphenMinus,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getPlusMinusAccess().getHyphenMinusKeyword_1());
}
break;
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "rulePlusMinus"
// $ANTLR start "entryRuleStringTerm"
// InternalPropertiesParser.g:1136:1: entryRuleStringTerm returns [EObject current=null] : iv_ruleStringTerm= ruleStringTerm EOF ;
public final EObject entryRuleStringTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleStringTerm = null;
try {
// InternalPropertiesParser.g:1136:51: (iv_ruleStringTerm= ruleStringTerm EOF )
// InternalPropertiesParser.g:1137:2: iv_ruleStringTerm= ruleStringTerm EOF
{
newCompositeNode(grammarAccess.getStringTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleStringTerm=ruleStringTerm();
state._fsp--;
current =iv_ruleStringTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleStringTerm"
// $ANTLR start "ruleStringTerm"
// InternalPropertiesParser.g:1143:1: ruleStringTerm returns [EObject current=null] : ( (lv_value_0_0= ruleNoQuoteString ) ) ;
public final EObject ruleStringTerm() throws RecognitionException {
EObject current = null;
AntlrDatatypeRuleToken lv_value_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1149:2: ( ( (lv_value_0_0= ruleNoQuoteString ) ) )
// InternalPropertiesParser.g:1150:2: ( (lv_value_0_0= ruleNoQuoteString ) )
{
// InternalPropertiesParser.g:1150:2: ( (lv_value_0_0= ruleNoQuoteString ) )
// InternalPropertiesParser.g:1151:3: (lv_value_0_0= ruleNoQuoteString )
{
// InternalPropertiesParser.g:1151:3: (lv_value_0_0= ruleNoQuoteString )
// InternalPropertiesParser.g:1152:4: lv_value_0_0= ruleNoQuoteString
{
newCompositeNode(grammarAccess.getStringTermAccess().getValueNoQuoteStringParserRuleCall_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_value_0_0=ruleNoQuoteString();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getStringTermRule());
}
set(
current,
"value",
lv_value_0_0,
"org.osate.xtext.aadl2.properties.Properties.NoQuoteString");
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleStringTerm"
// $ANTLR start "entryRuleNoQuoteString"
// InternalPropertiesParser.g:1172:1: entryRuleNoQuoteString returns [String current=null] : iv_ruleNoQuoteString= ruleNoQuoteString EOF ;
public final String entryRuleNoQuoteString() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleNoQuoteString = null;
try {
// InternalPropertiesParser.g:1172:53: (iv_ruleNoQuoteString= ruleNoQuoteString EOF )
// InternalPropertiesParser.g:1173:2: iv_ruleNoQuoteString= ruleNoQuoteString EOF
{
newCompositeNode(grammarAccess.getNoQuoteStringRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleNoQuoteString=ruleNoQuoteString();
state._fsp--;
current =iv_ruleNoQuoteString.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleNoQuoteString"
// $ANTLR start "ruleNoQuoteString"
// InternalPropertiesParser.g:1179:1: ruleNoQuoteString returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ;
public final AntlrDatatypeRuleToken ruleNoQuoteString() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_STRING_0=null;
enterRule();
try {
// InternalPropertiesParser.g:1185:2: (this_STRING_0= RULE_STRING )
// InternalPropertiesParser.g:1186:2: this_STRING_0= RULE_STRING
{
this_STRING_0=(Token)match(input,RULE_STRING,FollowSets000.FOLLOW_2);
current.merge(this_STRING_0);
newLeafNode(this_STRING_0, grammarAccess.getNoQuoteStringAccess().getSTRINGTerminalRuleCall());
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleNoQuoteString"
// $ANTLR start "entryRuleArrayRange"
// InternalPropertiesParser.g:1196:1: entryRuleArrayRange returns [EObject current=null] : iv_ruleArrayRange= ruleArrayRange EOF ;
public final EObject entryRuleArrayRange() throws RecognitionException {
EObject current = null;
EObject iv_ruleArrayRange = null;
try {
// InternalPropertiesParser.g:1196:51: (iv_ruleArrayRange= ruleArrayRange EOF )
// InternalPropertiesParser.g:1197:2: iv_ruleArrayRange= ruleArrayRange EOF
{
newCompositeNode(grammarAccess.getArrayRangeRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleArrayRange=ruleArrayRange();
state._fsp--;
current =iv_ruleArrayRange;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleArrayRange"
// $ANTLR start "ruleArrayRange"
// InternalPropertiesParser.g:1203:1: ruleArrayRange returns [EObject current=null] : ( () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket ) ;
public final EObject ruleArrayRange() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
AntlrDatatypeRuleToken lv_lowerBound_2_0 = null;
AntlrDatatypeRuleToken lv_upperBound_4_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1209:2: ( ( () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket ) )
// InternalPropertiesParser.g:1210:2: ( () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket )
{
// InternalPropertiesParser.g:1210:2: ( () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket )
// InternalPropertiesParser.g:1211:3: () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket
{
// InternalPropertiesParser.g:1211:3: ()
// InternalPropertiesParser.g:1212:4:
{
current = forceCreateModelElement(
grammarAccess.getArrayRangeAccess().getArrayRangeAction_0(),
current);
}
otherlv_1=(Token)match(input,LeftSquareBracket,FollowSets000.FOLLOW_17);
newLeafNode(otherlv_1, grammarAccess.getArrayRangeAccess().getLeftSquareBracketKeyword_1());
// InternalPropertiesParser.g:1222:3: ( (lv_lowerBound_2_0= ruleINTVALUE ) )
// InternalPropertiesParser.g:1223:4: (lv_lowerBound_2_0= ruleINTVALUE )
{
// InternalPropertiesParser.g:1223:4: (lv_lowerBound_2_0= ruleINTVALUE )
// InternalPropertiesParser.g:1224:5: lv_lowerBound_2_0= ruleINTVALUE
{
newCompositeNode(grammarAccess.getArrayRangeAccess().getLowerBoundINTVALUEParserRuleCall_2_0());
pushFollow(FollowSets000.FOLLOW_18);
lv_lowerBound_2_0=ruleINTVALUE();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getArrayRangeRule());
}
set(
current,
"lowerBound",
lv_lowerBound_2_0,
"org.osate.xtext.aadl2.properties.Properties.INTVALUE");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:1241:3: (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )?
int alt17=2;
int LA17_0 = input.LA(1);
if ( (LA17_0==FullStopFullStop) ) {
alt17=1;
}
switch (alt17) {
case 1 :
// InternalPropertiesParser.g:1242:4: otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) )
{
otherlv_3=(Token)match(input,FullStopFullStop,FollowSets000.FOLLOW_17);
newLeafNode(otherlv_3, grammarAccess.getArrayRangeAccess().getFullStopFullStopKeyword_3_0());
// InternalPropertiesParser.g:1246:4: ( (lv_upperBound_4_0= ruleINTVALUE ) )
// InternalPropertiesParser.g:1247:5: (lv_upperBound_4_0= ruleINTVALUE )
{
// InternalPropertiesParser.g:1247:5: (lv_upperBound_4_0= ruleINTVALUE )
// InternalPropertiesParser.g:1248:6: lv_upperBound_4_0= ruleINTVALUE
{
newCompositeNode(grammarAccess.getArrayRangeAccess().getUpperBoundINTVALUEParserRuleCall_3_1_0());
pushFollow(FollowSets000.FOLLOW_19);
lv_upperBound_4_0=ruleINTVALUE();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getArrayRangeRule());
}
set(
current,
"upperBound",
lv_upperBound_4_0,
"org.osate.xtext.aadl2.properties.Properties.INTVALUE");
afterParserOrEnumRuleCall();
}
}
}
break;
}
otherlv_5=(Token)match(input,RightSquareBracket,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_5, grammarAccess.getArrayRangeAccess().getRightSquareBracketKeyword_4());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleArrayRange"
// $ANTLR start "entryRuleSignedConstant"
// InternalPropertiesParser.g:1274:1: entryRuleSignedConstant returns [EObject current=null] : iv_ruleSignedConstant= ruleSignedConstant EOF ;
public final EObject entryRuleSignedConstant() throws RecognitionException {
EObject current = null;
EObject iv_ruleSignedConstant = null;
try {
// InternalPropertiesParser.g:1274:55: (iv_ruleSignedConstant= ruleSignedConstant EOF )
// InternalPropertiesParser.g:1275:2: iv_ruleSignedConstant= ruleSignedConstant EOF
{
newCompositeNode(grammarAccess.getSignedConstantRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleSignedConstant=ruleSignedConstant();
state._fsp--;
current =iv_ruleSignedConstant;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleSignedConstant"
// $ANTLR start "ruleSignedConstant"
// InternalPropertiesParser.g:1281:1: ruleSignedConstant returns [EObject current=null] : ( ( (lv_op_0_0= rulePlusMinus ) ) ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) ) ) ;
public final EObject ruleSignedConstant() throws RecognitionException {
EObject current = null;
AntlrDatatypeRuleToken lv_op_0_0 = null;
EObject lv_ownedPropertyExpression_1_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1287:2: ( ( ( (lv_op_0_0= rulePlusMinus ) ) ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) ) ) )
// InternalPropertiesParser.g:1288:2: ( ( (lv_op_0_0= rulePlusMinus ) ) ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) ) )
{
// InternalPropertiesParser.g:1288:2: ( ( (lv_op_0_0= rulePlusMinus ) ) ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) ) )
// InternalPropertiesParser.g:1289:3: ( (lv_op_0_0= rulePlusMinus ) ) ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) )
{
// InternalPropertiesParser.g:1289:3: ( (lv_op_0_0= rulePlusMinus ) )
// InternalPropertiesParser.g:1290:4: (lv_op_0_0= rulePlusMinus )
{
// InternalPropertiesParser.g:1290:4: (lv_op_0_0= rulePlusMinus )
// InternalPropertiesParser.g:1291:5: lv_op_0_0= rulePlusMinus
{
newCompositeNode(grammarAccess.getSignedConstantAccess().getOpPlusMinusParserRuleCall_0_0());
pushFollow(FollowSets000.FOLLOW_20);
lv_op_0_0=rulePlusMinus();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getSignedConstantRule());
}
set(
current,
"op",
lv_op_0_0,
"org.osate.xtext.aadl2.properties.Properties.PlusMinus");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:1308:3: ( (lv_ownedPropertyExpression_1_0= ruleConstantValue ) )
// InternalPropertiesParser.g:1309:4: (lv_ownedPropertyExpression_1_0= ruleConstantValue )
{
// InternalPropertiesParser.g:1309:4: (lv_ownedPropertyExpression_1_0= ruleConstantValue )
// InternalPropertiesParser.g:1310:5: lv_ownedPropertyExpression_1_0= ruleConstantValue
{
newCompositeNode(grammarAccess.getSignedConstantAccess().getOwnedPropertyExpressionConstantValueParserRuleCall_1_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_ownedPropertyExpression_1_0=ruleConstantValue();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getSignedConstantRule());
}
add(
current,
"ownedPropertyExpression",
lv_ownedPropertyExpression_1_0,
"org.osate.xtext.aadl2.properties.Properties.ConstantValue");
afterParserOrEnumRuleCall();
}
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleSignedConstant"
// $ANTLR start "entryRuleIntegerTerm"
// InternalPropertiesParser.g:1331:1: entryRuleIntegerTerm returns [EObject current=null] : iv_ruleIntegerTerm= ruleIntegerTerm EOF ;
public final EObject entryRuleIntegerTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleIntegerTerm = null;
try {
// InternalPropertiesParser.g:1331:52: (iv_ruleIntegerTerm= ruleIntegerTerm EOF )
// InternalPropertiesParser.g:1332:2: iv_ruleIntegerTerm= ruleIntegerTerm EOF
{
newCompositeNode(grammarAccess.getIntegerTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleIntegerTerm=ruleIntegerTerm();
state._fsp--;
current =iv_ruleIntegerTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleIntegerTerm"
// $ANTLR start "ruleIntegerTerm"
// InternalPropertiesParser.g:1338:1: ruleIntegerTerm returns [EObject current=null] : ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? ) ;
public final EObject ruleIntegerTerm() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
AntlrDatatypeRuleToken lv_value_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1344:2: ( ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? ) )
// InternalPropertiesParser.g:1345:2: ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? )
{
// InternalPropertiesParser.g:1345:2: ( ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )? )
// InternalPropertiesParser.g:1346:3: ( (lv_value_0_0= ruleSignedInt ) ) ( (otherlv_1= RULE_ID ) )?
{
// InternalPropertiesParser.g:1346:3: ( (lv_value_0_0= ruleSignedInt ) )
// InternalPropertiesParser.g:1347:4: (lv_value_0_0= ruleSignedInt )
{
// InternalPropertiesParser.g:1347:4: (lv_value_0_0= ruleSignedInt )
// InternalPropertiesParser.g:1348:5: lv_value_0_0= ruleSignedInt
{
newCompositeNode(grammarAccess.getIntegerTermAccess().getValueSignedIntParserRuleCall_0_0());
pushFollow(FollowSets000.FOLLOW_21);
lv_value_0_0=ruleSignedInt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getIntegerTermRule());
}
set(
current,
"value",
lv_value_0_0,
"org.osate.xtext.aadl2.properties.Properties.SignedInt");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:1365:3: ( (otherlv_1= RULE_ID ) )?
int alt18=2;
int LA18_0 = input.LA(1);
if ( (LA18_0==RULE_ID) ) {
alt18=1;
}
switch (alt18) {
case 1 :
// InternalPropertiesParser.g:1366:4: (otherlv_1= RULE_ID )
{
// InternalPropertiesParser.g:1366:4: (otherlv_1= RULE_ID )
// InternalPropertiesParser.g:1367:5: otherlv_1= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getIntegerTermRule());
}
otherlv_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_1, grammarAccess.getIntegerTermAccess().getUnitUnitLiteralCrossReference_1_0());
}
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleIntegerTerm"
// $ANTLR start "entryRuleSignedInt"
// InternalPropertiesParser.g:1382:1: entryRuleSignedInt returns [String current=null] : iv_ruleSignedInt= ruleSignedInt EOF ;
public final String entryRuleSignedInt() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleSignedInt = null;
try {
// InternalPropertiesParser.g:1382:49: (iv_ruleSignedInt= ruleSignedInt EOF )
// InternalPropertiesParser.g:1383:2: iv_ruleSignedInt= ruleSignedInt EOF
{
newCompositeNode(grammarAccess.getSignedIntRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleSignedInt=ruleSignedInt();
state._fsp--;
current =iv_ruleSignedInt.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleSignedInt"
// $ANTLR start "ruleSignedInt"
// InternalPropertiesParser.g:1389:1: ruleSignedInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT ) ;
public final AntlrDatatypeRuleToken ruleSignedInt() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_INTEGER_LIT_2=null;
enterRule();
try {
// InternalPropertiesParser.g:1395:2: ( ( (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT ) )
// InternalPropertiesParser.g:1396:2: ( (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT )
{
// InternalPropertiesParser.g:1396:2: ( (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT )
// InternalPropertiesParser.g:1397:3: (kw= PlusSign | kw= HyphenMinus )? this_INTEGER_LIT_2= RULE_INTEGER_LIT
{
// InternalPropertiesParser.g:1397:3: (kw= PlusSign | kw= HyphenMinus )?
int alt19=3;
int LA19_0 = input.LA(1);
if ( (LA19_0==PlusSign) ) {
alt19=1;
}
else if ( (LA19_0==HyphenMinus) ) {
alt19=2;
}
switch (alt19) {
case 1 :
// InternalPropertiesParser.g:1398:4: kw= PlusSign
{
kw=(Token)match(input,PlusSign,FollowSets000.FOLLOW_17);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedIntAccess().getPlusSignKeyword_0_0());
}
break;
case 2 :
// InternalPropertiesParser.g:1404:4: kw= HyphenMinus
{
kw=(Token)match(input,HyphenMinus,FollowSets000.FOLLOW_17);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedIntAccess().getHyphenMinusKeyword_0_1());
}
break;
}
this_INTEGER_LIT_2=(Token)match(input,RULE_INTEGER_LIT,FollowSets000.FOLLOW_2);
current.merge(this_INTEGER_LIT_2);
newLeafNode(this_INTEGER_LIT_2, grammarAccess.getSignedIntAccess().getINTEGER_LITTerminalRuleCall_1());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleSignedInt"
// $ANTLR start "entryRuleRealTerm"
// InternalPropertiesParser.g:1421:1: entryRuleRealTerm returns [EObject current=null] : iv_ruleRealTerm= ruleRealTerm EOF ;
public final EObject entryRuleRealTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleRealTerm = null;
try {
// InternalPropertiesParser.g:1421:49: (iv_ruleRealTerm= ruleRealTerm EOF )
// InternalPropertiesParser.g:1422:2: iv_ruleRealTerm= ruleRealTerm EOF
{
newCompositeNode(grammarAccess.getRealTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleRealTerm=ruleRealTerm();
state._fsp--;
current =iv_ruleRealTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleRealTerm"
// $ANTLR start "ruleRealTerm"
// InternalPropertiesParser.g:1428:1: ruleRealTerm returns [EObject current=null] : ( ( (lv_value_0_0= ruleSignedReal ) ) ( (otherlv_1= RULE_ID ) )? ) ;
public final EObject ruleRealTerm() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
AntlrDatatypeRuleToken lv_value_0_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1434:2: ( ( ( (lv_value_0_0= ruleSignedReal ) ) ( (otherlv_1= RULE_ID ) )? ) )
// InternalPropertiesParser.g:1435:2: ( ( (lv_value_0_0= ruleSignedReal ) ) ( (otherlv_1= RULE_ID ) )? )
{
// InternalPropertiesParser.g:1435:2: ( ( (lv_value_0_0= ruleSignedReal ) ) ( (otherlv_1= RULE_ID ) )? )
// InternalPropertiesParser.g:1436:3: ( (lv_value_0_0= ruleSignedReal ) ) ( (otherlv_1= RULE_ID ) )?
{
// InternalPropertiesParser.g:1436:3: ( (lv_value_0_0= ruleSignedReal ) )
// InternalPropertiesParser.g:1437:4: (lv_value_0_0= ruleSignedReal )
{
// InternalPropertiesParser.g:1437:4: (lv_value_0_0= ruleSignedReal )
// InternalPropertiesParser.g:1438:5: lv_value_0_0= ruleSignedReal
{
newCompositeNode(grammarAccess.getRealTermAccess().getValueSignedRealParserRuleCall_0_0());
pushFollow(FollowSets000.FOLLOW_21);
lv_value_0_0=ruleSignedReal();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getRealTermRule());
}
set(
current,
"value",
lv_value_0_0,
"org.osate.xtext.aadl2.properties.Properties.SignedReal");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:1455:3: ( (otherlv_1= RULE_ID ) )?
int alt20=2;
int LA20_0 = input.LA(1);
if ( (LA20_0==RULE_ID) ) {
alt20=1;
}
switch (alt20) {
case 1 :
// InternalPropertiesParser.g:1456:4: (otherlv_1= RULE_ID )
{
// InternalPropertiesParser.g:1456:4: (otherlv_1= RULE_ID )
// InternalPropertiesParser.g:1457:5: otherlv_1= RULE_ID
{
if (current==null) {
current = createModelElement(grammarAccess.getRealTermRule());
}
otherlv_1=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2);
newLeafNode(otherlv_1, grammarAccess.getRealTermAccess().getUnitUnitLiteralCrossReference_1_0());
}
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleRealTerm"
// $ANTLR start "entryRuleSignedReal"
// InternalPropertiesParser.g:1472:1: entryRuleSignedReal returns [String current=null] : iv_ruleSignedReal= ruleSignedReal EOF ;
public final String entryRuleSignedReal() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleSignedReal = null;
try {
// InternalPropertiesParser.g:1472:50: (iv_ruleSignedReal= ruleSignedReal EOF )
// InternalPropertiesParser.g:1473:2: iv_ruleSignedReal= ruleSignedReal EOF
{
newCompositeNode(grammarAccess.getSignedRealRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleSignedReal=ruleSignedReal();
state._fsp--;
current =iv_ruleSignedReal.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleSignedReal"
// $ANTLR start "ruleSignedReal"
// InternalPropertiesParser.g:1479:1: ruleSignedReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= PlusSign | kw= HyphenMinus )? this_REAL_LIT_2= RULE_REAL_LIT ) ;
public final AntlrDatatypeRuleToken ruleSignedReal() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
Token this_REAL_LIT_2=null;
enterRule();
try {
// InternalPropertiesParser.g:1485:2: ( ( (kw= PlusSign | kw= HyphenMinus )? this_REAL_LIT_2= RULE_REAL_LIT ) )
// InternalPropertiesParser.g:1486:2: ( (kw= PlusSign | kw= HyphenMinus )? this_REAL_LIT_2= RULE_REAL_LIT )
{
// InternalPropertiesParser.g:1486:2: ( (kw= PlusSign | kw= HyphenMinus )? this_REAL_LIT_2= RULE_REAL_LIT )
// InternalPropertiesParser.g:1487:3: (kw= PlusSign | kw= HyphenMinus )? this_REAL_LIT_2= RULE_REAL_LIT
{
// InternalPropertiesParser.g:1487:3: (kw= PlusSign | kw= HyphenMinus )?
int alt21=3;
int LA21_0 = input.LA(1);
if ( (LA21_0==PlusSign) ) {
alt21=1;
}
else if ( (LA21_0==HyphenMinus) ) {
alt21=2;
}
switch (alt21) {
case 1 :
// InternalPropertiesParser.g:1488:4: kw= PlusSign
{
kw=(Token)match(input,PlusSign,FollowSets000.FOLLOW_22);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedRealAccess().getPlusSignKeyword_0_0());
}
break;
case 2 :
// InternalPropertiesParser.g:1494:4: kw= HyphenMinus
{
kw=(Token)match(input,HyphenMinus,FollowSets000.FOLLOW_22);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSignedRealAccess().getHyphenMinusKeyword_0_1());
}
break;
}
this_REAL_LIT_2=(Token)match(input,RULE_REAL_LIT,FollowSets000.FOLLOW_2);
current.merge(this_REAL_LIT_2);
newLeafNode(this_REAL_LIT_2, grammarAccess.getSignedRealAccess().getREAL_LITTerminalRuleCall_1());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleSignedReal"
// $ANTLR start "entryRuleNumericRangeTerm"
// InternalPropertiesParser.g:1511:1: entryRuleNumericRangeTerm returns [EObject current=null] : iv_ruleNumericRangeTerm= ruleNumericRangeTerm EOF ;
public final EObject entryRuleNumericRangeTerm() throws RecognitionException {
EObject current = null;
EObject iv_ruleNumericRangeTerm = null;
try {
// InternalPropertiesParser.g:1511:57: (iv_ruleNumericRangeTerm= ruleNumericRangeTerm EOF )
// InternalPropertiesParser.g:1512:2: iv_ruleNumericRangeTerm= ruleNumericRangeTerm EOF
{
newCompositeNode(grammarAccess.getNumericRangeTermRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleNumericRangeTerm=ruleNumericRangeTerm();
state._fsp--;
current =iv_ruleNumericRangeTerm;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleNumericRangeTerm"
// $ANTLR start "ruleNumericRangeTerm"
// InternalPropertiesParser.g:1518:1: ruleNumericRangeTerm returns [EObject current=null] : ( ( (lv_minimum_0_0= ruleNumAlt ) ) otherlv_1= FullStopFullStop ( (lv_maximum_2_0= ruleNumAlt ) ) (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )? ) ;
public final EObject ruleNumericRangeTerm() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
EObject lv_minimum_0_0 = null;
EObject lv_maximum_2_0 = null;
EObject lv_delta_4_0 = null;
enterRule();
try {
// InternalPropertiesParser.g:1524:2: ( ( ( (lv_minimum_0_0= ruleNumAlt ) ) otherlv_1= FullStopFullStop ( (lv_maximum_2_0= ruleNumAlt ) ) (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )? ) )
// InternalPropertiesParser.g:1525:2: ( ( (lv_minimum_0_0= ruleNumAlt ) ) otherlv_1= FullStopFullStop ( (lv_maximum_2_0= ruleNumAlt ) ) (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )? )
{
// InternalPropertiesParser.g:1525:2: ( ( (lv_minimum_0_0= ruleNumAlt ) ) otherlv_1= FullStopFullStop ( (lv_maximum_2_0= ruleNumAlt ) ) (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )? )
// InternalPropertiesParser.g:1526:3: ( (lv_minimum_0_0= ruleNumAlt ) ) otherlv_1= FullStopFullStop ( (lv_maximum_2_0= ruleNumAlt ) ) (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )?
{
// InternalPropertiesParser.g:1526:3: ( (lv_minimum_0_0= ruleNumAlt ) )
// InternalPropertiesParser.g:1527:4: (lv_minimum_0_0= ruleNumAlt )
{
// InternalPropertiesParser.g:1527:4: (lv_minimum_0_0= ruleNumAlt )
// InternalPropertiesParser.g:1528:5: lv_minimum_0_0= ruleNumAlt
{
newCompositeNode(grammarAccess.getNumericRangeTermAccess().getMinimumNumAltParserRuleCall_0_0());
pushFollow(FollowSets000.FOLLOW_23);
lv_minimum_0_0=ruleNumAlt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getNumericRangeTermRule());
}
set(
current,
"minimum",
lv_minimum_0_0,
"org.osate.xtext.aadl2.properties.Properties.NumAlt");
afterParserOrEnumRuleCall();
}
}
otherlv_1=(Token)match(input,FullStopFullStop,FollowSets000.FOLLOW_20);
newLeafNode(otherlv_1, grammarAccess.getNumericRangeTermAccess().getFullStopFullStopKeyword_1());
// InternalPropertiesParser.g:1549:3: ( (lv_maximum_2_0= ruleNumAlt ) )
// InternalPropertiesParser.g:1550:4: (lv_maximum_2_0= ruleNumAlt )
{
// InternalPropertiesParser.g:1550:4: (lv_maximum_2_0= ruleNumAlt )
// InternalPropertiesParser.g:1551:5: lv_maximum_2_0= ruleNumAlt
{
newCompositeNode(grammarAccess.getNumericRangeTermAccess().getMaximumNumAltParserRuleCall_2_0());
pushFollow(FollowSets000.FOLLOW_24);
lv_maximum_2_0=ruleNumAlt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getNumericRangeTermRule());
}
set(
current,
"maximum",
lv_maximum_2_0,
"org.osate.xtext.aadl2.properties.Properties.NumAlt");
afterParserOrEnumRuleCall();
}
}
// InternalPropertiesParser.g:1568:3: (otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) ) )?
int alt22=2;
int LA22_0 = input.LA(1);
if ( (LA22_0==Delta) ) {
alt22=1;
}
switch (alt22) {
case 1 :
// InternalPropertiesParser.g:1569:4: otherlv_3= Delta ( (lv_delta_4_0= ruleNumAlt ) )
{
otherlv_3=(Token)match(input,Delta,FollowSets000.FOLLOW_20);
newLeafNode(otherlv_3, grammarAccess.getNumericRangeTermAccess().getDeltaKeyword_3_0());
// InternalPropertiesParser.g:1573:4: ( (lv_delta_4_0= ruleNumAlt ) )
// InternalPropertiesParser.g:1574:5: (lv_delta_4_0= ruleNumAlt )
{
// InternalPropertiesParser.g:1574:5: (lv_delta_4_0= ruleNumAlt )
// InternalPropertiesParser.g:1575:6: lv_delta_4_0= ruleNumAlt
{
newCompositeNode(grammarAccess.getNumericRangeTermAccess().getDeltaNumAltParserRuleCall_3_1_0());
pushFollow(FollowSets000.FOLLOW_2);
lv_delta_4_0=ruleNumAlt();
state._fsp--;
if (current==null) {
current = createModelElementForParent(grammarAccess.getNumericRangeTermRule());
}
set(
current,
"delta",
lv_delta_4_0,
"org.osate.xtext.aadl2.properties.Properties.NumAlt");
afterParserOrEnumRuleCall();
}
}
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleNumericRangeTerm"
// $ANTLR start "entryRuleNumAlt"
// InternalPropertiesParser.g:1597:1: entryRuleNumAlt returns [EObject current=null] : iv_ruleNumAlt= ruleNumAlt EOF ;
public final EObject entryRuleNumAlt() throws RecognitionException {
EObject current = null;
EObject iv_ruleNumAlt = null;
try {
// InternalPropertiesParser.g:1597:47: (iv_ruleNumAlt= ruleNumAlt EOF )
// InternalPropertiesParser.g:1598:2: iv_ruleNumAlt= ruleNumAlt EOF
{
newCompositeNode(grammarAccess.getNumAltRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleNumAlt=ruleNumAlt();
state._fsp--;
current =iv_ruleNumAlt;
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleNumAlt"
// $ANTLR start "ruleNumAlt"
// InternalPropertiesParser.g:1604:1: ruleNumAlt returns [EObject current=null] : (this_RealTerm_0= ruleRealTerm | this_IntegerTerm_1= ruleIntegerTerm | this_SignedConstant_2= ruleSignedConstant | this_ConstantValue_3= ruleConstantValue ) ;
public final EObject ruleNumAlt() throws RecognitionException {
EObject current = null;
EObject this_RealTerm_0 = null;
EObject this_IntegerTerm_1 = null;
EObject this_SignedConstant_2 = null;
EObject this_ConstantValue_3 = null;
enterRule();
try {
// InternalPropertiesParser.g:1610:2: ( (this_RealTerm_0= ruleRealTerm | this_IntegerTerm_1= ruleIntegerTerm | this_SignedConstant_2= ruleSignedConstant | this_ConstantValue_3= ruleConstantValue ) )
// InternalPropertiesParser.g:1611:2: (this_RealTerm_0= ruleRealTerm | this_IntegerTerm_1= ruleIntegerTerm | this_SignedConstant_2= ruleSignedConstant | this_ConstantValue_3= ruleConstantValue )
{
// InternalPropertiesParser.g:1611:2: (this_RealTerm_0= ruleRealTerm | this_IntegerTerm_1= ruleIntegerTerm | this_SignedConstant_2= ruleSignedConstant | this_ConstantValue_3= ruleConstantValue )
int alt23=4;
switch ( input.LA(1) ) {
case PlusSign:
{
switch ( input.LA(2) ) {
case RULE_REAL_LIT:
{
alt23=1;
}
break;
case RULE_INTEGER_LIT:
{
alt23=2;
}
break;
case RULE_ID:
{
alt23=3;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 23, 1, input);
throw nvae;
}
}
break;
case HyphenMinus:
{
switch ( input.LA(2) ) {
case RULE_ID:
{
alt23=3;
}
break;
case RULE_REAL_LIT:
{
alt23=1;
}
break;
case RULE_INTEGER_LIT:
{
alt23=2;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 23, 2, input);
throw nvae;
}
}
break;
case RULE_REAL_LIT:
{
alt23=1;
}
break;
case RULE_INTEGER_LIT:
{
alt23=2;
}
break;
case RULE_ID:
{
alt23=4;
}
break;
default:
NoViableAltException nvae =
new NoViableAltException("", 23, 0, input);
throw nvae;
}
switch (alt23) {
case 1 :
// InternalPropertiesParser.g:1612:3: this_RealTerm_0= ruleRealTerm
{
newCompositeNode(grammarAccess.getNumAltAccess().getRealTermParserRuleCall_0());
pushFollow(FollowSets000.FOLLOW_2);
this_RealTerm_0=ruleRealTerm();
state._fsp--;
current = this_RealTerm_0;
afterParserOrEnumRuleCall();
}
break;
case 2 :
// InternalPropertiesParser.g:1621:3: this_IntegerTerm_1= ruleIntegerTerm
{
newCompositeNode(grammarAccess.getNumAltAccess().getIntegerTermParserRuleCall_1());
pushFollow(FollowSets000.FOLLOW_2);
this_IntegerTerm_1=ruleIntegerTerm();
state._fsp--;
current = this_IntegerTerm_1;
afterParserOrEnumRuleCall();
}
break;
case 3 :
// InternalPropertiesParser.g:1630:3: this_SignedConstant_2= ruleSignedConstant
{
newCompositeNode(grammarAccess.getNumAltAccess().getSignedConstantParserRuleCall_2());
pushFollow(FollowSets000.FOLLOW_2);
this_SignedConstant_2=ruleSignedConstant();
state._fsp--;
current = this_SignedConstant_2;
afterParserOrEnumRuleCall();
}
break;
case 4 :
// InternalPropertiesParser.g:1639:3: this_ConstantValue_3= ruleConstantValue
{
newCompositeNode(grammarAccess.getNumAltAccess().getConstantValueParserRuleCall_3());
pushFollow(FollowSets000.FOLLOW_2);
this_ConstantValue_3=ruleConstantValue();
state._fsp--;
current = this_ConstantValue_3;
afterParserOrEnumRuleCall();
}
break;
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleNumAlt"
// $ANTLR start "entryRuleAppliesToKeywords"
// InternalPropertiesParser.g:1651:1: entryRuleAppliesToKeywords returns [String current=null] : iv_ruleAppliesToKeywords= ruleAppliesToKeywords EOF ;
public final String entryRuleAppliesToKeywords() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleAppliesToKeywords = null;
try {
// InternalPropertiesParser.g:1651:57: (iv_ruleAppliesToKeywords= ruleAppliesToKeywords EOF )
// InternalPropertiesParser.g:1652:2: iv_ruleAppliesToKeywords= ruleAppliesToKeywords EOF
{
newCompositeNode(grammarAccess.getAppliesToKeywordsRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleAppliesToKeywords=ruleAppliesToKeywords();
state._fsp--;
current =iv_ruleAppliesToKeywords.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleAppliesToKeywords"
// $ANTLR start "ruleAppliesToKeywords"
// InternalPropertiesParser.g:1658:1: ruleAppliesToKeywords returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= Applies kw= To ) ;
public final AntlrDatatypeRuleToken ruleAppliesToKeywords() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPropertiesParser.g:1664:2: ( (kw= Applies kw= To ) )
// InternalPropertiesParser.g:1665:2: (kw= Applies kw= To )
{
// InternalPropertiesParser.g:1665:2: (kw= Applies kw= To )
// InternalPropertiesParser.g:1666:3: kw= Applies kw= To
{
kw=(Token)match(input,Applies,FollowSets000.FOLLOW_25);
current.merge(kw);
newLeafNode(kw, grammarAccess.getAppliesToKeywordsAccess().getAppliesKeyword_0());
kw=(Token)match(input,To,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getAppliesToKeywordsAccess().getToKeyword_1());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleAppliesToKeywords"
// $ANTLR start "entryRuleInBindingKeywords"
// InternalPropertiesParser.g:1680:1: entryRuleInBindingKeywords returns [String current=null] : iv_ruleInBindingKeywords= ruleInBindingKeywords EOF ;
public final String entryRuleInBindingKeywords() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleInBindingKeywords = null;
try {
// InternalPropertiesParser.g:1680:57: (iv_ruleInBindingKeywords= ruleInBindingKeywords EOF )
// InternalPropertiesParser.g:1681:2: iv_ruleInBindingKeywords= ruleInBindingKeywords EOF
{
newCompositeNode(grammarAccess.getInBindingKeywordsRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleInBindingKeywords=ruleInBindingKeywords();
state._fsp--;
current =iv_ruleInBindingKeywords.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleInBindingKeywords"
// $ANTLR start "ruleInBindingKeywords"
// InternalPropertiesParser.g:1687:1: ruleInBindingKeywords returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= In kw= Binding ) ;
public final AntlrDatatypeRuleToken ruleInBindingKeywords() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPropertiesParser.g:1693:2: ( (kw= In kw= Binding ) )
// InternalPropertiesParser.g:1694:2: (kw= In kw= Binding )
{
// InternalPropertiesParser.g:1694:2: (kw= In kw= Binding )
// InternalPropertiesParser.g:1695:3: kw= In kw= Binding
{
kw=(Token)match(input,In,FollowSets000.FOLLOW_26);
current.merge(kw);
newLeafNode(kw, grammarAccess.getInBindingKeywordsAccess().getInKeyword_0());
kw=(Token)match(input,Binding,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getInBindingKeywordsAccess().getBindingKeyword_1());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleInBindingKeywords"
// $ANTLR start "entryRuleInModesKeywords"
// InternalPropertiesParser.g:1709:1: entryRuleInModesKeywords returns [String current=null] : iv_ruleInModesKeywords= ruleInModesKeywords EOF ;
public final String entryRuleInModesKeywords() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleInModesKeywords = null;
try {
// InternalPropertiesParser.g:1709:55: (iv_ruleInModesKeywords= ruleInModesKeywords EOF )
// InternalPropertiesParser.g:1710:2: iv_ruleInModesKeywords= ruleInModesKeywords EOF
{
newCompositeNode(grammarAccess.getInModesKeywordsRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleInModesKeywords=ruleInModesKeywords();
state._fsp--;
current =iv_ruleInModesKeywords.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleInModesKeywords"
// $ANTLR start "ruleInModesKeywords"
// InternalPropertiesParser.g:1716:1: ruleInModesKeywords returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= In kw= Modes ) ;
public final AntlrDatatypeRuleToken ruleInModesKeywords() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPropertiesParser.g:1722:2: ( (kw= In kw= Modes ) )
// InternalPropertiesParser.g:1723:2: (kw= In kw= Modes )
{
// InternalPropertiesParser.g:1723:2: (kw= In kw= Modes )
// InternalPropertiesParser.g:1724:3: kw= In kw= Modes
{
kw=(Token)match(input,In,FollowSets000.FOLLOW_27);
current.merge(kw);
newLeafNode(kw, grammarAccess.getInModesKeywordsAccess().getInKeyword_0());
kw=(Token)match(input,Modes,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getInModesKeywordsAccess().getModesKeyword_1());
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleInModesKeywords"
// $ANTLR start "entryRuleINTVALUE"
// InternalPropertiesParser.g:1738:1: entryRuleINTVALUE returns [String current=null] : iv_ruleINTVALUE= ruleINTVALUE EOF ;
public final String entryRuleINTVALUE() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleINTVALUE = null;
try {
// InternalPropertiesParser.g:1738:48: (iv_ruleINTVALUE= ruleINTVALUE EOF )
// InternalPropertiesParser.g:1739:2: iv_ruleINTVALUE= ruleINTVALUE EOF
{
newCompositeNode(grammarAccess.getINTVALUERule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleINTVALUE=ruleINTVALUE();
state._fsp--;
current =iv_ruleINTVALUE.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleINTVALUE"
// $ANTLR start "ruleINTVALUE"
// InternalPropertiesParser.g:1745:1: ruleINTVALUE returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_INTEGER_LIT_0= RULE_INTEGER_LIT ;
public final AntlrDatatypeRuleToken ruleINTVALUE() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_INTEGER_LIT_0=null;
enterRule();
try {
// InternalPropertiesParser.g:1751:2: (this_INTEGER_LIT_0= RULE_INTEGER_LIT )
// InternalPropertiesParser.g:1752:2: this_INTEGER_LIT_0= RULE_INTEGER_LIT
{
this_INTEGER_LIT_0=(Token)match(input,RULE_INTEGER_LIT,FollowSets000.FOLLOW_2);
current.merge(this_INTEGER_LIT_0);
newLeafNode(this_INTEGER_LIT_0, grammarAccess.getINTVALUEAccess().getINTEGER_LITTerminalRuleCall());
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleINTVALUE"
// $ANTLR start "entryRuleQPREF"
// InternalPropertiesParser.g:1762:1: entryRuleQPREF returns [String current=null] : iv_ruleQPREF= ruleQPREF EOF ;
public final String entryRuleQPREF() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQPREF = null;
try {
// InternalPropertiesParser.g:1762:45: (iv_ruleQPREF= ruleQPREF EOF )
// InternalPropertiesParser.g:1763:2: iv_ruleQPREF= ruleQPREF EOF
{
newCompositeNode(grammarAccess.getQPREFRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleQPREF=ruleQPREF();
state._fsp--;
current =iv_ruleQPREF.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleQPREF"
// $ANTLR start "ruleQPREF"
// InternalPropertiesParser.g:1769:1: ruleQPREF returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= ColonColon this_ID_2= RULE_ID )? ) ;
public final AntlrDatatypeRuleToken ruleQPREF() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_ID_0=null;
Token kw=null;
Token this_ID_2=null;
enterRule();
try {
// InternalPropertiesParser.g:1775:2: ( (this_ID_0= RULE_ID (kw= ColonColon this_ID_2= RULE_ID )? ) )
// InternalPropertiesParser.g:1776:2: (this_ID_0= RULE_ID (kw= ColonColon this_ID_2= RULE_ID )? )
{
// InternalPropertiesParser.g:1776:2: (this_ID_0= RULE_ID (kw= ColonColon this_ID_2= RULE_ID )? )
// InternalPropertiesParser.g:1777:3: this_ID_0= RULE_ID (kw= ColonColon this_ID_2= RULE_ID )?
{
this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_28);
current.merge(this_ID_0);
newLeafNode(this_ID_0, grammarAccess.getQPREFAccess().getIDTerminalRuleCall_0());
// InternalPropertiesParser.g:1784:3: (kw= ColonColon this_ID_2= RULE_ID )?
int alt24=2;
int LA24_0 = input.LA(1);
if ( (LA24_0==ColonColon) ) {
alt24=1;
}
switch (alt24) {
case 1 :
// InternalPropertiesParser.g:1785:4: kw= ColonColon this_ID_2= RULE_ID
{
kw=(Token)match(input,ColonColon,FollowSets000.FOLLOW_6);
current.merge(kw);
newLeafNode(kw, grammarAccess.getQPREFAccess().getColonColonKeyword_1_0());
this_ID_2=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2);
current.merge(this_ID_2);
newLeafNode(this_ID_2, grammarAccess.getQPREFAccess().getIDTerminalRuleCall_1_1());
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleQPREF"
// $ANTLR start "entryRuleQCREF"
// InternalPropertiesParser.g:1802:1: entryRuleQCREF returns [String current=null] : iv_ruleQCREF= ruleQCREF EOF ;
public final String entryRuleQCREF() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleQCREF = null;
try {
// InternalPropertiesParser.g:1802:45: (iv_ruleQCREF= ruleQCREF EOF )
// InternalPropertiesParser.g:1803:2: iv_ruleQCREF= ruleQCREF EOF
{
newCompositeNode(grammarAccess.getQCREFRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleQCREF=ruleQCREF();
state._fsp--;
current =iv_ruleQCREF.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleQCREF"
// $ANTLR start "ruleQCREF"
// InternalPropertiesParser.g:1809:1: ruleQCREF returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (this_ID_0= RULE_ID kw= ColonColon )* this_ID_2= RULE_ID (kw= FullStop this_ID_4= RULE_ID )? ) ;
public final AntlrDatatypeRuleToken ruleQCREF() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_ID_0=null;
Token kw=null;
Token this_ID_2=null;
Token this_ID_4=null;
enterRule();
try {
// InternalPropertiesParser.g:1815:2: ( ( (this_ID_0= RULE_ID kw= ColonColon )* this_ID_2= RULE_ID (kw= FullStop this_ID_4= RULE_ID )? ) )
// InternalPropertiesParser.g:1816:2: ( (this_ID_0= RULE_ID kw= ColonColon )* this_ID_2= RULE_ID (kw= FullStop this_ID_4= RULE_ID )? )
{
// InternalPropertiesParser.g:1816:2: ( (this_ID_0= RULE_ID kw= ColonColon )* this_ID_2= RULE_ID (kw= FullStop this_ID_4= RULE_ID )? )
// InternalPropertiesParser.g:1817:3: (this_ID_0= RULE_ID kw= ColonColon )* this_ID_2= RULE_ID (kw= FullStop this_ID_4= RULE_ID )?
{
// InternalPropertiesParser.g:1817:3: (this_ID_0= RULE_ID kw= ColonColon )*
loop25:
do {
int alt25=2;
int LA25_0 = input.LA(1);
if ( (LA25_0==RULE_ID) ) {
int LA25_1 = input.LA(2);
if ( (LA25_1==ColonColon) ) {
alt25=1;
}
}
switch (alt25) {
case 1 :
// InternalPropertiesParser.g:1818:4: this_ID_0= RULE_ID kw= ColonColon
{
this_ID_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_29);
current.merge(this_ID_0);
newLeafNode(this_ID_0, grammarAccess.getQCREFAccess().getIDTerminalRuleCall_0_0());
kw=(Token)match(input,ColonColon,FollowSets000.FOLLOW_6);
current.merge(kw);
newLeafNode(kw, grammarAccess.getQCREFAccess().getColonColonKeyword_0_1());
}
break;
default :
break loop25;
}
} while (true);
this_ID_2=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_30);
current.merge(this_ID_2);
newLeafNode(this_ID_2, grammarAccess.getQCREFAccess().getIDTerminalRuleCall_1());
// InternalPropertiesParser.g:1838:3: (kw= FullStop this_ID_4= RULE_ID )?
int alt26=2;
int LA26_0 = input.LA(1);
if ( (LA26_0==FullStop) ) {
alt26=1;
}
switch (alt26) {
case 1 :
// InternalPropertiesParser.g:1839:4: kw= FullStop this_ID_4= RULE_ID
{
kw=(Token)match(input,FullStop,FollowSets000.FOLLOW_6);
current.merge(kw);
newLeafNode(kw, grammarAccess.getQCREFAccess().getFullStopKeyword_2_0());
this_ID_4=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_2);
current.merge(this_ID_4);
newLeafNode(this_ID_4, grammarAccess.getQCREFAccess().getIDTerminalRuleCall_2_1());
}
break;
}
}
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleQCREF"
// $ANTLR start "entryRuleSTAR"
// InternalPropertiesParser.g:1856:1: entryRuleSTAR returns [String current=null] : iv_ruleSTAR= ruleSTAR EOF ;
public final String entryRuleSTAR() throws RecognitionException {
String current = null;
AntlrDatatypeRuleToken iv_ruleSTAR = null;
try {
// InternalPropertiesParser.g:1856:44: (iv_ruleSTAR= ruleSTAR EOF )
// InternalPropertiesParser.g:1857:2: iv_ruleSTAR= ruleSTAR EOF
{
newCompositeNode(grammarAccess.getSTARRule());
pushFollow(FollowSets000.FOLLOW_1);
iv_ruleSTAR=ruleSTAR();
state._fsp--;
current =iv_ruleSTAR.getText();
match(input,EOF,FollowSets000.FOLLOW_2);
}
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "entryRuleSTAR"
// $ANTLR start "ruleSTAR"
// InternalPropertiesParser.g:1863:1: ruleSTAR returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= Asterisk ;
public final AntlrDatatypeRuleToken ruleSTAR() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token kw=null;
enterRule();
try {
// InternalPropertiesParser.g:1869:2: (kw= Asterisk )
// InternalPropertiesParser.g:1870:2: kw= Asterisk
{
kw=(Token)match(input,Asterisk,FollowSets000.FOLLOW_2);
current.merge(kw);
newLeafNode(kw, grammarAccess.getSTARAccess().getAsteriskKeyword());
}
leaveRule();
}
catch (RecognitionException re) {
recover(input,re);
appendSkippedTokens();
}
finally {
}
return current;
}
// $ANTLR end "ruleSTAR"
// Delegated rules
protected DFA9 dfa9 = new DFA9(this);
static final String dfa_1s = "\25\uffff";
static final String dfa_2s = "\10\uffff\1\17\1\21\1\23\3\uffff\1\17\1\uffff\1\21\3\uffff\1\23";
static final String dfa_3s = "\1\4\5\uffff\2\44\3\7\3\uffff\1\7\1\uffff\1\7\1\uffff\1\51\1\uffff\1\7";
static final String dfa_4s = "\1\51\5\uffff\4\51\1\33\3\uffff\1\33\1\uffff\1\33\1\uffff\1\51\1\uffff\1\33";
static final String dfa_5s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\5\uffff\1\11\1\12\1\6\1\uffff\1\7\1\uffff\1\10\1\uffff\1\13\1\uffff";
static final String dfa_6s = "\25\uffff}>";
static final String[] dfa_7s = {
"\1\3\1\2\3\uffff\1\4\1\uffff\1\14\1\uffff\1\14\6\uffff\1\13\2\uffff\1\6\1\uffff\1\7\2\uffff\1\1\7\uffff\1\10\1\uffff\1\11\1\uffff\1\5\1\12",
"",
"",
"",
"",
"",
"\1\10\1\uffff\1\11\2\uffff\1\15",
"\1\10\1\uffff\1\11\2\uffff\1\15",
"\1\17\7\uffff\1\15\2\uffff\1\17\2\uffff\1\17\2\uffff\1\17\2\uffff\1\17\15\uffff\1\16",
"\1\21\7\uffff\1\15\2\uffff\1\21\2\uffff\1\21\2\uffff\1\21\2\uffff\1\21\15\uffff\1\20",
"\1\23\7\uffff\1\15\1\22\1\uffff\1\23\2\uffff\1\23\2\uffff\1\23\2\uffff\1\23",
"",
"",
"",
"\1\17\7\uffff\1\15\2\uffff\1\17\2\uffff\1\17\2\uffff\1\17\2\uffff\1\17",
"",
"\1\21\7\uffff\1\15\2\uffff\1\21\2\uffff\1\21\2\uffff\1\21\2\uffff\1\21",
"",
"\1\24",
"",
"\1\23\7\uffff\1\15\2\uffff\1\23\2\uffff\1\23\2\uffff\1\23\2\uffff\1\23"
};
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 DFA9 extends DFA {
public DFA9(BaseRecognizer recognizer) {
this.recognizer = recognizer;
this.decisionNumber = 9;
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 "481:2: (this_RecordTerm_0= ruleRecordTerm | this_ReferenceTerm_1= ruleReferenceTerm | this_ComponentClassifierTerm_2= ruleComponentClassifierTerm | this_ComputedTerm_3= ruleComputedTerm | this_StringTerm_4= ruleStringTerm | this_NumericRangeTerm_5= ruleNumericRangeTerm | this_RealTerm_6= ruleRealTerm | this_IntegerTerm_7= ruleIntegerTerm | this_ListTerm_8= ruleListTerm | this_BooleanLiteral_9= ruleBooleanLiteral | this_LiteralorReferenceTerm_10= ruleLiteralorReferenceTerm )";
}
}
private static class FollowSets000 {
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[]{0x0000000000024000L});
public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000035012902A70L});
public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000009040080L});
public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000020000000000L});
public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000009040000L});
public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000100000L});
public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000200000L});
public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000008000000L});
public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000040002L});
public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000001200000L});
public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000020020000000L});
public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000035012B02A70L});
public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000020000L});
public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000014000002L});
public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000004000000000L});
public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000020008000L});
public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000020000000L});
public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000025002800000L});
public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000020000000002L});
public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000001000000000L});
public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000000008000L});
public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000000000402L});
public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000080000L});
public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000000000100L});
public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000001000L});
public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000000010002L});
public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000000010000L});
public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000004000002L});
}
}