FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1); DatatypeGrammarAccess.ModelReferenceElements _modelReferenceAccess = this.f.getModelReferenceAccess(); Group _group = _modelReferenceAccess.getGroup(); _setLinewrap.after(_group); FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1);
this.gaTerminals = gaTerminals; this.pModel = new ModelElements(); this.pModelReference = new ModelReferenceElements(); this.pQualifiedName = new QualifiedNameElements(); this.pType = new TypeElements();
put(grammarAccess.getCATEGORYAccess().getGroup(), "rule__CATEGORY__Group__0"); put(grammarAccess.getCATEGORYAccess().getGroup_1(), "rule__CATEGORY__Group_1__0"); put(grammarAccess.getModelReferenceAccess().getGroup(), "rule__ModelReference__Group__0"); put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0"); put(grammarAccess.getQualifiedNameAccess().getGroup_1(), "rule__QualifiedName__Group_1__0"); put(grammarAccess.getEventAccess().getNameAssignment_0(), "rule__Event__NameAssignment_0"); put(grammarAccess.getEventAccess().getPropertiesAssignment_2(), "rule__Event__PropertiesAssignment_2"); put(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1(), "rule__ModelReference__ImportedNamespaceAssignment_1"); put(grammarAccess.getModelReferenceAccess().getVersionAssignment_3(), "rule__ModelReference__VersionAssignment_3"); put(grammarAccess.getEntityAccess().getNamespaceAssignment_1(), "rule__Entity__NamespaceAssignment_1"); put(grammarAccess.getEntityAccess().getVersionAssignment_3(), "rule__Entity__VersionAssignment_3");
put(grammarAccess.getPrimitiveTypeAccess().getAlternatives(), "rule__PrimitiveType__Alternatives"); put(grammarAccess.getConstraintIntervalTypeAccess().getAlternatives(), "rule__ConstraintIntervalType__Alternatives"); put(grammarAccess.getModelReferenceAccess().getGroup(), "rule__ModelReference__Group__0"); put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0"); put(grammarAccess.getQualifiedNameAccess().getGroup_1(), "rule__QualifiedName__Group_1__0"); put(grammarAccess.getCATEGORYAccess().getGroup(), "rule__CATEGORY__Group__0"); put(grammarAccess.getCATEGORYAccess().getGroup_1(), "rule__CATEGORY__Group_1__0"); put(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1(), "rule__ModelReference__ImportedNamespaceAssignment_1"); put(grammarAccess.getModelReferenceAccess().getVersionAssignment_3(), "rule__ModelReference__VersionAssignment_3"); put(grammarAccess.getEntityAccess().getNamespaceAssignment_1(), "rule__Entity__NamespaceAssignment_1"); put(grammarAccess.getEntityAccess().getVersionAssignment_3(), "rule__Entity__VersionAssignment_3");
newLeafNode(otherlv_0, grammarAccess.getModelReferenceAccess().getUsingKeyword_0()); newCompositeNode(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0()); newLeafNode(otherlv_2, grammarAccess.getModelReferenceAccess().getSemicolonKeyword_2()); newLeafNode(lv_version_3_0, grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0());
before(grammarAccess.getModelReferenceAccess().getVersionAssignment_3()); after(grammarAccess.getModelReferenceAccess().getVersionAssignment_3());
before(grammarAccess.getModelReferenceAccess().getVersionAssignment_3()); after(grammarAccess.getModelReferenceAccess().getVersionAssignment_3());
before(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1()); after(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1());
public final void rule__ModelReference__ImportedNamespaceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFunctionblock.g:7230:1: ( ( ruleQualifiedName ) ) // InternalFunctionblock.g:7231:2: ( ruleQualifiedName ) { // InternalFunctionblock.g:7231:2: ( ruleQualifiedName ) // InternalFunctionblock.g:7232:3: ruleQualifiedName { before(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0()); pushFollow(FOLLOW_2); ruleQualifiedName(); state._fsp--; after(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__ImportedNamespaceAssignment_1"
before(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1()); after(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1());
public final void rule__ModelReference__ImportedNamespaceAssignment_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDatatype.g:3784:1: ( ( ruleQualifiedName ) ) // InternalDatatype.g:3785:2: ( ruleQualifiedName ) { // InternalDatatype.g:3785:2: ( ruleQualifiedName ) // InternalDatatype.g:3786:3: ruleQualifiedName { before(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0()); pushFollow(FOLLOW_2); ruleQualifiedName(); state._fsp--; after(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__ImportedNamespaceAssignment_1"
public final void rule__ModelReference__VersionAssignment_3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFunctionblock.g:7245:1: ( ( RULE_VERSION ) ) // InternalFunctionblock.g:7246:2: ( RULE_VERSION ) { // InternalFunctionblock.g:7246:2: ( RULE_VERSION ) // InternalFunctionblock.g:7247:3: RULE_VERSION { before(grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0()); match(input,RULE_VERSION,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__VersionAssignment_3"
public final void rule__ModelReference__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDatatype.g:1042:1: ( ( ';' ) ) // InternalDatatype.g:1043:1: ( ';' ) { // InternalDatatype.g:1043:1: ( ';' ) // InternalDatatype.g:1044:2: ';' { before(grammarAccess.getModelReferenceAccess().getSemicolonKeyword_2()); match(input,41,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getSemicolonKeyword_2()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__Group__2__Impl"
public final void rule__ModelReference__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFunctionblock.g:3895:1: ( ( 'using' ) ) // InternalFunctionblock.g:3896:1: ( 'using' ) { // InternalFunctionblock.g:3896:1: ( 'using' ) // InternalFunctionblock.g:3897:2: 'using' { before(grammarAccess.getModelReferenceAccess().getUsingKeyword_0()); match(input,62,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getUsingKeyword_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__Group__0__Impl"
public final void rule__ModelReference__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDatatype.g:988:1: ( ( 'using' ) ) // InternalDatatype.g:989:1: ( 'using' ) { // InternalDatatype.g:989:1: ( 'using' ) // InternalDatatype.g:990:2: 'using' { before(grammarAccess.getModelReferenceAccess().getUsingKeyword_0()); match(input,40,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getUsingKeyword_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__Group__0__Impl"
public final void rule__ModelReference__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalFunctionblock.g:3949:1: ( ( ';' ) ) // InternalFunctionblock.g:3950:1: ( ';' ) { // InternalFunctionblock.g:3950:1: ( ';' ) // InternalFunctionblock.g:3951:2: ';' { before(grammarAccess.getModelReferenceAccess().getSemicolonKeyword_2()); match(input,63,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getSemicolonKeyword_2()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__Group__2__Impl"
public final void rule__ModelReference__VersionAssignment_3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDatatype.g:3799:1: ( ( RULE_VERSION ) ) // InternalDatatype.g:3800:2: ( RULE_VERSION ) { // InternalDatatype.g:3800:2: ( RULE_VERSION ) // InternalDatatype.g:3801:3: RULE_VERSION { before(grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0()); match(input,RULE_VERSION,FOLLOW_2); after(grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0()); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; } // $ANTLR end "rule__ModelReference__VersionAssignment_3"
/** * Contexts: * ModelReference returns ModelReference * * Constraint: * (importedNamespace=QualifiedName version=VERSION) */ protected void sequence_ModelReference(ISerializationContext context, ModelReference semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ModelPackage.Literals.MODEL_REFERENCE__IMPORTED_NAMESPACE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ModelPackage.Literals.MODEL_REFERENCE__IMPORTED_NAMESPACE)); if (transientValues.isValueTransient(semanticObject, ModelPackage.Literals.MODEL_REFERENCE__VERSION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ModelPackage.Literals.MODEL_REFERENCE__VERSION)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getModelReferenceAccess().getImportedNamespaceQualifiedNameParserRuleCall_1_0(), semanticObject.getImportedNamespace()); feeder.accept(grammarAccess.getModelReferenceAccess().getVersionVERSIONTerminalRuleCall_3_0(), semanticObject.getVersion()); feeder.finish(); }