use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleUIComponentMemberDeclaration.
// $ANTLR end "entryRuleUIComponentMemberDeclaration"
// $ANTLR start "ruleUIComponentMemberDeclaration"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2437:1: ruleUIComponentMemberDeclaration returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( (lv_name_1_0= RULE_ID ) ) ) ;
public final EObject ruleUIComponentMemberDeclaration() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
Token lv_name_1_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2440:28: ( ( ( (otherlv_0= RULE_ID ) ) ( (lv_name_1_0= RULE_ID ) ) ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2441:1: ( ( (otherlv_0= RULE_ID ) ) ( (lv_name_1_0= RULE_ID ) ) )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2441:1: ( ( (otherlv_0= RULE_ID ) ) ( (lv_name_1_0= RULE_ID ) ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2441:2: ( (otherlv_0= RULE_ID ) ) ( (lv_name_1_0= RULE_ID ) )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2441:2: ( (otherlv_0= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2442:1: (otherlv_0= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2442:1: (otherlv_0= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2443:3: otherlv_0= RULE_ID
{
if (current == null) {
current = createModelElement(grammarAccess.getUIComponentMemberDeclarationRule());
}
otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleUIComponentMemberDeclaration5520);
newLeafNode(otherlv_0, grammarAccess.getUIComponentMemberDeclarationAccess().getTypeUIComponentOrDataTypeCrossReference_0_0());
}
}
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2454:2: ( (lv_name_1_0= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2455:1: (lv_name_1_0= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2455:1: (lv_name_1_0= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:2456:3: lv_name_1_0= RULE_ID
{
lv_name_1_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleUIComponentMemberDeclaration5537);
newLeafNode(lv_name_1_0, grammarAccess.getUIComponentMemberDeclarationAccess().getNameIDTerminalRuleCall_1_0());
if (current == null) {
current = createModelElement(grammarAccess.getUIComponentMemberDeclarationRule());
}
setWithLastConsumed(current, "name", lv_name_1_0, "ID");
}
}
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleTypeMapping.
// $ANTLR end "entryRuleTypeMapping"
// $ANTLR start "ruleTypeMapping"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:609:1: ruleTypeMapping returns [EObject current=null] : (otherlv_0= 'typemapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (lv_simpleName_3_0= RULE_ID ) ) ) ;
public final EObject ruleTypeMapping() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
Token otherlv_1 = null;
Token otherlv_2 = null;
Token lv_simpleName_3_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:612:28: ( (otherlv_0= 'typemapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (lv_simpleName_3_0= RULE_ID ) ) ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:613:1: (otherlv_0= 'typemapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (lv_simpleName_3_0= RULE_ID ) ) )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:613:1: (otherlv_0= 'typemapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (lv_simpleName_3_0= RULE_ID ) ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:613:3: otherlv_0= 'typemapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (lv_simpleName_3_0= RULE_ID ) )
{
otherlv_0 = (Token) match(input, 22, FOLLOW_22_in_ruleTypeMapping1458);
newLeafNode(otherlv_0, grammarAccess.getTypeMappingAccess().getTypemappingKeyword_0());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:617:1: ( (otherlv_1= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:618:1: (otherlv_1= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:618:1: (otherlv_1= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:619:3: otherlv_1= RULE_ID
{
if (current == null) {
current = createModelElement(grammarAccess.getTypeMappingRule());
}
otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleTypeMapping1478);
newLeafNode(otherlv_1, grammarAccess.getTypeMappingAccess().getTypeDataTypeCrossReference_1_0());
}
}
otherlv_2 = (Token) match(input, 23, FOLLOW_23_in_ruleTypeMapping1490);
newLeafNode(otherlv_2, grammarAccess.getTypeMappingAccess().getHyphenMinusGreaterThanSignKeyword_2());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:634:1: ( (lv_simpleName_3_0= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:635:1: (lv_simpleName_3_0= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:635:1: (lv_simpleName_3_0= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:636:3: lv_simpleName_3_0= RULE_ID
{
lv_simpleName_3_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleTypeMapping1507);
newLeafNode(lv_simpleName_3_0, grammarAccess.getTypeMappingAccess().getSimpleNameIDTerminalRuleCall_3_0());
if (current == null) {
current = createModelElement(grammarAccess.getTypeMappingRule());
}
setWithLastConsumed(current, "simpleName", lv_simpleName_3_0, "ID");
}
}
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method rulePlatform.
// $ANTLR end "entryRulePlatform"
// $ANTLR start "rulePlatform"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:510:1: rulePlatform returns [EObject current=null] : (otherlv_0= 'platform' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappings_3_0= rulePlatformMapping ) )* otherlv_4= '}' ) ;
public final EObject rulePlatform() throws RecognitionException {
EObject current = null;
Token otherlv_0 = null;
Token lv_name_1_0 = null;
Token otherlv_2 = null;
Token otherlv_4 = null;
EObject lv_mappings_3_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:513:28: ( (otherlv_0= 'platform' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappings_3_0= rulePlatformMapping ) )* otherlv_4= '}' ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:514:1: (otherlv_0= 'platform' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappings_3_0= rulePlatformMapping ) )* otherlv_4= '}' )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:514:1: (otherlv_0= 'platform' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappings_3_0= rulePlatformMapping ) )* otherlv_4= '}' )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:514:3: otherlv_0= 'platform' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappings_3_0= rulePlatformMapping ) )* otherlv_4= '}'
{
otherlv_0 = (Token) match(input, 12, FOLLOW_12_in_rulePlatform1217);
newLeafNode(otherlv_0, grammarAccess.getPlatformAccess().getPlatformKeyword_0());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:518:1: ( (lv_name_1_0= RULE_ID ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:519:1: (lv_name_1_0= RULE_ID )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:519:1: (lv_name_1_0= RULE_ID )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:520:3: lv_name_1_0= RULE_ID
{
lv_name_1_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_rulePlatform1234);
newLeafNode(lv_name_1_0, grammarAccess.getPlatformAccess().getNameIDTerminalRuleCall_1_0());
if (current == null) {
current = createModelElement(grammarAccess.getPlatformRule());
}
setWithLastConsumed(current, "name", lv_name_1_0, "ID");
}
}
otherlv_2 = (Token) match(input, 19, FOLLOW_19_in_rulePlatform1251);
newLeafNode(otherlv_2, grammarAccess.getPlatformAccess().getLeftCurlyBracketKeyword_2());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:540:1: ( (lv_mappings_3_0= rulePlatformMapping ) )*
loop9: do {
int alt9 = 2;
int LA9_0 = input.LA(1);
if ((LA9_0 == 22)) {
alt9 = 1;
}
switch(alt9) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:541:1: (lv_mappings_3_0= rulePlatformMapping )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:541:1: (lv_mappings_3_0= rulePlatformMapping )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:542:3: lv_mappings_3_0= rulePlatformMapping
{
newCompositeNode(grammarAccess.getPlatformAccess().getMappingsPlatformMappingParserRuleCall_3_0());
pushFollow(FOLLOW_rulePlatformMapping_in_rulePlatform1272);
lv_mappings_3_0 = rulePlatformMapping();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getPlatformRule());
}
add(current, "mappings", lv_mappings_3_0, "PlatformMapping");
afterParserOrEnumRuleCall();
}
}
break;
default:
break loop9;
}
} while (true);
otherlv_4 = (Token) match(input, 20, FOLLOW_20_in_rulePlatform1285);
newLeafNode(otherlv_4, grammarAccess.getPlatformAccess().getRightCurlyBracketKeyword_4());
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleRelativeRESTURL.
// $ANTLR end "entryRuleRelativeRESTURL"
// $ANTLR start "ruleRelativeRESTURL"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1207:1: ruleRelativeRESTURL returns [EObject current=null] : ( () otherlv_1= '/' ( (lv_fragments_2_0= ruleUrlFragment ) ) (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )* ) ;
public final EObject ruleRelativeRESTURL() throws RecognitionException {
EObject current = null;
Token otherlv_1 = null;
Token otherlv_3 = null;
EObject lv_fragments_2_0 = null;
EObject lv_fragments_4_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1210:28: ( ( () otherlv_1= '/' ( (lv_fragments_2_0= ruleUrlFragment ) ) (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )* ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1211:1: ( () otherlv_1= '/' ( (lv_fragments_2_0= ruleUrlFragment ) ) (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )* )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1211:1: ( () otherlv_1= '/' ( (lv_fragments_2_0= ruleUrlFragment ) ) (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )* )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1211:2: () otherlv_1= '/' ( (lv_fragments_2_0= ruleUrlFragment ) ) (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )*
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1211:2: ()
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1212:5:
{
current = forceCreateModelElement(grammarAccess.getRelativeRESTURLAccess().getRelativeRESTURLAction_0(), current);
}
otherlv_1 = (Token) match(input, 31, FOLLOW_31_in_ruleRelativeRESTURL2740);
newLeafNode(otherlv_1, grammarAccess.getRelativeRESTURLAccess().getSolidusKeyword_1());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1221:1: ( (lv_fragments_2_0= ruleUrlFragment ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1222:1: (lv_fragments_2_0= ruleUrlFragment )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1222:1: (lv_fragments_2_0= ruleUrlFragment )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1223:3: lv_fragments_2_0= ruleUrlFragment
{
newCompositeNode(grammarAccess.getRelativeRESTURLAccess().getFragmentsUrlFragmentParserRuleCall_2_0());
pushFollow(FOLLOW_ruleUrlFragment_in_ruleRelativeRESTURL2761);
lv_fragments_2_0 = ruleUrlFragment();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getRelativeRESTURLRule());
}
add(current, "fragments", lv_fragments_2_0, "UrlFragment");
afterParserOrEnumRuleCall();
}
}
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1239:2: (otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) ) )*
loop18: do {
int alt18 = 2;
int LA18_0 = input.LA(1);
if ((LA18_0 == 31)) {
alt18 = 1;
}
switch(alt18) {
case 1:
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1239:4: otherlv_3= '/' ( (lv_fragments_4_0= ruleUrlFragment ) )
{
otherlv_3 = (Token) match(input, 31, FOLLOW_31_in_ruleRelativeRESTURL2774);
newLeafNode(otherlv_3, grammarAccess.getRelativeRESTURLAccess().getSolidusKeyword_3_0());
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1243:1: ( (lv_fragments_4_0= ruleUrlFragment ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1244:1: (lv_fragments_4_0= ruleUrlFragment )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1244:1: (lv_fragments_4_0= ruleUrlFragment )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1245:3: lv_fragments_4_0= ruleUrlFragment
{
newCompositeNode(grammarAccess.getRelativeRESTURLAccess().getFragmentsUrlFragmentParserRuleCall_3_1_0());
pushFollow(FOLLOW_ruleUrlFragment_in_ruleRelativeRESTURL2795);
lv_fragments_4_0 = ruleUrlFragment();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getRelativeRESTURLRule());
}
add(current, "fragments", lv_fragments_4_0, "UrlFragment");
afterParserOrEnumRuleCall();
}
}
}
break;
default:
break loop18;
}
} while (true);
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
use of org.eclipse.emf.ecore.EObject in project applause by applause.
the class InternalApplauseDslParser method ruleUrlPathFragment.
// $ANTLR end "entryRuleUrlPathFragment"
// $ANTLR start "ruleUrlPathFragment"
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1318:1: ruleUrlPathFragment returns [EObject current=null] : ( (lv_name_0_0= ruleQualifiedName ) ) ;
public final EObject ruleUrlPathFragment() throws RecognitionException {
EObject current = null;
AntlrDatatypeRuleToken lv_name_0_0 = null;
enterRule();
try {
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1321:28: ( ( (lv_name_0_0= ruleQualifiedName ) ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1322:1: ( (lv_name_0_0= ruleQualifiedName ) )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1322:1: ( (lv_name_0_0= ruleQualifiedName ) )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1323:1: (lv_name_0_0= ruleQualifiedName )
{
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1323:1: (lv_name_0_0= ruleQualifiedName )
// ../org.applause.lang/src-gen/org/applause/lang/parser/antlr/internal/InternalApplauseDsl.g:1324:3: lv_name_0_0= ruleQualifiedName
{
newCompositeNode(grammarAccess.getUrlPathFragmentAccess().getNameQualifiedNameParserRuleCall_0());
pushFollow(FOLLOW_ruleQualifiedName_in_ruleUrlPathFragment3007);
lv_name_0_0 = ruleQualifiedName();
state._fsp--;
if (current == null) {
current = createModelElementForParent(grammarAccess.getUrlPathFragmentRule());
}
set(current, "name", lv_name_0_0, "QualifiedName");
afterParserOrEnumRuleCall();
}
}
}
leaveRule();
} catch (RecognitionException re) {
recover(input, re);
appendSkippedTokens();
} finally {
}
return current;
}
Aggregations