Java Code Examples for org.eclipse.xtext.serializer.acceptor.SequenceFeeder#finish()

The following examples show how to use org.eclipse.xtext.serializer.acceptor.SequenceFeeder#finish() . 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: SequencerTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     UnorderedAlternativeVal returns UnorderedAlternativeVal
 *
 * Constraint:
 *     val=ID
 */
protected void sequence_UnorderedAlternativeVal(ISerializationContext context, UnorderedAlternativeVal semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.UNORDERED_ALTERNATIVE_VAL__VAL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.UNORDERED_ALTERNATIVE_VAL__VAL));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getUnorderedAlternativeValAccess().getValIDTerminalRuleCall_1_0(), semanticObject.getVal());
	feeder.finish();
}
 
Example 2
Source File: Bug307519TestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Elem1 returns Elem1
 *
 * Constraint:
 *     value=EnumT
 */
protected void sequence_Elem1(ISerializationContext context, Elem1 semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, Bug307519TestLanguagePackage.Literals.ELEM1__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug307519TestLanguagePackage.Literals.ELEM1__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getElem1Access().getValueEnumTEnumRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example 3
Source File: HiddenTerminalsTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Model returns WithHiddens
 *     WithHiddens returns WithHiddens
 *
 * Constraint:
 *     valid?=';'
 */
protected void sequence_WithHiddens(ISerializationContext context, WithHiddens semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getWithHiddensAccess().getValidSemicolonKeyword_2_0(), semanticObject.isValid());
	feeder.finish();
}
 
Example 4
Source File: BacktrackingContentAssistTestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     OperationRef returns SimpleOperationRef
 *     SimpleOperationRef returns SimpleOperationRef
 *
 * Constraint:
 *     operation=Identifier
 */
protected void sequence_SimpleOperationRef(ISerializationContext context, SimpleOperationRef semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, BacktrackingContentAssistTestPackage.Literals.SIMPLE_OPERATION_REF__OPERATION) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BacktrackingContentAssistTestPackage.Literals.SIMPLE_OPERATION_REF__OPERATION));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSimpleOperationRefAccess().getOperationIdentifierParserRuleCall_0(), semanticObject.getOperation());
	feeder.finish();
}
 
Example 5
Source File: StatemachineSemanticSequencer.java    From xtext-web with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Command returns Command
 *
 * Constraint:
 *     (signal=[Signal|ID] newValue=BOOLEAN)
 */
protected void sequence_Command(ISerializationContext context, Command semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL));
		if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1(), semanticObject.eGet(StatemachinePackage.Literals.COMMAND__SIGNAL, false));
	feeder.accept(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0(), semanticObject.isNewValue());
	feeder.finish();
}
 
Example 6
Source File: UnassignedRuleCallTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Model returns Model
 *
 * Constraint:
 *     modelFeatures=ModelFeatures
 */
protected void sequence_Model(ISerializationContext context, Model semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, UnassignedRuleCallTestLanguagePackage.Literals.MODEL__MODEL_FEATURES) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UnassignedRuleCallTestLanguagePackage.Literals.MODEL__MODEL_FEATURES));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getModelAccess().getModelFeaturesModelFeaturesParserRuleCall_2_0(), semanticObject.getModelFeatures());
	feeder.finish();
}
 
Example 7
Source File: ConcreteSyntaxValidationTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     UnassignedRuleCall1 returns UnassignedRuleCall1Sub
 *
 * Constraint:
 *     (val1=ID val2=ID)
 */
protected void sequence_UnassignedRuleCall1_UnassignedRuleCall1Sub(ISerializationContext context, UnassignedRuleCall1Sub semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.UNASSIGNED_RULE_CALL1_SUB__VAL1) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.UNASSIGNED_RULE_CALL1_SUB__VAL1));
		if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.UNASSIGNED_RULE_CALL1_SUB__VAL2) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.UNASSIGNED_RULE_CALL1_SUB__VAL2));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getUnassignedRuleCall1SubAccess().getVal1IDTerminalRuleCall_0(), semanticObject.getVal1());
	feeder.accept(grammarAccess.getUnassignedRuleCall1Access().getVal2IDTerminalRuleCall_2_0(), semanticObject.getVal2());
	feeder.finish();
}
 
Example 8
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 9
Source File: AbstractSyntacticSequencerTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     Exp1 returns Add1
 *     Addition1 returns Add1
 *     Addition1.Add1_1_0 returns Add1
 *     Prim1 returns Add1
 *
 * Constraint:
 *     (left=Addition1_Add1_1_0 right=Prim1)
 */
protected void sequence_Addition1(ISerializationContext context, Add1 semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__LEFT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__LEFT));
		if (transientValues.isValueTransient(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__RIGHT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SyntacticsequencertestPackage.Literals.ADD1__RIGHT));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getAddition1Access().getAdd1LeftAction_1_0(), semanticObject.getLeft());
	feeder.accept(grammarAccess.getAddition1Access().getRightPrim1ParserRuleCall_1_2_0(), semanticObject.getRight());
	feeder.finish();
}
 
Example 10
Source File: SequencerTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     SingleContainmentReferenceChild3 returns SingleContainmentReferenceChild3
 *
 * Constraint:
 *     val='kw3'
 */
protected void sequence_SingleContainmentReferenceChild3(ISerializationContext context, SingleContainmentReferenceChild3 semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.SINGLE_CONTAINMENT_REFERENCE_CHILD3__VAL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.SINGLE_CONTAINMENT_REFERENCE_CHILD3__VAL));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSingleContainmentReferenceChild3Access().getValKw3Keyword_0(), semanticObject.getVal());
	feeder.finish();
}
 
Example 11
Source File: ContentAssistTestLanguageSemanticSequencer.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     AbstractRule returns SecondAbstractRuleChild
 *     SecondAbstractRuleChild returns SecondAbstractRuleChild
 *
 * Constraint:
 *     (name=ID rule=AbstractRuleCall)
 */
protected void sequence_SecondAbstractRuleChild(ISerializationContext context, SecondAbstractRuleChild semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, ContentAssistTestLanguagePackage.Literals.ABSTRACT_RULE__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ContentAssistTestLanguagePackage.Literals.ABSTRACT_RULE__NAME));
		if (transientValues.isValueTransient(semanticObject, ContentAssistTestLanguagePackage.Literals.SECOND_ABSTRACT_RULE_CHILD__RULE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ContentAssistTestLanguagePackage.Literals.SECOND_ABSTRACT_RULE_CHILD__RULE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSecondAbstractRuleChildAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getSecondAbstractRuleChildAccess().getRuleAbstractRuleCallParserRuleCall_3_0(), semanticObject.getRule());
	feeder.finish();
}
 
Example 12
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 13
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 14
Source File: ContentAssistFragmentTestLangSemanticSequencer.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     JvmLowerBoundAnded returns JvmLowerBound
 *
 * Constraint:
 *     typeReference=JvmTypeReference
 */
protected void sequence_JvmLowerBoundAnded(ISerializationContext context, JvmLowerBound semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0(), semanticObject.getTypeReference());
	feeder.finish();
}
 
Example 15
Source File: TypesSemanticSequencer.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Contexts:
 *     Type returns UndefinedType
 *     UndefinedType returns UndefinedType
 *
 * Constraint:
 *     name='undefined'
 */
protected void sequence_UndefinedType(ISerializationContext context, UndefinedType semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.IDENTIFIABLE_ELEMENT__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.IDENTIFIABLE_ELEMENT__NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getUndefinedTypeAccess().getNameUndefinedKeyword_1_0(), semanticObject.getName());
	feeder.finish();
}
 
Example 16
Source File: BeeLangTestLanguageSemanticSequencer.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     FeatureOfThis returns FeatureExpression
 *
 * Constraint:
 *     featureName=ID
 */
protected void sequence_FeatureOfThis(ISerializationContext context, FeatureExpression semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__FEATURE_NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BeeLangTestLanguagePackage.Literals.FEATURE_EXPRESSION__FEATURE_NAME));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getFeatureOfThisAccess().getFeatureNameIDTerminalRuleCall_1_0(), semanticObject.getFeatureName());
	feeder.finish();
}
 
Example 17
Source File: ContentAssistTestLanguageSemanticSequencer.java    From xtext-eclipse 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 18
Source File: AbstractXtendSemanticSequencer.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Contexts:
 *     TypeReferenceWithTypeArgs.JvmGenericArrayTypeReference_1_1_0_0 returns JvmGenericArrayTypeReference
 *
 * Constraint:
 *     componentType=TypeReferenceWithTypeArgs_JvmGenericArrayTypeReference_1_1_0_0
 */
protected void sequence_TypeReferenceWithTypeArgs_JvmGenericArrayTypeReference_1_1_0_0(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.getTypeReferenceWithTypeArgsAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_1_1_0_0(), semanticObject.getComponentType());
	feeder.finish();
}
 
Example 19
Source File: AbstractXtendSemanticSequencer.java    From xtext-xtend with Eclipse Public License 2.0 3 votes vote down vote up
/**
 * Contexts:
 *     XAssignment returns XStringLiteral
 *     XAssignment.XBinaryOperation_1_1_0_0_0 returns XStringLiteral
 *     XConditionalExpression returns XStringLiteral
 *     XConditionalExpression.XIfExpression_1_0_0_0 returns XStringLiteral
 *     XStringLiteral returns XStringLiteral
 *     XExpressionOrSimpleConstructorCall returns XStringLiteral
 *     SimpleStringLiteral returns XStringLiteral
 *     RichStringPart returns XStringLiteral
 *     XAnnotationElementValueOrCommaList returns XStringLiteral
 *     XAnnotationElementValueOrCommaList.XListLiteral_1_1_0 returns XStringLiteral
 *     XAnnotationElementValue returns XStringLiteral
 *     XAnnotationOrExpression returns XStringLiteral
 *     XExpression returns XStringLiteral
 *     XOrExpression returns XStringLiteral
 *     XOrExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XAndExpression returns XStringLiteral
 *     XAndExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XEqualityExpression returns XStringLiteral
 *     XEqualityExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XRelationalExpression returns XStringLiteral
 *     XRelationalExpression.XInstanceOfExpression_1_0_0_0_0 returns XStringLiteral
 *     XRelationalExpression.XBinaryOperation_1_1_0_0_0 returns XStringLiteral
 *     XOtherOperatorExpression returns XStringLiteral
 *     XOtherOperatorExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XAdditiveExpression returns XStringLiteral
 *     XAdditiveExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XMultiplicativeExpression returns XStringLiteral
 *     XMultiplicativeExpression.XBinaryOperation_1_0_0_0 returns XStringLiteral
 *     XUnaryOperation returns XStringLiteral
 *     XCastedExpression returns XStringLiteral
 *     XCastedExpression.XCastedExpression_1_0_0_0 returns XStringLiteral
 *     XPostfixOperation returns XStringLiteral
 *     XPostfixOperation.XPostfixOperation_1_0_0 returns XStringLiteral
 *     XMemberFeatureCall returns XStringLiteral
 *     XMemberFeatureCall.XAssignment_1_0_0_0_0 returns XStringLiteral
 *     XMemberFeatureCall.XMemberFeatureCall_1_1_0_0_0 returns XStringLiteral
 *     XPrimaryExpression returns XStringLiteral
 *     XLiteral returns XStringLiteral
 *     XParenthesizedExpression returns XStringLiteral
 *     XExpressionOrVarDeclaration returns XStringLiteral
 *
 * Constraint:
 *     value=STRING
 */
protected void sequence_SimpleStringLiteral(ISerializationContext context, XStringLiteral semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XSTRING_LITERAL__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XSTRING_LITERAL__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getSimpleStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0(), semanticObject.getValue());
	feeder.finish();
}
 
Example 20
Source File: AbstractXbaseSemanticSequencer.java    From xtext-extras with Eclipse Public License 2.0 3 votes vote down vote up
/**
 * Contexts:
 *     XExpression returns XPostfixOperation
 *     XAssignment returns XPostfixOperation
 *     XAssignment.XBinaryOperation_1_1_0_0_0 returns XPostfixOperation
 *     XOrExpression returns XPostfixOperation
 *     XOrExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XAndExpression returns XPostfixOperation
 *     XAndExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XEqualityExpression returns XPostfixOperation
 *     XEqualityExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XRelationalExpression returns XPostfixOperation
 *     XRelationalExpression.XInstanceOfExpression_1_0_0_0_0 returns XPostfixOperation
 *     XRelationalExpression.XBinaryOperation_1_1_0_0_0 returns XPostfixOperation
 *     XOtherOperatorExpression returns XPostfixOperation
 *     XOtherOperatorExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XAdditiveExpression returns XPostfixOperation
 *     XAdditiveExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XMultiplicativeExpression returns XPostfixOperation
 *     XMultiplicativeExpression.XBinaryOperation_1_0_0_0 returns XPostfixOperation
 *     XUnaryOperation returns XPostfixOperation
 *     XCastedExpression returns XPostfixOperation
 *     XCastedExpression.XCastedExpression_1_0_0_0 returns XPostfixOperation
 *     XPostfixOperation returns XPostfixOperation
 *     XPostfixOperation.XPostfixOperation_1_0_0 returns XPostfixOperation
 *     XMemberFeatureCall returns XPostfixOperation
 *     XMemberFeatureCall.XAssignment_1_0_0_0_0 returns XPostfixOperation
 *     XMemberFeatureCall.XMemberFeatureCall_1_1_0_0_0 returns XPostfixOperation
 *     XPrimaryExpression returns XPostfixOperation
 *     XParenthesizedExpression returns XPostfixOperation
 *     XExpressionOrVarDeclaration returns XPostfixOperation
 *
 * Constraint:
 *     (operand=XPostfixOperation_XPostfixOperation_1_0_0 feature=[JvmIdentifiableElement|OpPostfix])
 */
protected void sequence_XPostfixOperation(ISerializationContext context, XPostfixOperation semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XPOSTFIX_OPERATION__OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XPOSTFIX_OPERATION__OPERAND));
		if (transientValues.isValueTransient(semanticObject, XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), semanticObject.getOperand());
	feeder.accept(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1(), semanticObject.eGet(XbasePackage.Literals.XABSTRACT_FEATURE_CALL__FEATURE, false));
	feeder.finish();
}