@Override public AbstractToken createFollowerAfterReturn( AbstractToken next, int actIndex, int index, IEObjectConsumer inst) { if (value == inst.getEObject() && !inst.isConsumed()) return null; switch (index) { case 0: return new File_ElementsAssignment(lastRuleCallOrigin, next, actIndex, consumed); default: return lastRuleCallOrigin.createFollowerAfterReturn(next, actIndex, index - 1, consumed); } }
@Override public AbstractToken createFollowerAfterReturn( AbstractToken next, int actIndex, int index, IEObjectConsumer inst) { if (value == inst.getEObject() && !inst.isConsumed()) return null; switch (index) { case 0: return new Entity_PropertiesAssignment_3(lastRuleCallOrigin, next, actIndex, consumed); case 1: return new Entity_LeftCurlyBracketKeyword_2(lastRuleCallOrigin, next, actIndex, consumed); default: return null; } }
@Override public AbstractToken createFollowerAfterReturn( AbstractToken next, int actIndex, int index, IEObjectConsumer inst) { if (value == inst.getEObject() && !inst.isConsumed()) return null; switch (index) { case 0: return new Expression_Group_2(lastRuleCallOrigin, next, actIndex, consumed); case 1: return new Expression_UnorderedGroup_1(lastRuleCallOrigin, next, actIndex, consumed); default: return null; } }
@Override public AbstractToken createFollowerAfterReturn( AbstractToken next, int actIndex, int index, IEObjectConsumer inst) { if (value == inst.getEObject() && !inst.isConsumed()) return null; switch (index) { case 0: return new Element_DataTypeAssignment_1(lastRuleCallOrigin, next, actIndex, consumed); case 1: return new Element_NameAssignment_0(lastRuleCallOrigin, next, actIndex, consumed); default: return null; } }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("properties", false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("properties"); if (value instanceof EObject) { // org::eclipse::xtext::impl::RuleCallImpl IEObjectConsumer param = createEObjectConsumer((EObject) value); if (param.isInstanceOf(grammarAccess.getPropertyRule().getType().getClassifier())) { type = AssignmentType.PARSER_RULE_CALL; element = grammarAccess.getEntityAccess().getPropertiesPropertyParserRuleCall_3_0(); consumed = obj; return param; } } return null; }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("name", true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("name"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_1_0(), value, null)) { type = AssignmentType.TERMINAL_RULE_CALL; element = grammarAccess.getEntityAccess().getNameIDTerminalRuleCall_1_0(); return obj; } return null; }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("name", true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("name"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getNamespaceAccess().getNameQualifiedNameParserRuleCall_0_0(), value, null)) { type = AssignmentType.DATATYPE_RULE_CALL; element = grammarAccess.getNamespaceAccess().getNameQualifiedNameParserRuleCall_0_0(); return obj; } return null; }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("postfix", false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("postfix"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getExpressionAccess().getPostfixSTRINGTerminalRuleCall_3_1_0(), value, null)) { type = AssignmentType.TERMINAL_RULE_CALL; element = grammarAccess.getExpressionAccess().getPostfixSTRINGTerminalRuleCall_3_1_0(); return obj; } return null; }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("charSet", false)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("charSet"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getSimpleTermAccess().getCharSetIDTerminalRuleCall_0_4_0(), value, null)) { type = AssignmentType.TERMINAL_RULE_CALL; element = grammarAccess.getSimpleTermAccess().getCharSetIDTerminalRuleCall_0_4_0(); return obj; } return null; }
@Override public AbstractToken createFollowerAfterReturn( AbstractToken next, int actIndex, int index, IEObjectConsumer inst) { if (value == inst.getEObject() && !inst.isConsumed()) return null; switch (index) { case 0: return new SExpression_ElementAssignment_1_0_1( lastRuleCallOrigin, next, actIndex, consumed); case 1: return new SExpression_LeftParenthesisKeyword_1_0_0( lastRuleCallOrigin, next, actIndex, consumed); default: return null; } }
@Override public IEObjectConsumer tryConsume() { if (getEObject().eClass() != grammarAccess.getAtomRule().getType().getClassifier()) return null; if ((value = eObjectConsumer.getConsumable("value", true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getAtomAccess().getValueVALUEParserRuleCall_0(), value, null)) { type = AssignmentType.DATATYPE_RULE_CALL; element = grammarAccess.getAtomAccess().getValueVALUEParserRuleCall_0(); return obj; } return null; }
@Override public IEObjectConsumer tryConsume() { if (getEObject().eClass() != grammarAccess.getImportRule().getType().getClassifier()) return null; if ((value = eObjectConsumer.getConsumable("importURI", true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("importURI"); if (valueSerializer.isValid( obj.getEObject(), grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_0(), value, null)) { type = AssignmentType.TERMINAL_RULE_CALL; element = grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_0(); return obj; } return null; }
@Override public IEObjectConsumer tryConsume() { if ((value = eObjectConsumer.getConsumable("type", true)) == null) return null; IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("type"); if (value instanceof EObject) { // org::eclipse::xtext::impl::CrossReferenceImpl IEObjectConsumer param = createEObjectConsumer((EObject) value); if (param.isInstanceOf( grammarAccess .getPropertyAccess() .getTypeTypeCrossReference_0_0() .getType() .getClassifier())) { type = AssignmentType.CROSS_REFERENCE; element = grammarAccess.getPropertyAccess().getTypeTypeCrossReference_0_0(); return obj; } } return null; }