Java Code Examples for org.eclipse.xtext.serializer.ISerializationContext#getEnabledBooleanParameters()
The following examples show how to use
org.eclipse.xtext.serializer.ISerializationContext#getEnabledBooleanParameters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OutlineTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == OutlineTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case OutlineTestPackage.ELEMENT: sequence_Element(context, (Element) semanticObject); return; case OutlineTestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 2
Source File: DatatypeRuleTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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 == DatatypeRuleTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case DatatypeRuleTestPackage.COMPOSITE_TYPE: sequence_CompositeType(context, (CompositeType) semanticObject); return; case DatatypeRuleTestPackage.COMPOSITE_TYPE_ENTRY: sequence_CompositeTypeEntry(context, (CompositeTypeEntry) semanticObject); return; case DatatypeRuleTestPackage.SIMPLE_TYPE: sequence_SimpleType(context, (SimpleType) semanticObject); return; case DatatypeRuleTestPackage.TYPES: sequence_Types(context, (Types) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 3
Source File: UnicodeTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == UnicodePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case UnicodePackage.GSTRING: sequence_GString(context, (GString) semanticObject); return; case UnicodePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case UnicodePackage.QUOTED_STRING: sequence_QuotedString(context, (QuotedString) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 4
Source File: RefactoringTestLanguage1SemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
@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)); }
Example 5
Source File: BacktrackingLexerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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)); }
Example 6
Source File: Bug289524TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == Bug289524TestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug289524TestPackage.CONTAINED: sequence_Contained(context, (Contained) semanticObject); return; case Bug289524TestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case Bug289524TestPackage.MODEL_ELEMENT: sequence_ModelElement(context, (ModelElement) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 7
Source File: ActionTestLanguage2SemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == ActionLang2Package.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case ActionLang2Package.ORING: sequence_ORing(context, (ORing) semanticObject); return; case ActionLang2Package.VALUE: sequence_Value(context, (Value) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 8
Source File: BuilderTestLanguageSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@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)); }
Example 9
Source File: RefactoringTestLanguage2SemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@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)); }
Example 10
Source File: TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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)); }
Example 11
Source File: ActionTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == ActionLangPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case ActionLangPackage.CHILD: sequence_Child(context, (Child) semanticObject); return; case ActionLangPackage.PARENT: sequence_Model(context, (Parent) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 12
Source File: Bug313089TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
@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 == Bug313089Package.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug313089Package.BAR: sequence_Bar(context, (Bar) semanticObject); return; case Bug313089Package.BAZ: sequence_Baz(context, (Baz) semanticObject); return; case Bug313089Package.FOO: sequence_Foo(context, (Foo) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 13
Source File: EnumAndReferenceTestLanguageSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@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 == EnumAndReferenceTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case EnumAndReferenceTestLanguagePackage.ENTITY_WITH_ENUM_AND_REFERENCE: sequence_EntityWithEnumAndReference(context, (EntityWithEnumAndReference) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 14
Source File: Bug292245TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == Bug292245TestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug292245TestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 15
Source File: DomainModelTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@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 == DomainModelTestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case DomainModelTestPackage.ATTRIBUTE: sequence_Attribute(context, (Attribute) semanticObject); return; case DomainModelTestPackage.CLASS: sequence_Class(context, (org.eclipse.xtext.ui.tests.editor.contentassist.domainModelTest.Class) semanticObject); return; case DomainModelTestPackage.DATA_TYPE: sequence_DataType(context, (DataType) semanticObject); return; case DomainModelTestPackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case DomainModelTestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; case DomainModelTestPackage.REFERENCE: sequence_Reference(context, (Reference) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 16
Source File: EnumRulesTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == EnumRulesTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case EnumRulesTestLanguagePackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 17
Source File: Bug299237TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
@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 == Bug299237TestPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case Bug299237TestPackage.MODEL: sequence_Model(context, (Model) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 18
Source File: AbstractValidSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 4 votes |
@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 == ValidPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case ValidPackage.CATEGORY: sequence_Category(context, (Category) semanticObject); return; case ValidPackage.DUPLICATE_CONTEXT: sequence_DuplicateContext(context, (DuplicateContext) semanticObject); return; case ValidPackage.IMPORT: sequence_Import(context, (Import) semanticObject); return; case ValidPackage.NATIVE_CONTEXT: sequence_NativeContext(context, (NativeContext) semanticObject); return; case ValidPackage.NATIVE_RULE: sequence_NativeRule(context, (NativeRule) semanticObject); return; case ValidPackage.QUICK_FIX: sequence_QuickFix(context, (QuickFix) semanticObject); return; case ValidPackage.RANGE_RULE: sequence_RangeRule(context, (RangeRule) semanticObject); return; case ValidPackage.SIMPLE_CONTEXT: sequence_SimpleContext(context, (SimpleContext) semanticObject); return; case ValidPackage.SIZE_RULE: sequence_SizeRule(context, (SizeRule) semanticObject); return; case ValidPackage.UNIQUE_RULE: sequence_UniqueRule(context, (UniqueRule) semanticObject); return; case ValidPackage.VALID_MODEL: sequence_ValidModel(context, (ValidModel) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 19
Source File: ParameterizedExpressionsTestLanguageSemanticSequencer.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@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 == ParameterizedExpressionsTestLanguagePackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case ParameterizedExpressionsTestLanguagePackage.ASSIGNMENT_EXPRESSION: sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.BLOCK: sequence_Block(context, (Block) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.COMMA_EXPRESSION: sequence_Expression(context, (CommaExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.EXPRESSION_STATEMENT: sequence_ExpressionStatement(context, (ExpressionStatement) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.FUNCTION_DECLARATION: sequence_FunctionBody_FunctionDeclaration_FunctionHeader_FunctionImpl(context, (FunctionDeclaration) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.IDENTIFIER_REF: sequence_IdentifierRef(context, (IdentifierRef) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.INDEXED_ACCESS_EXPRESSION: sequence_IndexedAccessExpressionTail_MemberExpression(context, (IndexedAccessExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.LABELLED_STATEMENT: sequence_LabelledStatement(context, (LabelledStatement) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.PARAMETERIZED_PROPERTY_ACCESS_EXPRESSION: sequence_MemberExpression_ParameterizedPropertyAccessExpressionTail(context, (ParameterizedPropertyAccessExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.RELATIONAL_EXPRESSION: sequence_RelationalExpression(context, (RelationalExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.SHIFT_EXPRESSION: sequence_ShiftExpression(context, (ShiftExpression) semanticObject); return; case ParameterizedExpressionsTestLanguagePackage.YIELD_EXPRESSION: sequence_YieldExpression(context, (YieldExpression) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }
Example 20
Source File: LookaheadTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@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 == LookaheadLangPackage.eINSTANCE) switch (semanticObject.eClass().getClassifierID()) { case LookaheadLangPackage.ENTRY: sequence_Entry(context, (Entry) semanticObject); return; case LookaheadLangPackage.FEWER_LOOK_AHEAD_STRINGS: sequence_FewerLookAheadStrings(context, (FewerLookAheadStrings) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD0: sequence_LookAhead0(context, (LookAhead0) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD1: sequence_LookAhead1(context, (LookAhead1) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD2: sequence_LookAhead2(context, (LookAhead2) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD3: sequence_LookAhead3(context, (LookAhead3) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD4: sequence_LookAhead4(context, (LookAhead4) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD_PREDICATE: sequence_LookAheadPredicate(context, (LookAheadPredicate) semanticObject); return; case LookaheadLangPackage.LOOK_AHEAD_STRINGS: sequence_LookAheadStrings(context, (LookAheadStrings) semanticObject); return; case LookaheadLangPackage.LOOK_BEYOND: sequence_LookBeyond(context, (LookBeyond) semanticObject); return; } if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); }