@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 == DslPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case DslPackage.DSL: sequence_Dsl(context, (Dsl) semanticObject); return; case DslPackage.ENTRY: sequence_Entry(context, (Entry) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == IgnoreCaseLinkingTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case IgnoreCaseLinkingTestPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case IgnoreCaseLinkingTestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == RefactoringTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case RefactoringTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case RefactoringTestLanguagePackage.REFERENCE_HOLDER: sequence_ReferenceHolder(context, (ReferenceHolder) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == BuilderTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case BuilderTestLanguagePackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case BuilderTestLanguagePackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case BuilderTestLanguagePackage.NAMESPACE: sequence_Namespace(context, (Namespace) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == SuperPackagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SuperPackagePackage.ANOTHER_SUPER_MAIN: sequence_AnotherSuperMain(context, (AnotherSuperMain) semanticObject); return; case SuperPackagePackage.SUPER_MAIN: sequence_SuperMain(context, (SuperMain) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == TestLangPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case TestLangPackage.CHOICE_ELEMENT: sequence_ChoiceRule(context, (ChoiceElement) semanticObject); return; case TestLangPackage.MODEL: sequence_EntryRule(context, (Model) semanticObject); return; case TestLangPackage.REDUCIBLE_COMPOSITE: sequence_ReducibleRule(context, (ReducibleComposite) semanticObject); return; case TestLangPackage.TERMINAL_ELEMENT: sequence_TerminalRule(context, (TerminalElement) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == SerializationerrorPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SerializationerrorPackage.INDENT: sequence_Indent(context, (Indent) semanticObject); return; case SerializationerrorPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case SerializationerrorPackage.TWO_OPTIONS: sequence_TwoOptions(context, (TwoOptions) semanticObject); return; case SerializationerrorPackage.TWO_REQUIRED: sequence_TwoRequired(context, (TwoRequired) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == AsubpackagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case AsubpackagePackage.AMODEL: sequence_Root(context, (AModel) semanticObject); return; case AsubpackagePackage.ATYPE: sequence_AType(context, (AType) semanticObject); return; } else if (epackage == SubsubpackagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SubsubpackagePackage.ANOTHER_TYPE: sequence_AnotherType(context, (AnotherType) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == MyDslPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case MyDslPackage.GREETING: sequence_Greeting(context, (Greeting) semanticObject); return; case MyDslPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == BacktrackingTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case BacktrackingTestLanguagePackage.AB: sequence_Ab(context, (Ab) semanticObject); return; case BacktrackingTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case BacktrackingTestLanguagePackage.XB: sequence_Xb(context, (Xb) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
/** * @since 2.14 */ protected String[][] getRequiredRuleNames(Param param, AbstractElement elementToParse) { if (elementToParse instanceof RuleCall) { RuleCall call = (RuleCall) elementToParse; if (call.getRule() instanceof ParserRule) { String antlrRuleName = ruleNames.getAntlrRuleName(call.getRule()); if (!call.getArguments().isEmpty()) { Set<Parameter> context = param.getAssignedParametes(); Set<Parameter> arguments = getAssignedArguments(call, context); int config = getParameterConfig(arguments); antlrRuleName = ruleNames.getAntlrRuleName(call.getRule(), config); } return new String[][] { { antlrRuleName } }; } } return EMPTY_ARRAY; }
@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 == InheritanceTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case InheritanceTestPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case InheritanceTestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
public static ISerializationContext forChild(ISerializationContext container, RuleCall ruleCall, EObject sem) { EClass type = sem == null ? null : sem.eClass(); ISerializationContext result = new TypeContext(new RuleContext(null, (ParserRule) ruleCall.getRule()), type); EList<NamedArgument> arguments = ruleCall.getArguments(); if (!arguments.isEmpty() && container != null) { Set<Parameter> params = Sets.newLinkedHashSet(); ConditionEvaluator evaluator = new ConditionEvaluator(container.getEnabledBooleanParameters()); for (NamedArgument argument : arguments) { if (evaluator.evaluate(argument.getValue())) { params.add(argument.getParameter()); } } result = new SerializationContext.ParameterValueContext(result, params); } return result; }
@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 == IgnoreCaseImportsTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case IgnoreCaseImportsTestPackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case IgnoreCaseImportsTestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } else if (epackage == IgnoreCaseLinkingTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case IgnoreCaseLinkingTestPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == DatatypeRulesTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case DatatypeRulesTestLanguagePackage.COMPOSITE_MODEL: sequence_CompositeModel(context, (CompositeModel) semanticObject); return; case DatatypeRulesTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@Override public int hashCode() { ParserRule rule = getParserRule(); Action action = getAssignedAction(); Set<Parameter> parameterValues = getEnabledBooleanParameters(); EClass type = getType(); int result = 1; if (rule != null) result = 31 * result + rule.hashCode(); if (action != null) result = 31 * result + action.hashCode(); if (type != null) result = 31 * result + type.hashCode(); if (parameterValues != null) result = 31 * result + parameterValues.hashCode(); return result; }
@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 == OptionalEmptyPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case OptionalEmptyPackage.GREETING: sequence_Greeting(context, (Greeting) semanticObject); return; case OptionalEmptyPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XtextPackage.PARSER_RULE__DEFINES_HIDDEN_TOKENS: setDefinesHiddenTokens((Boolean)newValue); return; case XtextPackage.PARSER_RULE__HIDDEN_TOKENS: getHiddenTokens().clear(); getHiddenTokens().addAll((Collection<? extends AbstractRule>)newValue); return; case XtextPackage.PARSER_RULE__PARAMETERS: getParameters().clear(); getParameters().addAll((Collection<? extends Parameter>)newValue); return; case XtextPackage.PARSER_RULE__FRAGMENT: setFragment((Boolean)newValue); return; case XtextPackage.PARSER_RULE__WILDCARD: setWildcard((Boolean)newValue); return; } super.eSet(featureID, newValue); }
@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 == TransientvaluestestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case TransientvaluestestPackage.TEST_LIST: sequence_TestList(context, (TestList) semanticObject); return; case TransientvaluestestPackage.TEST_OPTIONAL: sequence_TestOptional(context, (TestOptional) semanticObject); return; case TransientvaluestestPackage.TEST_REQUIRED: sequence_TestRequired(context, (TestRequired) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == TreeTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case TreeTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case TreeTestLanguagePackage.NODE: sequence_Node(context, (Node) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case XtextPackage.NAMED_ARGUMENT__PARAMETER: setParameter((Parameter)newValue); return; case XtextPackage.NAMED_ARGUMENT__VALUE: setValue((Condition)newValue); return; case XtextPackage.NAMED_ARGUMENT__CALLED_BY_NAME: setCalledByName((Boolean)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case XtextPackage.NAMED_ARGUMENT__PARAMETER: setParameter((Parameter)null); return; case XtextPackage.NAMED_ARGUMENT__VALUE: setValue((Condition)null); return; case XtextPackage.NAMED_ARGUMENT__CALLED_BY_NAME: setCalledByName(CALLED_BY_NAME_EDEFAULT); return; } super.eUnset(featureID); }
@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 == IndentLangPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case IndentLangPackage.NODE: sequence_Node(context, (Node) semanticObject); return; case IndentLangPackage.NODE_LIST: sequence_NodeList(context, (NodeList) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == PartialContentAssistTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case PartialContentAssistTestLanguagePackage.PROPERTY: sequence_Property(context, (Property) semanticObject); return; case PartialContentAssistTestLanguagePackage.TYPE_DECLARATION: sequence_TypeDeclaration(context, (TypeDeclaration) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == FileAwarePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case FileAwarePackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case FileAwarePackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case FileAwarePackage.PACKAGE_DECLARATION: sequence_PackageDeclaration(context, (PackageDeclaration) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == Bug362902Package.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug362902Package.GREETING: sequence_Greeting(context, (Greeting) semanticObject); return; case Bug362902Package.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == SimpleExpressionsPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SimpleExpressionsPackage.ATOM: sequence_Atom(context, (Atom) semanticObject); return; case SimpleExpressionsPackage.OP: sequence_Addition_Multiplication(context, (Op) semanticObject); return; case SimpleExpressionsPackage.SEQUENCE: sequence_Sequence(context, (Sequence) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
protected String adjustRuleName(String ruleName, Param param) { AbstractElement elementToParse = param.elementToParse; Set<Parameter> context = getAssignedParameters(elementToParse, param.paramStack); if (!context.isEmpty()) { ParserRule containingRule = GrammarUtil.containingParserRule(elementToParse); String antlrRuleName = ruleNames.getAntlrRuleName(containingRule); int len = antlrRuleName.length(); if (antlrRuleName.startsWith("rule")) { len += 2; // rule__XYZ instead of ruleXYZ } int config = getParameterConfig(context); String result = ruleNames.getAntlrRuleName(containingRule, config) + ruleName.substring(len); return result; } return ruleName; }
@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 == SubPackagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SubPackagePackage.ANOTHER_SUPER_MAIN: sequence_AnotherSuperMain(context, (AnotherSuperMain) semanticObject); return; case SubPackagePackage.SUB_MAIN: sequence_SubMain(context, (SubMain) semanticObject); return; } else if (epackage == SuperPackagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SuperPackagePackage.SUPER_MAIN: sequence_SuperMain(context, (SuperMain) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == Bug250313Package.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug250313Package.CHILD1: sequence_Child1(context, (Child1) semanticObject); return; case Bug250313Package.CHILD2: sequence_Child2(context, (Child2) semanticObject); return; case Bug250313Package.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == AnotherSimpleTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case AnotherSimpleTestPackage.FOO: sequence_Foo(context, (Foo) semanticObject); return; } else if (epackage == XtextPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case XtextPackage.PARSER_RULE: sequence_MyRule(context, (ParserRule) semanticObject); return; case XtextPackage.RULE_CALL: sequence_NameRef(context, (RuleCall) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == OtherTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case OtherTestPackage.FOO_BAR: sequence_NameRef(context, (FooBar) semanticObject); return; } else if (epackage == SimpleTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case SimpleTestPackage.FOO: sequence_Foo(context, (Foo) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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 == UnassignedRuleCallTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case UnassignedRuleCallTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case UnassignedRuleCallTestLanguagePackage.MODEL_FEATURES: sequence_ModelFeatures(context, (ModelFeatures) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
@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)); }
@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 == HiddentokensequencertestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case HiddentokensequencertestPackage.DOMAIN_MODEL: sequence_DomainModel(context, (DomainModel) semanticObject); return; case HiddentokensequencertestPackage.ENTITY: sequence_Entity(context, (Entity) semanticObject); return; case HiddentokensequencertestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }