@Override public IEObjectConsumer tryConsume() { if(getEObject().eClass() != grammarAccess.getLiteralRule().getType().getClassifier()) return null; if(checkForRecursion(Literal_ValueAssignment.class, eObjectConsumer)) return null; return eObjectConsumer; }
@Override public IEObjectConsumer tryConsume() { if(getEObject().eClass() != grammarAccess.getDollarAccess().getDollarAction_0().getType().getClassifier() && getEObject().eClass() != grammarAccess.getLiteralRule().getType().getClassifier() && getEObject().eClass() != grammarAccess.getVariableRule().getType().getClassifier()) return null; return eObjectConsumer; }
public final void entryRuleLiteral() throws RecognitionException { HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); try { // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:355:1: ( ruleLiteral EOF ) // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:356:1: ruleLiteral EOF { before(grammarAccess.getLiteralRule()); pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral627); ruleLiteral(); state._fsp--; after(grammarAccess.getLiteralRule()); match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral634); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { myHiddenTokenState.restore(); } return ; } // $ANTLR end "entryRuleLiteral"
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("parts",false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("parts"); if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getLiteralRule().getType().getClassifier())) { type = AssignmentType.PARSER_RULE_CALL; element = grammarAccess.getTemplateBodyAccess().getPartsLiteralParserRuleCall_2_1_0(); consumed = obj; return param; } } return null; }
@Override public IEObjectConsumer tryConsume() { if((value = eObjectConsumer.getConsumable("parts",false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("parts"); if(value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl IEObjectConsumer param = createEObjectConsumer((EObject)value); if(param.isInstanceOf(grammarAccess.getLiteralRule().getType().getClassifier())) { type = AssignmentType.PARSER_RULE_CALL; element = grammarAccess.getTemplateBodyAccess().getPartsLiteralParserRuleCall_1_0(); consumed = obj; return param; } } return null; }
@Override public IEObjectConsumer tryConsume() { if(getEObject().eClass() != grammarAccess.getLiteralRule().getType().getClassifier()) return null; if((value = eObjectConsumer.getConsumable("value",true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value"); if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0(), value, null)) { type = AssignmentType.DATATYPE_RULE_CALL; element = grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0(); return obj; } return null; }
public final EObject entryRuleLiteral() throws RecognitionException { EObject current = null; EObject iv_ruleLiteral = null; HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); try { // ../org.eclipse.xtext.ui.codetemplates/src-gen/org/eclipse/xtext/ui/codetemplates/parser/antlr/internal/InternalCodetemplatesParser.g:826:2: (iv_ruleLiteral= ruleLiteral EOF ) // ../org.eclipse.xtext.ui.codetemplates/src-gen/org/eclipse/xtext/ui/codetemplates/parser/antlr/internal/InternalCodetemplatesParser.g:827:2: iv_ruleLiteral= ruleLiteral EOF { newCompositeNode(grammarAccess.getLiteralRule()); pushFollow(FOLLOW_ruleLiteral_in_entryRuleLiteral1694); iv_ruleLiteral=ruleLiteral(); state._fsp--; current =iv_ruleLiteral; match(input,EOF,FOLLOW_EOF_in_entryRuleLiteral1704); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { myHiddenTokenState.restore(); } return current; } // $ANTLR end "entryRuleLiteral"
public final EObject entryRuleLiteral() throws RecognitionException { EObject current = null; EObject iv_ruleLiteral = null; HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); try { // InternalCodetemplatesParser.g:828:2: (iv_ruleLiteral= ruleLiteral EOF ) // InternalCodetemplatesParser.g:829:2: iv_ruleLiteral= ruleLiteral EOF { newCompositeNode(grammarAccess.getLiteralRule()); pushFollow(FOLLOW_1); iv_ruleLiteral=ruleLiteral(); state._fsp--; current =iv_ruleLiteral; match(input,EOF,FOLLOW_2); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { myHiddenTokenState.restore(); } return current; } // $ANTLR end "entryRuleLiteral"
current = createModelElementForParent(grammarAccess.getLiteralRule());
current = createModelElementForParent(grammarAccess.getLiteralRule());