org.eclipse.xtext.serializer.acceptor.SequenceFeeder Java Examples

The following examples show how to use org.eclipse.xtext.serializer.acceptor.SequenceFeeder. 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: RuleEngineSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Contexts:
 *     Declaration returns Rule
 *     Rule returns Rule
 *
 * Constraint:
 *     (description=STRING deviceState=[State|QualifiedName] thenPart=XBlockExpression)
 */
protected void sequence_Rule(ISerializationContext context, Rule semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, RuleEnginePackage.Literals.RULE__DESCRIPTION) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RuleEnginePackage.Literals.RULE__DESCRIPTION));
		if (transientValues.isValueTransient(semanticObject, RuleEnginePackage.Literals.RULE__DEVICE_STATE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RuleEnginePackage.Literals.RULE__DEVICE_STATE));
		if (transientValues.isValueTransient(semanticObject, RuleEnginePackage.Literals.RULE__THEN_PART) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RuleEnginePackage.Literals.RULE__THEN_PART));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getRuleAccess().getDescriptionSTRINGTerminalRuleCall_1_0(), semanticObject.getDescription());
	feeder.accept(grammarAccess.getRuleAccess().getDeviceStateStateQualifiedNameParserRuleCall_3_0_1(), semanticObject.eGet(RuleEnginePackage.Literals.RULE__DEVICE_STATE, false));
	feeder.accept(grammarAccess.getRuleAccess().getThenPartXBlockExpressionParserRuleCall_5_0(), semanticObject.getThenPart());
	feeder.finish();
}
 
Example #2
Source File: Bug287941TestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Contexts:
 *     WhereEntry returns LongWhereEntry
 *     WhereEntry.OrWhereEntry_1_0 returns LongWhereEntry
 *     AndWhereEntry returns LongWhereEntry
 *     AndWhereEntry.AndWhereEntry_1_0 returns LongWhereEntry
 *     ConcreteWhereEntry returns LongWhereEntry
 *     ParWhereEntry returns LongWhereEntry
 *     AttributeWhereEntry returns LongWhereEntry
 *     NumericAttributeWhereEntry returns LongWhereEntry
 *     LongWhereEntry returns LongWhereEntry
 *
 * Constraint:
 *     (alias=[FromEntry|ID] attribute=[EAttribute|ID] operator=NumericOperator value=SINGED_LONG)
 */
protected void sequence_LongWhereEntry(ISerializationContext context, LongWhereEntry semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.NUMERIC_ATTRIBUTE_WHERE_ENTRY__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.NUMERIC_ATTRIBUTE_WHERE_ENTRY__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.LONG_WHERE_ENTRY__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.LONG_WHERE_ENTRY__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getLongWhereEntryAccess().getAliasFromEntryIDTerminalRuleCall_0_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS, false));
	feeder.accept(grammarAccess.getLongWhereEntryAccess().getAttributeEAttributeIDTerminalRuleCall_2_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE, false));
	feeder.accept(grammarAccess.getLongWhereEntryAccess().getOperatorNumericOperatorEnumRuleCall_3_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getLongWhereEntryAccess().getValueSINGED_LONGTerminalRuleCall_4_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #3
Source File: Bug287941TestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Contexts:
 *     WhereEntry returns VariableWhereEntry
 *     WhereEntry.OrWhereEntry_1_0 returns VariableWhereEntry
 *     AndWhereEntry returns VariableWhereEntry
 *     AndWhereEntry.AndWhereEntry_1_0 returns VariableWhereEntry
 *     ConcreteWhereEntry returns VariableWhereEntry
 *     ParWhereEntry returns VariableWhereEntry
 *     AttributeWhereEntry returns VariableWhereEntry
 *     VariableWhereEntry returns VariableWhereEntry
 *
 * Constraint:
 *     (alias=[FromEntry|ID] attribute=[EAttribute|ID] operator=NumericOperator rightAlias=[FromEntry|ID] rightAttribute=[EAttribute|ID])
 */
protected void sequence_VariableWhereEntry(ISerializationContext context, VariableWhereEntry semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ALIAS) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ALIAS));
		if (transientValues.isValueTransient(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ATTRIBUTE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ATTRIBUTE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getVariableWhereEntryAccess().getAliasFromEntryIDTerminalRuleCall_0_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ALIAS, false));
	feeder.accept(grammarAccess.getVariableWhereEntryAccess().getAttributeEAttributeIDTerminalRuleCall_2_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.ATTRIBUTE_WHERE_ENTRY__ATTRIBUTE, false));
	feeder.accept(grammarAccess.getVariableWhereEntryAccess().getOperatorNumericOperatorEnumRuleCall_3_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getVariableWhereEntryAccess().getRightAliasFromEntryIDTerminalRuleCall_4_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ALIAS, false));
	feeder.accept(grammarAccess.getVariableWhereEntryAccess().getRightAttributeEAttributeIDTerminalRuleCall_6_0_1(), semanticObject.eGet(Bug287941TestLanguagePackage.Literals.VARIABLE_WHERE_ENTRY__RIGHT_ATTRIBUTE, false));
	feeder.finish();
}
 
Example #4
Source File: Bug332217TestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Contexts:
 *     Expression returns StringReplace
 *     ImageExpression returns StringReplace
 *     ScalarExpression returns StringReplace
 *     StringFunction returns StringReplace
 *
 * Constraint:
 *     (value=ScalarExpression match=ScalarExpression replacement=ScalarExpression)
 */
protected void sequence_StringFunction(ISerializationContext context, StringReplace semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__VALUE));
		if (transientValues.isValueTransient(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__MATCH) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__MATCH));
		if (transientValues.isValueTransient(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__REPLACEMENT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug332217TestLanguagePackage.Literals.STRING_REPLACE__REPLACEMENT));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getStringFunctionAccess().getValueScalarExpressionParserRuleCall_1_2_0(), semanticObject.getValue());
	feeder.accept(grammarAccess.getStringFunctionAccess().getMatchScalarExpressionParserRuleCall_1_4_0(), semanticObject.getMatch());
	feeder.accept(grammarAccess.getStringFunctionAccess().getReplacementScalarExpressionParserRuleCall_1_6_0(), semanticObject.getReplacement());
	feeder.finish();
}
 
Example #5
Source File: AbstractUnassignedTextTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Model returns PluralRule
 *     PluralRule returns PluralRule
 *
 * Constraint:
 *     count=INT
 */
protected void sequence_PluralRule(ISerializationContext context, PluralRule semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, UnassignedtextPackage.Literals.PLURAL_RULE__COUNT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UnassignedtextPackage.Literals.PLURAL_RULE__COUNT));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getPluralRuleAccess().getCountINTTerminalRuleCall_1_0(), semanticObject.getCount());
	feeder.finish();
}
 
Example #6
Source File: ConcreteTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     ExtendableParserRule returns Subrule3
 *     Subrule3 returns Subrule3
 *
 * Constraint:
 *     (name=ID sub1=INT)
 */
protected void sequence_Subrule3(ISerializationContext context, Subrule3 semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME));
		if (transientValues.isValueTransient(semanticObject, FooPackage.Literals.SUBRULE3__SUB1) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FooPackage.Literals.SUBRULE3__SUB1));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSubrule3Access().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getSubrule3Access().getSub1INTTerminalRuleCall_2_0(), semanticObject.getSub1());
	feeder.finish();
}
 
Example #7
Source File: ComplexReconstrTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Root returns TrickyG
 *     TrickyG returns TrickyG
 *
 * Constraint:
 *     tree=TrickyG1
 */
protected void sequence_TrickyG(ISerializationContext context, TrickyG semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G__TREE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G__TREE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTrickyGAccess().getTreeTrickyG1ParserRuleCall_1_0(), semanticObject.getTree());
	feeder.finish();
}
 
Example #8
Source File: ComplexReconstrTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     TrickyG2 returns TrickyG2
 *
 * Constraint:
 *     val=INT
 */
protected void sequence_TrickyG2(ISerializationContext context, TrickyG2 semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G2__VAL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ComplexrewritetestPackage.Literals.TRICKY_G2__VAL));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTrickyG2Access().getValINTTerminalRuleCall_1_0(), semanticObject.getVal());
	feeder.finish();
}
 
Example #9
Source File: Bug297105TestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Literal returns IntLiteral
 *     IntLiteral returns IntLiteral
 *
 * Constraint:
 *     value=IntValue
 */
protected void sequence_IntLiteral(ISerializationContext context, IntLiteral semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug297105TestLanguagePackage.Literals.LITERAL__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug297105TestLanguagePackage.Literals.LITERAL__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getIntLiteralAccess().getValueIntValueParserRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #10
Source File: TwoParametersTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Scenario5<A,B> returns Scenario
 *
 * Constraint:
 *     first=ID
 */
protected void sequence_Scenario5$A$true$B$true$(ISerializationContext context, Scenario semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__FIRST) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__FIRST));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getScenario5Access().getFirstIDTerminalRuleCall_0_0_0(), semanticObject.getFirst());
	feeder.finish();
}
 
Example #11
Source File: Bug297105TestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Literal returns RealLiteral
 *     RealLiteral returns RealLiteral
 *
 * Constraint:
 *     value=RealValue
 */
protected void sequence_RealLiteral(ISerializationContext context, RealLiteral semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug297105TestLanguagePackage.Literals.LITERAL__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug297105TestLanguagePackage.Literals.LITERAL__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getRealLiteralAccess().getValueRealValueParserRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #12
Source File: TwoParametersTestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Scenario6<A,B> returns Scenario
 *
 * Constraint:
 *     first=ID
 */
protected void sequence_Scenario6$A$true$B$true$(ISerializationContext context, Scenario semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__FIRST) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__FIRST));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getScenario6Access().getFirstIDTerminalRuleCall_0_0_0(), semanticObject.getFirst());
	feeder.finish();
}
 
Example #13
Source File: XtextSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     TerminalRuleCall returns RuleCall
 *
 * Constraint:
 *     rule=[AbstractRule|RuleID]
 */
protected void sequence_TerminalRuleCall(ISerializationContext context, RuleCall semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, XtextPackage.Literals.RULE_CALL__RULE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XtextPackage.Literals.RULE_CALL__RULE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTerminalRuleCallAccess().getRuleAbstractRuleRuleIDParserRuleCall_0_1(), semanticObject.eGet(XtextPackage.Literals.RULE_CALL__RULE, false));
	feeder.finish();
}
 
Example #14
Source File: EncodingUiTestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Word returns Word
 *
 * Constraint:
 *     value=LEXEME
 */
protected void sequence_Word(ISerializationContext context, Word semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, EncodingTestPackage.Literals.WORD__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EncodingTestPackage.Literals.WORD__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getWordAccess().getValueLEXEMETerminalRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #15
Source File: NoParametersTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Scenario1_False returns Scenario
 *
 * Constraint:
 *     second=ID
 */
protected void sequence_Scenario1_False(ISerializationContext context, Scenario semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__SECOND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ParametersTestLanguagePackage.Literals.SCENARIO__SECOND));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getScenario1_FalseAccess().getSecondIDTerminalRuleCall_0(), semanticObject.getSecond());
	feeder.finish();
}
 
Example #16
Source File: IgnoreCaseLexerTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Model returns Model
 *
 * Constraint:
 *     value='CaSe'
 */
protected void sequence_Model(ISerializationContext context, Model semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, IgnoreCaseTestLanguagePackage.Literals.MODEL__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, IgnoreCaseTestLanguagePackage.Literals.MODEL__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getModelAccess().getValueCaSeKeyword_2_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #17
Source File: ContentAssistFragmentTestLangSemanticSequencer.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     JvmTypeReference returns JvmGenericArrayTypeReference
 *     JvmTypeReference.JvmGenericArrayTypeReference_0_1_0_0 returns JvmGenericArrayTypeReference
 *     JvmArgumentTypeReference returns JvmGenericArrayTypeReference
 *
 * Constraint:
 *     componentType=JvmTypeReference_JvmGenericArrayTypeReference_0_1_0_0
 */
protected void sequence_JvmTypeReference(ISerializationContext context, JvmGenericArrayTypeReference semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), semanticObject.getComponentType());
	feeder.finish();
}
 
Example #18
Source File: ContentAssistTestLanguageSemanticSequencer.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Import returns Import
 *
 * Constraint:
 *     importedNamespace=ImportedFQN
 */
protected void sequence_Import(ISerializationContext context, Import semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ContentAssistTestLanguagePackage.Literals.IMPORT__IMPORTED_NAMESPACE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ContentAssistTestLanguagePackage.Literals.IMPORT__IMPORTED_NAMESPACE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getImportAccess().getImportedNamespaceImportedFQNParserRuleCall_1_0(), semanticObject.getImportedNamespace());
	feeder.finish();
}
 
Example #19
Source File: EObjectAtOffsetTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Foo returns Foo
 *
 * Constraint:
 *     name=QualifiedNameWithOtherDelim
 */
protected void sequence_Foo(ISerializationContext context, Foo semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, EObjectAtOffsetTestLanguagePackage.Literals.FOO__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EObjectAtOffsetTestLanguagePackage.Literals.FOO__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getFooAccess().getNameQualifiedNameWithOtherDelimParserRuleCall_1_0(), semanticObject.getName());
	feeder.finish();
}
 
Example #20
Source File: AbstractFragmentTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     PRFNamedRecursiveFragment returns PRFNamedWithAction
 *
 * Constraint:
 *     (name=ID prev=NamedByAction)
 */
protected void sequence_PRFNamedRecursiveFragment_RecursiveFragment(ISerializationContext context, PRFNamedWithAction semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME));
		if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED_WITH_ACTION__PREV) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED_WITH_ACTION__PREV));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getPRFNamedRecursiveFragmentAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getRecursiveFragmentAccess().getPrevNamedByActionParserRuleCall_1_0(), semanticObject.getPrev());
	feeder.finish();
}
 
Example #21
Source File: XmlSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Attribute returns Attribute
 *
 * Constraint:
 *     (name=ID value=STRING)
 */
protected void sequence_Attribute(ISerializationContext context, Attribute semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, SimplexmlPackage.Literals.ATTRIBUTE__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SimplexmlPackage.Literals.ATTRIBUTE__NAME));
		if (transientValues.isValueTransient(semanticObject, SimplexmlPackage.Literals.ATTRIBUTE__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SimplexmlPackage.Literals.ATTRIBUTE__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getAttributeAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getAttributeAccess().getValueSTRINGTerminalRuleCall_2_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #22
Source File: SequencerTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     NullValueGenerated returns NullValue
 *
 * Constraint:
 *     value=NULL_STRING
 */
protected void sequence_NullValueGenerated(ISerializationContext context, NullValue semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.NULL_VALUE__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.NULL_VALUE__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getNullValueGeneratedAccess().getValueNULL_STRINGParserRuleCall_1_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example #23
Source File: RegionAccessTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Root returns Add
 *     Expression returns Add
 *     Expression.Add_1_0 returns Add
 *     Primary returns Add
 *     Parenthesized returns Add
 *
 * Constraint:
 *     (left=Expression_Add_1_0 right=Primary)
 */
protected void sequence_Expression(ISerializationContext context, Add semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, RegionaccesstestlanguagePackage.Literals.ADD__LEFT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegionaccesstestlanguagePackage.Literals.ADD__LEFT));
		if (transientValues.isValueTransient(semanticObject, RegionaccesstestlanguagePackage.Literals.ADD__RIGHT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegionaccesstestlanguagePackage.Literals.ADD__RIGHT));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getExpressionAccess().getAddLeftAction_1_0(), semanticObject.getLeft());
	feeder.accept(grammarAccess.getExpressionAccess().getRightPrimaryParserRuleCall_1_2_0(), semanticObject.getRight());
	feeder.finish();
}
 
Example #24
Source File: EpatchTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     MonoSingleAssignment returns SingleAssignment
 *
 * Constraint:
 *     (feature=ID leftValue=SingleAssignmentValue)
 */
protected void sequence_MonoSingleAssignment(ISerializationContext context, SingleAssignment semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.ASSIGNMENT__FEATURE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.ASSIGNMENT__FEATURE));
		if (transientValues.isValueTransient(semanticObject, EpatchTestLanguagePackage.Literals.SINGLE_ASSIGNMENT__LEFT_VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EpatchTestLanguagePackage.Literals.SINGLE_ASSIGNMENT__LEFT_VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getMonoSingleAssignmentAccess().getFeatureIDTerminalRuleCall_0_0(), semanticObject.getFeature());
	feeder.accept(grammarAccess.getMonoSingleAssignmentAccess().getLeftValueSingleAssignmentValueParserRuleCall_2_0(), semanticObject.getLeftValue());
	feeder.finish();
}
 
Example #25
Source File: RegionAccessTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Root returns Delegation
 *     Delegation returns Delegation
 *
 * Constraint:
 *     delegate=Delegate
 */
protected void sequence_Delegation(ISerializationContext context, Delegation semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, RegionaccesstestlanguagePackage.Literals.DELEGATION__DELEGATE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegionaccesstestlanguagePackage.Literals.DELEGATION__DELEGATE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getDelegationAccess().getDelegateDelegateParserRuleCall_1_0(), semanticObject.getDelegate());
	feeder.finish();
}
 
Example #26
Source File: Bug385636SemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     NVariableAccess returns NVariableAccess
 *
 * Constraint:
 *     variable=[DefineVariable|ID]
 */
protected void sequence_NVariableAccess(ISerializationContext context, NVariableAccess semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getNVariableAccessAccess().getVariableDefineVariableIDTerminalRuleCall_0_1(), semanticObject.eGet(Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE, false));
	feeder.finish();
}
 
Example #27
Source File: PartialSerializationTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     EClassDecl returns EClass
 *
 * Constraint:
 *     name=ID
 */
protected void sequence_EClassDecl(ISerializationContext context, EClass semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, EcorePackage.Literals.ENAMED_ELEMENT__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EcorePackage.Literals.ENAMED_ELEMENT__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getEClassDeclAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName());
	feeder.finish();
}
 
Example #28
Source File: ReferenceGrammarUiTestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Person returns Erwachsener
 *     Erwachsener returns Erwachsener
 *
 * Constraint:
 *     (name=ID age=INT)
 */
protected void sequence_Erwachsener(ISerializationContext context, Erwachsener semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ReferenceGrammarUiPackage.Literals.PERSON__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ReferenceGrammarUiPackage.Literals.PERSON__NAME));
		if (transientValues.isValueTransient(semanticObject, ReferenceGrammarUiPackage.Literals.PERSON__AGE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ReferenceGrammarUiPackage.Literals.PERSON__AGE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getErwachsenerAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getErwachsenerAccess().getAgeINTTerminalRuleCall_3_0(), semanticObject.getAge());
	feeder.finish();
}
 
Example #29
Source File: PartialSerializationTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     SubChild returns SubChild
 *
 * Constraint:
 *     name=ID
 */
protected void sequence_SubChild(ISerializationContext context, SubChild semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, PartialSerializationTestLanguagePackage.Literals.SUB_CHILD__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PartialSerializationTestLanguagePackage.Literals.SUB_CHILD__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSubChildAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName());
	feeder.finish();
}
 
Example #30
Source File: AbstractAbstractTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     InheritedParserRule returns AType
 *
 * Constraint:
 *     name=ID
 */
protected void sequence_InheritedParserRule(ISerializationContext context, AType semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AmetamodelPackage.Literals.ATYPE__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getInheritedParserRuleAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.finish();
}