public ParserRule getModelReferenceRule() { return getModelReferenceAccess().getRule(); }
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"
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 { // 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__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"
before(grammarAccess.getModelReferenceAccess().getGroup()); after(grammarAccess.getModelReferenceAccess().getGroup());
before(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1()); after(grammarAccess.getModelReferenceAccess().getImportedNamespaceAssignment_1());
before(grammarAccess.getModelReferenceAccess().getVersionAssignment_3()); after(grammarAccess.getModelReferenceAccess().getVersionAssignment_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(); }
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());
@Override protected void configureFormatting(final FormattingConfig c) { FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1); DatatypeGrammarAccess.ModelReferenceElements _modelReferenceAccess = this.f.getModelReferenceAccess(); Group _group = _modelReferenceAccess.getGroup(); _setLinewrap.after(_group);
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");