use of org.eclipse.xtext.grammarinheritance.ametamodel.AModel in project xtext-core by eclipse.
the class CallOverridenParserRuleImpl method basicSetCall.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCall(AModel newCall, NotificationChain msgs) {
AModel oldCall = call;
call = newCall;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FooPackage.CALL_OVERRIDEN_PARSER_RULE__CALL, oldCall, newCall);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.grammarinheritance.ametamodel.AModel in project xtext-core by eclipse.
the class AbstractAbstractTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == AmetamodelPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case AmetamodelPackage.AMODEL:
if (rule == grammarAccess.getAbstractCallExtendedParserRuleRule()) {
sequence_AbstractCallExtendedParserRule(context, (AModel) semanticObject);
return;
} else if (rule == grammarAccess.getAbstractCallOverridenParserRuleRule()) {
sequence_AbstractCallOverridenParserRule(context, (AModel) semanticObject);
return;
} else
break;
case AmetamodelPackage.ATYPE:
if (rule == grammarAccess.getExtendableParserRuleRule()) {
sequence_ExtendableParserRule(context, (AType) semanticObject);
return;
} else if (rule == grammarAccess.getInheritedParserRuleRule()) {
sequence_InheritedParserRule(context, (AType) semanticObject);
return;
} else if (rule == grammarAccess.getOverridableParserRule2Rule()) {
sequence_OverridableParserRule2(context, (AType) semanticObject);
return;
} else if (rule == grammarAccess.getOverridableParserRuleRule()) {
sequence_OverridableParserRule(context, (AType) semanticObject);
return;
} else
break;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.grammarinheritance.ametamodel.AModel in project xtext-core by eclipse.
the class ConcreteTestLanguageSemanticSequencer method sequence.
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
EPackage epackage = semanticObject.eClass().getEPackage();
ParserRule rule = context.getParserRule();
Action action = context.getAssignedAction();
Set<Parameter> parameters = context.getEnabledBooleanParameters();
if (epackage == AmetamodelPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case AmetamodelPackage.AMODEL:
if (rule == grammarAccess.getAbstractCallExtendedParserRuleRule()) {
sequence_AbstractCallExtendedParserRule(context, (AModel) semanticObject);
return;
} else if (rule == grammarAccess.getAbstractCallOverridenParserRuleRule()) {
sequence_AbstractCallOverridenParserRule(context, (AModel) semanticObject);
return;
} else
break;
case AmetamodelPackage.ATYPE:
if (rule == grammarAccess.getInheritedParserRuleRule()) {
sequence_InheritedParserRule(context, (AType) semanticObject);
return;
} else if (rule == grammarAccess.getOverridableParserRuleRule()) {
sequence_OverridableParserRule(context, (AType) semanticObject);
return;
} else
break;
}
else if (epackage == FooPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case FooPackage.ATYPE2:
sequence_OverridableParserRule2(context, (AType2) semanticObject);
return;
case FooPackage.CALL_EXTENDED_PARSER_RULE:
sequence_CallExtendedParserRule(context, (CallExtendedParserRule) semanticObject);
return;
case FooPackage.CALL_OVERRIDEN_PARSER_RULE:
sequence_CallOverridenParserRule(context, (CallOverridenParserRule) semanticObject);
return;
case FooPackage.CONCRETE_PARSER_RULE:
sequence_ConcreteParserRule(context, (ConcreteParserRule) semanticObject);
return;
case FooPackage.SUBRULE1:
sequence_Subrule1(context, (Subrule1) semanticObject);
return;
case FooPackage.SUBRULE2:
sequence_Subrule2(context, (Subrule2) semanticObject);
return;
case FooPackage.SUBRULE3:
sequence_Subrule3(context, (Subrule3) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.grammarinheritance.ametamodel.AModel in project xtext-core by eclipse.
the class CallExtendedParserRuleImpl method basicSetCall.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCall(AModel newCall, NotificationChain msgs) {
AModel oldCall = call;
call = newCall;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FooPackage.CALL_EXTENDED_PARSER_RULE__CALL, oldCall, newCall);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations