本文整理汇总了Java中org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept方法的典型用法代码示例。如果您正苦于以下问题:Java SequenceFeeder.accept方法的具体用法?Java SequenceFeeder.accept怎么用?Java SequenceFeeder.accept使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.xtext.serializer.acceptor.SequenceFeeder
的用法示例。
在下文中一共展示了SequenceFeeder.accept方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sequence_BooleanLiteral
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Constraint:
* value=BOOLEAN
*/
protected void sequence_BooleanLiteral(EObject context, BooleanLiteral semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.BOOLEAN_LITERAL__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.BOOLEAN_LITERAL__VALUE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getBooleanLiteralAccess().getValueBOOLEANParserRuleCall_0(), semanticObject.isValue());
feeder.finish();
}
示例2: sequence_ExecutionEnvironment
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* ExecutionEnvironment returns ExecutionEnvironment
*
* Constraint:
* name=STRING
*/
protected void sequence_ExecutionEnvironment(ISerializationContext context, ExecutionEnvironment semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.EXECUTION_ENVIRONMENT__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.EXECUTION_ENVIRONMENT__NAME));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getExecutionEnvironmentAccess().getNameSTRINGTerminalRuleCall_1_0(), semanticObject.getName());
feeder.finish();
}
示例3: sequence_MultiTextItem
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Constraint:
* title=EString
*/
protected void sequence_MultiTextItem(EObject context, MultiTextItem semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, QueryITPackage.Literals.MULTI_TEXT_ITEM__TITLE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, QueryITPackage.Literals.MULTI_TEXT_ITEM__TITLE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getMultiTextItemAccess().getTitleEStringParserRuleCall_1_0(), semanticObject.getTitle());
feeder.finish();
}
示例4: sequence_TAnnotationTypeRefArgument
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* TAnnotationArgument returns TAnnotationTypeRefArgument
* TAnnotationTypeRefArgument returns TAnnotationTypeRefArgument
*
* Constraint:
* typeRef=TypeRef
*/
protected void sequence_TAnnotationTypeRefArgument(ISerializationContext context, TAnnotationTypeRefArgument semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.TTYPED_ELEMENT__TYPE_REF) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.TTYPED_ELEMENT__TYPE_REF));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getTAnnotationTypeRefArgumentAccess().getTypeRefTypeRefParserRuleCall_0(), semanticObject.getTypeRef());
feeder.finish();
}
示例5: 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();
}
示例6: sequence_Nutricional
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* Nutricional returns Nutricional
*
* Constraint:
* (
* cantidad=Float
* unidad=STRING
* energia=Float
* grasas=Float
* hidratos=Float
* proteinas=Float
* sal=Float
* )
*/
protected void sequence_Nutricional(ISerializationContext context, Nutricional semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__CANTIDAD) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__CANTIDAD));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__UNIDAD) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__UNIDAD));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__ENERGIA) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__ENERGIA));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__GRASAS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__GRASAS));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__HIDRATOS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__HIDRATOS));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__PROTEINAS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__PROTEINAS));
if (transientValues.isValueTransient(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__SAL) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RestaurantePackage.Literals.NUTRICIONAL__SAL));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getNutricionalAccess().getCantidadFloatParserRuleCall_2_0(), semanticObject.getCantidad());
feeder.accept(grammarAccess.getNutricionalAccess().getUnidadSTRINGTerminalRuleCall_4_0(), semanticObject.getUnidad());
feeder.accept(grammarAccess.getNutricionalAccess().getEnergiaFloatParserRuleCall_6_0(), semanticObject.getEnergia());
feeder.accept(grammarAccess.getNutricionalAccess().getGrasasFloatParserRuleCall_8_0(), semanticObject.getGrasas());
feeder.accept(grammarAccess.getNutricionalAccess().getHidratosFloatParserRuleCall_10_0(), semanticObject.getHidratos());
feeder.accept(grammarAccess.getNutricionalAccess().getProteinasFloatParserRuleCall_12_0(), semanticObject.getProteinas());
feeder.accept(grammarAccess.getNutricionalAccess().getSalFloatParserRuleCall_14_0(), semanticObject.getSal());
feeder.finish();
}
示例7: sequence_StringLiteral
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Constraint:
* value=STRING
*/
protected void sequence_StringLiteral(EObject context, StringLiteral semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, KronusPackage.Literals.STRING_LITERAL__VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, KronusPackage.Literals.STRING_LITERAL__VALUE));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_0(), semanticObject.getValue());
feeder.finish();
}
示例8: sequence_CatchBlock
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* CatchBlock<Yield> returns CatchBlock
* CatchBlock returns CatchBlock
*
* Constraint:
* (catchVariable=CatchVariable block=Block)
*/
protected void sequence_CatchBlock(ISerializationContext context, CatchBlock semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.CATCH_BLOCK__CATCH_VARIABLE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.CATCH_BLOCK__CATCH_VARIABLE));
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.ABSTRACT_CATCH_BLOCK__BLOCK) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.ABSTRACT_CATCH_BLOCK__BLOCK));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getCatchBlockAccess().getCatchVariableCatchVariableParserRuleCall_3_0(), semanticObject.getCatchVariable());
feeder.accept(grammarAccess.getCatchBlockAccess().getBlockBlockParserRuleCall_5_0(), semanticObject.getBlock());
feeder.finish();
}
示例9: sequence_TemplateHead
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* TemplateHead returns TemplateSegment
*
* Constraint:
* rawValue=TEMPLATE_HEAD
*/
protected void sequence_TemplateHead(ISerializationContext context, TemplateSegment semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.TEMPLATE_SEGMENT__RAW_VALUE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.TEMPLATE_SEGMENT__RAW_VALUE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getTemplateHeadAccess().getRawValueTEMPLATE_HEADTerminalRuleCall_1_0(), semanticObject.getRawValue());
feeder.finish();
}
示例10: 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();
}
示例11: sequence_ExecModule
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* ExecModule returns ExecModule
*
* Constraint:
* execModule=BootstrapModule
*/
protected void sequence_ExecModule(ISerializationContext context, ExecModule semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, N4mfPackage.Literals.EXEC_MODULE__EXEC_MODULE) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4mfPackage.Literals.EXEC_MODULE__EXEC_MODULE));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getExecModuleAccess().getExecModuleBootstrapModuleParserRuleCall_3_0(), semanticObject.getExecModule());
feeder.finish();
}
示例12: sequence_ExistingPath
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* Path returns ExistingPath
* ExistingPath returns ExistingPath
*
* Constraint:
* name=StringWithVariables
*/
protected void sequence_ExistingPath(ISerializationContext context, ExistingPath semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.PATH__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.PATH__NAME));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getExistingPathAccess().getNameStringWithVariablesParserRuleCall_0(), semanticObject.getName());
feeder.finish();
}
示例13: sequence_FinallyBlock
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* FinallyBlock<Yield> returns FinallyBlock
* FinallyBlock returns FinallyBlock
*
* Constraint:
* block=Block
*/
protected void sequence_FinallyBlock(ISerializationContext context, FinallyBlock semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.ABSTRACT_CATCH_BLOCK__BLOCK) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.ABSTRACT_CATCH_BLOCK__BLOCK));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getFinallyBlockAccess().getBlockBlockParserRuleCall_2_0(), semanticObject.getBlock());
feeder.finish();
}
示例14: sequence_Position_Position
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Constraint:
* name=ID
*
* Features:
* name[1, 1]
*/
protected void sequence_Position_Position(EObject context, Position semanticObject) {
if(errorAcceptor != null) {
if(transientValues.isValueTransient(semanticObject, IOIPackage.Literals.POSITION__NAME) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, IOIPackage.Literals.POSITION__NAME));
}
INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
feeder.accept(grammarAccess.getPositionAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
feeder.finish();
}
示例15: sequence_LogicalANDExpression
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; //导入方法依赖的package包/类
/**
* Contexts:
* LogicalANDExpression<In,Yield> returns BinaryLogicalExpression
* LogicalANDExpression<In> returns BinaryLogicalExpression
* LogicalANDExpression<Yield> returns BinaryLogicalExpression
* LogicalANDExpression returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<In,Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<In> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<LogicalORExpression.In> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<LogicalORExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<LogicalORExpression.In,LogicalORExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<ConditionalExpression.In> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<ConditionalExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<ConditionalExpression.In,ConditionalExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<AssignmentExpression.In> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<AssignmentExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<AssignmentExpression.In,AssignmentExpression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<Expression.In> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<Expression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0<Expression.In,Expression.Yield> returns BinaryLogicalExpression
* LogicalANDExpression.BinaryLogicalExpression_1_0_0_0 returns BinaryLogicalExpression
*
* Constraint:
* (lhs=LogicalANDExpression_BinaryLogicalExpression_1_0_0_0 op=LogicalANDOperator rhs=BitwiseORExpression)
*/
protected void sequence_LogicalANDExpression(ISerializationContext context, BinaryLogicalExpression semanticObject) {
if (errorAcceptor != null) {
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__LHS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__LHS));
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__OP) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__OP));
if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__RHS) == ValueTransient.YES)
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_LOGICAL_EXPRESSION__RHS));
}
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
feeder.accept(grammarAccess.getLogicalANDExpressionAccess().getBinaryLogicalExpressionLhsAction_1_0_0_0(), semanticObject.getLhs());
feeder.accept(grammarAccess.getLogicalANDExpressionAccess().getOpLogicalANDOperatorParserRuleCall_1_0_0_1_0(), semanticObject.getOp());
feeder.accept(grammarAccess.getLogicalANDExpressionAccess().getRhsBitwiseORExpressionParserRuleCall_1_1_0(), semanticObject.getRhs());
feeder.finish();
}