當前位置: 首頁>>代碼示例>>Java>>正文


Java SequenceFeeder類代碼示例

本文整理匯總了Java中org.eclipse.xtext.serializer.acceptor.SequenceFeeder的典型用法代碼示例。如果您正苦於以下問題:Java SequenceFeeder類的具體用法?Java SequenceFeeder怎麽用?Java SequenceFeeder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SequenceFeeder類屬於org.eclipse.xtext.serializer.acceptor包,在下文中一共展示了SequenceFeeder類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: sequence_Card

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Card returns Card
 *
 * Constraint:
 *     (count=INT name=NAMESTRING setNr=INT set=NAMESTRING)
 */
protected void sequence_Card(ISerializationContext context, Card semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__COUNT) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__COUNT));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__NAME));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__SET_NR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__SET_NR));
		if (transientValues.isValueTransient(semanticObject, PkmntcgoPackage.Literals.CARD__SET) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PkmntcgoPackage.Literals.CARD__SET));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getCardAccess().getCountINTTerminalRuleCall_0_0(), semanticObject.getCount());
	feeder.accept(grammarAccess.getCardAccess().getNameNAMESTRINGParserRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getCardAccess().getSetNrINTTerminalRuleCall_2_0(), semanticObject.getSetNr());
	feeder.accept(grammarAccess.getCardAccess().getSetNAMESTRINGParserRuleCall_3_0(), semanticObject.getSet());
	feeder.finish();
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:26,代碼來源:PkmntcgoSemanticSequencer.java

示例2: sequence_GEqualityExpression

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     GExpression returns GEqualityExpression
 *     GOrExpression returns GEqualityExpression
 *     GOrExpression.GOrExpression_1_0 returns GEqualityExpression
 *     GXorExpression returns GEqualityExpression
 *     GXorExpression.GXorExpression_1_0 returns GEqualityExpression
 *     GAndExpression returns GEqualityExpression
 *     GAndExpression.GAndExpression_1_0 returns GEqualityExpression
 *     GEqualityExpression returns GEqualityExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GEqualityExpression
 *
 * Constraint:
 *     (leftOperand=GEqualityExpression_GEqualityExpression_1_0 operator=GEqualityOperator rightOperand=GRelationExpression)
 */
protected void sequence_GEqualityExpression(ISerializationContext context, GEqualityExpression semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GEQUALITY_EXPRESSION__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GEQUALITY_EXPRESSION__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getGEqualityExpressionLeftOperandAction_1_0(), semanticObject.getLeftOperand());
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getOperatorGEqualityOperatorEnumRuleCall_1_1_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getGEqualityExpressionAccess().getRightOperandGRelationExpressionParserRuleCall_1_2_0(), semanticObject.getRightOperand());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:31,代碼來源:AbstractGExpressionsSemanticSequencer.java

示例3: sequence_Button

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Button returns Button
 *
 * Constraint:
 *     (name=ID title=Description href=STRING)
 */
protected void sequence_Button(ISerializationContext context, Button semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__NAME));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__TITLE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__TITLE));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.BUTTON__HREF) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.BUTTON__HREF));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getButtonAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getButtonAccess().getTitleDescriptionParserRuleCall_3_0(), semanticObject.getTitle());
	feeder.accept(grammarAccess.getButtonAccess().getHrefSTRINGTerminalRuleCall_5_0(), semanticObject.getHref());
	feeder.finish();
}
 
開發者ID:fatalerrortan,項目名稱:Xtext_Xtend_HTML_Generator,代碼行數:23,代碼來源:MyDslSemanticSequencer.java

示例4: sequence_Menu

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Menu returns Menu
 *
 * Constraint:
 *     (name=ID meal=STRING description=Description price=STRING image=STRING)
 */
protected void sequence_Menu(ISerializationContext context, Menu semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.MENU__NAME) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.MENU__NAME));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.MENU__MEAL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.MENU__MEAL));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.MENU__DESCRIPTION) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.MENU__DESCRIPTION));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.MENU__PRICE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.MENU__PRICE));
		if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.MENU__IMAGE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.MENU__IMAGE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getMenuAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
	feeder.accept(grammarAccess.getMenuAccess().getMealSTRINGTerminalRuleCall_4_0(), semanticObject.getMeal());
	feeder.accept(grammarAccess.getMenuAccess().getDescriptionDescriptionParserRuleCall_5_0(), semanticObject.getDescription());
	feeder.accept(grammarAccess.getMenuAccess().getPriceSTRINGTerminalRuleCall_7_0(), semanticObject.getPrice());
	feeder.accept(grammarAccess.getMenuAccess().getImageSTRINGTerminalRuleCall_9_0(), semanticObject.getImage());
	feeder.finish();
}
 
開發者ID:fatalerrortan,項目名稱:Xtext_Xtend_HTML_Generator,代碼行數:29,代碼來源:MyDslSemanticSequencer.java

示例5: sequence_ThreeDottedVersion

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     ThreeDottedVersion returns ThreeDottedVersion
 *
 * Constraint:
 *     (big=INT medium=INT small=INT)
 */
protected void sequence_ThreeDottedVersion(ISerializationContext context, ThreeDottedVersion semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__BIG) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__BIG));
		if (transientValues.isValueTransient(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__MEDIUM) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__MEDIUM));
		if (transientValues.isValueTransient(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__SMALL) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BromiumPackage.Literals.THREE_DOTTED_VERSION__SMALL));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getThreeDottedVersionAccess().getBigINTTerminalRuleCall_0_0(), semanticObject.getBig());
	feeder.accept(grammarAccess.getThreeDottedVersionAccess().getMediumINTTerminalRuleCall_2_0(), semanticObject.getMedium());
	feeder.accept(grammarAccess.getThreeDottedVersionAccess().getSmallINTTerminalRuleCall_4_0(), semanticObject.getSmall());
	feeder.finish();
}
 
開發者ID:hristo-vrigazov,項目名稱:bromium,代碼行數:23,代碼來源:BromiumSemanticSequencer.java

示例6: sequence_GAndExpression

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     GExpression returns GAndExpression
 *     GOrExpression returns GAndExpression
 *     GOrExpression.GOrExpression_1_0 returns GAndExpression
 *     GXorExpression returns GAndExpression
 *     GXorExpression.GXorExpression_1_0 returns GAndExpression
 *     GAndExpression returns GAndExpression
 *     GAndExpression.GAndExpression_1_0 returns GAndExpression
 *
 * Constraint:
 *     (leftOperand=GAndExpression_GAndExpression_1_0 operator=GAndOperator rightOperand=GEqualityExpression)
 */
protected void sequence_GAndExpression(ISerializationContext context, GAndExpression semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GAND_EXPRESSION__OPERATOR) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GAND_EXPRESSION__OPERATOR));
		if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getGAndExpressionAccess().getGAndExpressionLeftOperandAction_1_0(), semanticObject.getLeftOperand());
	feeder.accept(grammarAccess.getGAndExpressionAccess().getOperatorGAndOperatorEnumRuleCall_1_1_0(), semanticObject.getOperator());
	feeder.accept(grammarAccess.getGAndExpressionAccess().getRightOperandGEqualityExpressionParserRuleCall_1_2_0(), semanticObject.getRightOperand());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:29,代碼來源:AbstractGExpressionsSemanticSequencer.java

示例7: sequence_AnyType

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Type returns AnyType
 *     AnyType returns AnyType
 *
 * Constraint:
 *     name='any'
 */
protected void sequence_AnyType(ISerializationContext context, AnyType 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.getAnyTypeAccess().getNameAnyKeyword_1_0(), semanticObject.getName());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:18,代碼來源:TypesSemanticSequencer.java

示例8: sequence_Entry

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Entry returns Entry
 *
 * Constraint:
 *     (key=WORD value=MULTILINE)
 */
protected void sequence_Entry(ISerializationContext context, Entry semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, DslPackage.Literals.ENTRY__KEY) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.ENTRY__KEY));
		if (transientValues.isValueTransient(semanticObject, DslPackage.Literals.ENTRY__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.ENTRY__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getEntryAccess().getKeyWORDParserRuleCall_1_0(), semanticObject.getKey());
	feeder.accept(grammarAccess.getEntryAccess().getValueMULTILINEParserRuleCall_5_0(), semanticObject.getValue());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:20,代碼來源:DslSemanticSequencer.java

示例9: sequence_TAnnotationStringArgument

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     TAnnotationArgument returns TAnnotationStringArgument
 *     TAnnotationStringArgument returns TAnnotationStringArgument
 *
 * Constraint:
 *     value=STRING
 */
protected void sequence_TAnnotationStringArgument(ISerializationContext context, TAnnotationStringArgument semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.TANNOTATION_STRING_ARGUMENT__VALUE) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.TANNOTATION_STRING_ARGUMENT__VALUE));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getTAnnotationStringArgumentAccess().getValueSTRINGTerminalRuleCall_0(), semanticObject.getValue());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:18,代碼來源:TypesSemanticSequencer.java

示例10: sequence_TEnumLiteral

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     TEnumLiteral returns TEnumLiteral
 *
 * Constraint:
 *     name=IDENTIFIER
 */
protected void sequence_TEnumLiteral(ISerializationContext context, TEnumLiteral 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.getTEnumLiteralAccess().getNameIDENTIFIERTerminalRuleCall_0(), semanticObject.getName());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:17,代碼來源:TypesSemanticSequencer.java

示例11: sequence_UndefinedType

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * 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();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:18,代碼來源:TypesSemanticSequencer.java

示例12: sequence_VoidType

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     Type returns VoidType
 *     VoidType returns VoidType
 *
 * Constraint:
 *     name='void'
 */
protected void sequence_VoidType(ISerializationContext context, VoidType 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.getVoidTypeAccess().getNameVoidKeyword_1_0(), semanticObject.getName());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:18,代碼來源:TypesSemanticSequencer.java

示例13: sequence_RegularExpressionBody

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     RegularExpressionBody returns RegularExpressionBody
 *
 * Constraint:
 *     pattern=Disjunction
 */
protected void sequence_RegularExpressionBody(ISerializationContext context, RegularExpressionBody semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_BODY__PATTERN) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_BODY__PATTERN));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getRegularExpressionBodyAccess().getPatternDisjunctionParserRuleCall_0(), semanticObject.getPattern());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:17,代碼來源:RegularExpressionSemanticSequencer.java

示例14: sequence_RegularExpressionLiteral

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     RegularExpressionLiteral returns RegularExpressionLiteral
 *
 * Constraint:
 *     (body=RegularExpressionBody flags=RegularExpressionFlags)
 */
protected void sequence_RegularExpressionLiteral(ISerializationContext context, RegularExpressionLiteral semanticObject) {
	if (errorAcceptor != null) {
		if (transientValues.isValueTransient(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_LITERAL__BODY) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_LITERAL__BODY));
		if (transientValues.isValueTransient(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_LITERAL__FLAGS) == ValueTransient.YES)
			errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegularExpressionPackage.Literals.REGULAR_EXPRESSION_LITERAL__FLAGS));
	}
	SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
	feeder.accept(grammarAccess.getRegularExpressionLiteralAccess().getBodyRegularExpressionBodyParserRuleCall_1_0(), semanticObject.getBody());
	feeder.accept(grammarAccess.getRegularExpressionLiteralAccess().getFlagsRegularExpressionFlagsParserRuleCall_3_0(), semanticObject.getFlags());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:20,代碼來源:RegularExpressionSemanticSequencer.java

示例15: sequence_BindingIdentifierAsFormalParameter

import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //導入依賴的package包/類
/**
 * Contexts:
 *     BindingIdentifierAsFormalParameter<Yield> returns FormalParameter
 *     BindingIdentifierAsFormalParameter returns FormalParameter
 *
 * Constraint:
 *     name=BindingIdentifier
 */
protected void sequence_BindingIdentifierAsFormalParameter(ISerializationContext context, FormalParameter 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.getBindingIdentifierAsFormalParameterAccess().getNameBindingIdentifierParserRuleCall_0(), semanticObject.getName());
	feeder.finish();
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:18,代碼來源:N4JSSemanticSequencer.java


注:本文中的org.eclipse.xtext.serializer.acceptor.SequenceFeeder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。