Search in sources :

Example 1 with UnorderedSerialization

use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization in project xtext-core by eclipse.

the class ExUnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case UnorderedGroupsTestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
                sequence_NestedModel(context, (NestedModel) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
                sequence_UnorderedSerialization(context, (UnorderedSerialization) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) Parameter(org.eclipse.xtext.Parameter) UnorderedSerialization(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) EPackage(org.eclipse.emf.ecore.EPackage)

Example 2 with UnorderedSerialization

use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization in project xtext-core by eclipse.

the class ModelImpl method basicSetSerialized.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSerialized(UnorderedSerialization newSerialized, NotificationChain msgs) {
    UnorderedSerialization oldSerialized = serialized;
    serialized = newSerialized;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UnorderedGroupsTestLanguagePackage.MODEL__SERIALIZED, oldSerialized, newSerialized);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) UnorderedSerialization(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization)

Example 3 with UnorderedSerialization

use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization in project xtext-core by eclipse.

the class SimpleUnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case UnorderedGroupsTestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
                sequence_NestedModel(context, (NestedModel) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
                sequence_UnorderedSerialization(context, (UnorderedSerialization) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) Parameter(org.eclipse.xtext.Parameter) UnorderedSerialization(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) EPackage(org.eclipse.emf.ecore.EPackage)

Example 4 with UnorderedSerialization

use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization in project xtext-core by eclipse.

the class UnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case UnorderedGroupsTestLanguagePackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
                sequence_NestedModel(context, (NestedModel) semanticObject);
                return;
            case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
                sequence_UnorderedSerialization(context, (UnorderedSerialization) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) Parameter(org.eclipse.xtext.Parameter) UnorderedSerialization(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization) NestedModel(org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel) EPackage(org.eclipse.emf.ecore.EPackage)

Aggregations

UnorderedSerialization (org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.UnorderedSerialization)4 EPackage (org.eclipse.emf.ecore.EPackage)3 Action (org.eclipse.xtext.Action)3 Parameter (org.eclipse.xtext.Parameter)3 ParserRule (org.eclipse.xtext.ParserRule)3 Model (org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model)3 NestedModel (org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.NestedModel)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1