@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; }
@Inject public CodetemplatesGrammarAccess(GrammarProvider grammarProvider) { this.grammar = internalFindGrammar(grammarProvider); this.pCodetemplates = new CodetemplatesElements(); this.pCodetemplate = new CodetemplateElements(); this.pTemplateBodyWithQuotes = new TemplateBodyWithQuotesElements(); this.pTemplateBody = new TemplateBodyElements(); this.pTemplatePart = new TemplatePartElements(); this.pVariableOrDollar = new VariableOrDollarElements(); this.pVariable = new VariableElements(); this.pValidID = new ValidIDElements(); this.pFQN = new FQNElements(); this.pLiteral = new LiteralElements(); this.pLiteralValue = new LiteralValueElements(); this.pDollar = new DollarElements(); this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.ID"); this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.STRING"); this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.WS"); this.tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.ui.codetemplates.Codetemplates.ANY_OTHER"); }
put(grammarAccess.getVariableAccess().getParametersAssignment_2_1_4_3_0(), "rule__Variable__ParametersAssignment_2_1_4_3_0"); put(grammarAccess.getVariableAccess().getParametersAssignment_2_1_4_3_1_3(), "rule__Variable__ParametersAssignment_2_1_4_3_1_3"); put(grammarAccess.getLiteralAccess().getValueAssignment(), "rule__Literal__ValueAssignment"); put(grammarAccess.getDollarAccess().getEscapedAssignment_1_0(), "rule__Dollar__EscapedAssignment_1_0");
put(grammarAccess.getVariableAccess().getParametersAssignment_2_1_4_3_0(), "rule__Variable__ParametersAssignment_2_1_4_3_0"); put(grammarAccess.getVariableAccess().getParametersAssignment_2_1_4_3_1_3(), "rule__Variable__ParametersAssignment_2_1_4_3_1_3"); put(grammarAccess.getLiteralAccess().getValueAssignment(), "rule__Literal__ValueAssignment"); put(grammarAccess.getDollarAccess().getEscapedAssignment_1_0(), "rule__Dollar__EscapedAssignment_1_0");
newCompositeNode(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0());
newCompositeNode(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0());
newCompositeNode(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0());
newCompositeNode(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0());
before(grammarAccess.getLiteralAccess().getValueAssignment()); after(grammarAccess.getLiteralAccess().getValueAssignment());
before(grammarAccess.getLiteralAccess().getValueAssignment()); after(grammarAccess.getLiteralAccess().getValueAssignment());
public final void rule__Literal__ValueAssignment() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:2612:1: ( ( ruleLiteralValue ) ) // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:2613:1: ( ruleLiteralValue ) { // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:2613:1: ( ruleLiteralValue ) // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalCodetemplatesParser.g:2614:1: ruleLiteralValue { before(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0()); pushFollow(FOLLOW_ruleLiteralValue_in_rule__Literal__ValueAssignment5193); ruleLiteralValue(); state._fsp--; after(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__Literal__ValueAssignment"
public final void rule__Literal__ValueAssignment() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalSingleCodetemplateParser.g:2314:1: ( ( ruleLiteralValue ) ) // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalSingleCodetemplateParser.g:2315:1: ( ruleLiteralValue ) { // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalSingleCodetemplateParser.g:2315:1: ( ruleLiteralValue ) // ../org.eclipse.xtext.ui.codetemplates.ui/src-gen/org/eclipse/xtext/ui/codetemplates/ui/contentassist/antlr/internal/InternalSingleCodetemplateParser.g:2316:1: ruleLiteralValue { before(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0()); pushFollow(FOLLOW_ruleLiteralValue_in_rule__Literal__ValueAssignment4602); ruleLiteralValue(); state._fsp--; after(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__Literal__ValueAssignment"
public ParserRule getLiteralRule() { return getLiteralAccess().getRule(); }
public ParserRule getLiteralRule() { return getLiteralAccess().getRule(); }
/** * Constraint: * value=LiteralValue */ protected void sequence_Literal(EObject context, Literal semanticObject) { if(errorAcceptor != null) { if(transientValues.isValueTransient(semanticObject, TemplatesPackage.Literals.LITERAL__VALUE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TemplatesPackage.Literals.LITERAL__VALUE)); } INodesForEObjectProvider nodes = createNodeProvider(semanticObject); SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes); feeder.accept(grammarAccess.getLiteralAccess().getValueLiteralValueParserRuleCall_0(), semanticObject.getValue()); feeder.finish(); }
public ParserRule getLiteralRule() { return getLiteralAccess().getRule(); }
public LiteralElements getLiteralAccess() { return (pLiteral != null) ? pLiteral : (pLiteral = new LiteralElements()); }
@Override public Assignment getGrammarElement() { return grammarAccess.getLiteralAccess().getValueAssignment(); }
@Override public Assignment getGrammarElement() { return grammarAccess.getLiteralAccess().getValueAssignment(); }
@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; }