Java 类org.eclipse.xtext.serializer.ISerializationContext 实例源码

项目:pokemon-tcgo-deck-generator    文件:PkmntcgoSemanticSequencer.java   
/**
 * 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();
}
项目:Xtext_Xtend_HTML_Generator    文件:MyDslSemanticSequencer.java   
/**
 * 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();
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoSemanticSequencer.java   
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
    EPackage epackage = semanticObject.eClass().getEPackage();
    ParserRule rule = context.getParserRule();
    Action action = context.getAssignedAction();
    Set<Parameter> parameters = context.getEnabledBooleanParameters();
    if (epackage == PkmntcgoPackage.eINSTANCE)
        switch (semanticObject.eClass().getClassifierID()) {
        case PkmntcgoPackage.CARD:
            sequence_Card(context, (Card) semanticObject); 
            return; 
        case PkmntcgoPackage.DECK:
            sequence_Deck(context, (Deck) semanticObject); 
            return; 
        case PkmntcgoPackage.DECKS:
            sequence_Decks(context, (Decks) semanticObject); 
            return; 
        case PkmntcgoPackage.ENERGY:
            sequence_Energy(context, (Energy) semanticObject); 
            return; 
        case PkmntcgoPackage.POKEMON:
            sequence_Pokemon(context, (Pokemon) semanticObject); 
            return; 
        case PkmntcgoPackage.TRAINER:
            sequence_Trainer(context, (Trainer) semanticObject); 
            return; 
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
项目:n4js    文件:RegularExpressionSemanticSequencer.java   
/**
 * 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();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     StringWithVariables returns StringWithVariables
 *
 * Constraint:
 *     value=STRING
 */
protected void sequence_StringWithVariables(ISerializationContext context, StringWithVariables semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.STRING_WITH_VARIABLES__VALUE) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.STRING_WITH_VARIABLES__VALUE));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getStringWithVariablesAccess().getValueSTRINGTerminalRuleCall_0(), semanticObject.getValue());
    feeder.finish();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     ConfigIniTemplate returns ConfigIniTemplate
 *
 * Constraint:
 *     path=ExistingPath
 */
protected void sequence_ConfigIniTemplate(ISerializationContext context, ConfigIniTemplate semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.CONFIG_INI_TEMPLATE__PATH) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.CONFIG_INI_TEMPLATE__PATH));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getConfigIniTemplateAccess().getPathExistingPathParserRuleCall_1_0(), semanticObject.getPath());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     JSXChild returns JSXExpression
 *     JSXExpression returns JSXExpression
 *
 * Constraint:
 *     expression=AssignmentExpression
 */
protected void sequence_JSXExpression(ISerializationContext context, JSXExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.JSX_EXPRESSION__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.JSX_EXPRESSION__EXPRESSION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getJSXExpressionAccess().getExpressionAssignmentExpressionParserRuleCall_1_0(), semanticObject.getExpression());
    feeder.finish();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     ApplicationExtPoint returns ApplicationExtPoint
 *
 * Constraint:
 *     name=FQName
 */
protected void sequence_ApplicationExtPoint(ISerializationContext context, ApplicationExtPoint semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.APPLICATION_EXT_POINT__NAME) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.APPLICATION_EXT_POINT__NAME));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getApplicationExtPointAccess().getNameFQNameParserRuleCall_1_0(), semanticObject.getName());
    feeder.finish();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     GroupPostLaunchAction returns GroupPostLaunchRegex
 *     GroupPostLaunchRegex returns GroupPostLaunchRegex
 *
 * Constraint:
 *     regex=STRING
 */
protected void sequence_GroupPostLaunchRegex(ISerializationContext context, GroupPostLaunchRegex semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.GROUP_POST_LAUNCH_REGEX__REGEX) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.GROUP_POST_LAUNCH_REGEX__REGEX));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGroupPostLaunchRegexAccess().getRegexSTRINGTerminalRuleCall_1_0(), semanticObject.getRegex());
    feeder.finish();
}
项目:n4js    文件:TypesSemanticSequencer.java   
/**
 * 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();
}
项目:gw4e.project    文件:DSLPoliciesSemanticSequencer.java   
/**
 * Contexts:
 *     GraphElement returns GraphElement
 *
 * Constraint:
 *     name=ID
 */
protected void sequence_GraphElement(ISerializationContext context, GraphElement semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, DSLPoliciesPackage.Literals.GRAPH_ELEMENT__NAME) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DSLPoliciesPackage.Literals.GRAPH_ELEMENT__NAME));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGraphElementAccess().getNameIDTerminalRuleCall_0(), semanticObject.getName());
    feeder.finish();
}
项目:n4js    文件:TypesSemanticSequencer.java   
/**
 * Contexts:
 *     Type returns NullType
 *     NullType returns NullType
 *
 * Constraint:
 *     name='null'
 */
protected void sequence_NullType(ISerializationContext context, NullType 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.getNullTypeAccess().getNameNullKeyword_1_0(), semanticObject.getName());
    feeder.finish();
}
项目:n4js    文件:TypesSemanticSequencer.java   
/**
 * 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();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     EnvironmentVariable returns EnvironmentVariable
 *
 * Constraint:
 *     (name=ID value=StringWithVariables)
 */
protected void sequence_EnvironmentVariable(ISerializationContext context, EnvironmentVariable semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.ENVIRONMENT_VARIABLE__NAME) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.ENVIRONMENT_VARIABLE__NAME));
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.ENVIRONMENT_VARIABLE__VALUE) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.ENVIRONMENT_VARIABLE__VALUE));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getEnvironmentVariableAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName());
    feeder.accept(grammarAccess.getEnvironmentVariableAccess().getValueStringWithVariablesParserRuleCall_4_0(), semanticObject.getValue());
    feeder.finish();
}
项目:lcdsl    文件:LcDslSemanticSequencer.java   
/**
 * Contexts:
 *     JavaMainType returns JavaMainType
 *
 * Constraint:
 *     name=FQName
 */
protected void sequence_JavaMainType(ISerializationContext context, JavaMainType semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, LcDslPackage.Literals.JAVA_MAIN_TYPE__NAME) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LcDslPackage.Literals.JAVA_MAIN_TYPE__NAME));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getJavaMainTypeAccess().getNameFQNameParserRuleCall_0(), semanticObject.getName());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     JSXElementName returns JSXElementName
 *
 * Constraint:
 *     expression=JSXElementNameExpression
 */
protected void sequence_JSXElementName(ISerializationContext context, JSXElementName semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.JSX_ELEMENT_NAME__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.JSX_ELEMENT_NAME__EXPRESSION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getJSXElementNameAccess().getExpressionJSXElementNameExpressionParserRuleCall_0(), semanticObject.getExpression());
    feeder.finish();
}
项目:n4js    文件:N4MFSemanticSequencer.java   
/**
 * Contexts:
 *     ProvidedRuntimeLibraryDependency returns ProvidedRuntimeLibraryDependency
 *
 * Constraint:
 *     project=SimpleProjectDescription
 */
protected void sequence_ProvidedRuntimeLibraryDependency(ISerializationContext context, ProvidedRuntimeLibraryDependency semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4mfPackage.Literals.PROJECT_REFERENCE__PROJECT) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4mfPackage.Literals.PROJECT_REFERENCE__PROJECT));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getProvidedRuntimeLibraryDependencyAccess().getProjectSimpleProjectDescriptionParserRuleCall_0(), semanticObject.getProject());
    feeder.finish();
}
项目:bromium    文件:BromiumSemanticSequencer.java   
/**
 * Contexts:
 *     Postcondition returns Postcondition
 *
 * Constraint:
 *     action=WebDriverActionCondition
 */
protected void sequence_Postcondition(ISerializationContext context, Postcondition semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, BromiumPackage.Literals.POSTCONDITION__ACTION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BromiumPackage.Literals.POSTCONDITION__ACTION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getPostconditionAccess().getActionWebDriverActionConditionParserRuleCall_3_0(), semanticObject.getAction());
    feeder.finish();
}
项目:n4js    文件:UnicodeSemanticSequencer.java   
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
    EPackage epackage = semanticObject.eClass().getEPackage();
    ParserRule rule = context.getParserRule();
    Action action = context.getAssignedAction();
    Set<Parameter> parameters = context.getEnabledBooleanParameters();
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
项目:n4js    文件:N4MFSemanticSequencer.java   
/**
 * Contexts:
 *     RequiredRuntimeLibraryDependency returns RequiredRuntimeLibraryDependency
 *
 * Constraint:
 *     project=SimpleProjectDescription
 */
protected void sequence_RequiredRuntimeLibraryDependency(ISerializationContext context, RequiredRuntimeLibraryDependency semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4mfPackage.Literals.PROJECT_REFERENCE__PROJECT) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4mfPackage.Literals.PROJECT_REFERENCE__PROJECT));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getRequiredRuntimeLibraryDependencyAccess().getProjectSimpleProjectDescriptionParserRuleCall_0(), semanticObject.getProject());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     ExportedVariableDeclarationOrBinding<Yield> returns ExportedVariableBinding
 *     ExportedVariableDeclarationOrBinding returns ExportedVariableBinding
 *     ExportedVariableBinding<Yield> returns ExportedVariableBinding
 *     ExportedVariableBinding returns ExportedVariableBinding
 *
 * Constraint:
 *     (pattern=BindingPattern expression=AssignmentExpression)
 */
protected void sequence_ExportedVariableBinding(ISerializationContext context, ExportedVariableBinding semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.VARIABLE_BINDING__PATTERN) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.VARIABLE_BINDING__PATTERN));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.VARIABLE_BINDING__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.VARIABLE_BINDING__EXPRESSION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getExportedVariableBindingAccess().getPatternBindingPatternParserRuleCall_0_0(), semanticObject.getPattern());
    feeder.accept(grammarAccess.getExportedVariableBindingAccess().getExpressionAssignmentExpressionParserRuleCall_2_0(), semanticObject.getExpression());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     BitwiseANDExpression<In,Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression<In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression<Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<In,Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseXORExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseXORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseXORExpression.In,BitwiseXORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseORExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<BitwiseORExpression.In,BitwiseORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalANDExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalANDExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalANDExpression.In,LogicalANDExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalORExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<LogicalORExpression.In,LogicalORExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<ConditionalExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<ConditionalExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<ConditionalExpression.In,ConditionalExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<AssignmentExpression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<AssignmentExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<AssignmentExpression.In,AssignmentExpression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<Expression.In> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<Expression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0<Expression.In,Expression.Yield> returns BinaryBitwiseExpression
 *     BitwiseANDExpression.BinaryBitwiseExpression_1_0_0_0 returns BinaryBitwiseExpression
 *
 * Constraint:
 *     (lhs=BitwiseANDExpression_BinaryBitwiseExpression_1_0_0_0 op=BitwiseANDOperator rhs=EqualityExpression)
 */
protected void sequence_BitwiseANDExpression(ISerializationContext context, BinaryBitwiseExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__LHS) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__LHS));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__OP) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__OP));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__RHS) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.BINARY_BITWISE_EXPRESSION__RHS));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getBitwiseANDExpressionAccess().getBinaryBitwiseExpressionLhsAction_1_0_0_0(), semanticObject.getLhs());
    feeder.accept(grammarAccess.getBitwiseANDExpressionAccess().getOpBitwiseANDOperatorParserRuleCall_1_0_0_1_0(), semanticObject.getOp());
    feeder.accept(grammarAccess.getBitwiseANDExpressionAccess().getRhsEqualityExpressionParserRuleCall_1_1_0(), semanticObject.getRhs());
    feeder.finish();
}
项目:org.xtext.dsl.restaurante    文件:RestauranteSemanticSequencer.java   
@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
    EPackage epackage = semanticObject.eClass().getEPackage();
    ParserRule rule = context.getParserRule();
    Action action = context.getAssignedAction();
    Set<Parameter> parameters = context.getEnabledBooleanParameters();
    if (epackage == RestaurantePackage.eINSTANCE)
        switch (semanticObject.eClass().getClassifierID()) {
        case RestaurantePackage.BEBIDA_CALIENTE:
            sequence_BebidaCaliente(context, (BebidaCaliente) semanticObject); 
            return; 
        case RestaurantePackage.BEBIDA_FRIA:
            sequence_BebidaFria(context, (BebidaFria) semanticObject); 
            return; 
        case RestaurantePackage.COMPLEMENTO:
            sequence_Complemento(context, (Complemento) semanticObject); 
            return; 
        case RestaurantePackage.INGREDIENTE:
            sequence_Ingrediente(context, (Ingrediente) semanticObject); 
            return; 
        case RestaurantePackage.MENU:
            sequence_Menu(context, (Menu) semanticObject); 
            return; 
        case RestaurantePackage.NUTRICIONAL:
            sequence_Nutricional(context, (Nutricional) semanticObject); 
            return; 
        case RestaurantePackage.POSTRE:
            sequence_Postre(context, (Postre) semanticObject); 
            return; 
        case RestaurantePackage.PRINCIPAL:
            sequence_Principal(context, (Principal) semanticObject); 
            return; 
        case RestaurantePackage.PRODUCTO_O:
            sequence_ProductoO(context, (ProductoO) semanticObject); 
            return; 
        case RestaurantePackage.PRODUCTO_Y:
            sequence_ProductoY(context, (ProductoY) semanticObject); 
            return; 
        case RestaurantePackage.RESTAURANTE:
            sequence_Restaurante(context, (Restaurante) semanticObject); 
            return; 
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * 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();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     ConditionalExpression<In,Yield> returns ConditionalExpression
 *     ConditionalExpression<In> returns ConditionalExpression
 *     ConditionalExpression<Yield> returns ConditionalExpression
 *     ConditionalExpression returns ConditionalExpression
 *     AssignmentExpression<In,Yield> returns ConditionalExpression
 *     AssignmentExpression<In> returns ConditionalExpression
 *     AssignmentExpression<Yield> returns ConditionalExpression
 *     AssignmentExpression returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<In,Yield> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<In> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<Yield> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<Expression.In> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<Expression.Yield> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0<Expression.In,Expression.Yield> returns ConditionalExpression
 *     AssignmentExpression.AssignmentExpression_4_1_0_0_0 returns ConditionalExpression
 *     Expression<In,Yield> returns ConditionalExpression
 *     Expression<In> returns ConditionalExpression
 *     Expression<Yield> returns ConditionalExpression
 *     Expression returns ConditionalExpression
 *     Expression.CommaExpression_1_0<In,Yield> returns ConditionalExpression
 *     Expression.CommaExpression_1_0<In> returns ConditionalExpression
 *     Expression.CommaExpression_1_0<Yield> returns ConditionalExpression
 *     Expression.CommaExpression_1_0 returns ConditionalExpression
 *
 * Constraint:
 *     (expression=ConditionalExpression_ConditionalExpression_1_0_0_0 trueExpression=AssignmentExpression falseExpression=AssignmentExpression)
 */
protected void sequence_ConditionalExpression(ISerializationContext context, ConditionalExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__EXPRESSION));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__TRUE_EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__TRUE_EXPRESSION));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__FALSE_EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.CONDITIONAL_EXPRESSION__FALSE_EXPRESSION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getConditionalExpressionAccess().getConditionalExpressionExpressionAction_1_0_0_0(), semanticObject.getExpression());
    feeder.accept(grammarAccess.getConditionalExpressionAccess().getTrueExpressionAssignmentExpressionParserRuleCall_1_1_0(), semanticObject.getTrueExpression());
    feeder.accept(grammarAccess.getConditionalExpressionAccess().getFalseExpressionAssignmentExpressionParserRuleCall_1_3_0(), semanticObject.getFalseExpression());
    feeder.finish();
}
项目:gemoc-studio    文件:AbstractGExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     GExpression returns GNegationExpression
 *     GOrExpression returns GNegationExpression
 *     GOrExpression.GOrExpression_1_0 returns GNegationExpression
 *     GXorExpression returns GNegationExpression
 *     GXorExpression.GXorExpression_1_0 returns GNegationExpression
 *     GAndExpression returns GNegationExpression
 *     GAndExpression.GAndExpression_1_0 returns GNegationExpression
 *     GEqualityExpression returns GNegationExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GNegationExpression
 *     GRelationExpression returns GNegationExpression
 *     GRelationExpression.GRelationExpression_1_0 returns GNegationExpression
 *     GAdditionExpression returns GNegationExpression
 *     GAdditionExpression.GAdditionExpression_1_0 returns GNegationExpression
 *     GMultiplicationExpression returns GNegationExpression
 *     GMultiplicationExpression.GMultiplicationExpression_1_0 returns GNegationExpression
 *     GNegationExpression returns GNegationExpression
 *
 * Constraint:
 *     (operator=GNegationOperator operand=GNavigationExpression)
 */
protected void sequence_GNegationExpression(ISerializationContext context, GNegationExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GNEGATION_EXPRESSION__OPERATOR) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GNEGATION_EXPRESSION__OPERATOR));
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GUNARY_OPERATOR_EXPRESSION__OPERAND) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GUNARY_OPERATOR_EXPRESSION__OPERAND));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGNegationExpressionAccess().getOperatorGNegationOperatorEnumRuleCall_1_1_0(), semanticObject.getOperator());
    feeder.accept(grammarAccess.getGNegationExpressionAccess().getOperandGNavigationExpressionParserRuleCall_1_2_0(), semanticObject.getOperand());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     ScriptElement returns WithStatement
 *     RootStatement<Yield> returns WithStatement
 *     RootStatement returns WithStatement
 *     Statement<Yield> returns WithStatement
 *     Statement returns WithStatement
 *     WithStatement<Yield> returns WithStatement
 *     WithStatement returns WithStatement
 *
 * Constraint:
 *     (expression=Expression statement=Statement)
 */
protected void sequence_WithStatement(ISerializationContext context, WithStatement semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.WITH_STATEMENT__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.WITH_STATEMENT__EXPRESSION));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.WITH_STATEMENT__STATEMENT) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.WITH_STATEMENT__STATEMENT));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getWithStatementAccess().getExpressionExpressionParserRuleCall_2_0(), semanticObject.getExpression());
    feeder.accept(grammarAccess.getWithStatementAccess().getStatementStatementParserRuleCall_4_0(), semanticObject.getStatement());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     ScriptElement returns WhileStatement
 *     RootStatement<Yield> returns WhileStatement
 *     RootStatement returns WhileStatement
 *     Statement<Yield> returns WhileStatement
 *     Statement returns WhileStatement
 *     IterationStatement<Yield> returns WhileStatement
 *     IterationStatement returns WhileStatement
 *     WhileStatement<Yield> returns WhileStatement
 *     WhileStatement returns WhileStatement
 *
 * Constraint:
 *     (expression=Expression statement=Statement)
 */
protected void sequence_WhileStatement(ISerializationContext context, WhileStatement semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.ITERATION_STATEMENT__EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.ITERATION_STATEMENT__EXPRESSION));
        if (transientValues.isValueTransient(semanticObject, N4JSPackage.Literals.ITERATION_STATEMENT__STATEMENT) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, N4JSPackage.Literals.ITERATION_STATEMENT__STATEMENT));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getWhileStatementAccess().getExpressionExpressionParserRuleCall_2_0(), semanticObject.getExpression());
    feeder.accept(grammarAccess.getWhileStatementAccess().getStatementStatementParserRuleCall_4_0(), semanticObject.getStatement());
    feeder.finish();
}
项目:gemoc-studio    文件:AbstractGExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     GExpression returns GBraceExpression
 *     GOrExpression returns GBraceExpression
 *     GOrExpression.GOrExpression_1_0 returns GBraceExpression
 *     GXorExpression returns GBraceExpression
 *     GXorExpression.GXorExpression_1_0 returns GBraceExpression
 *     GAndExpression returns GBraceExpression
 *     GAndExpression.GAndExpression_1_0 returns GBraceExpression
 *     GEqualityExpression returns GBraceExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GBraceExpression
 *     GRelationExpression returns GBraceExpression
 *     GRelationExpression.GRelationExpression_1_0 returns GBraceExpression
 *     GAdditionExpression returns GBraceExpression
 *     GAdditionExpression.GAdditionExpression_1_0 returns GBraceExpression
 *     GMultiplicationExpression returns GBraceExpression
 *     GMultiplicationExpression.GMultiplicationExpression_1_0 returns GBraceExpression
 *     GNegationExpression returns GBraceExpression
 *     GNavigationExpression returns GBraceExpression
 *     GNavigationExpression.GNavigationExpression_1_0 returns GBraceExpression
 *     GReferenceExpression returns GBraceExpression
 *     GPrimaryExpression returns GBraceExpression
 *     GBraceExpression returns GBraceExpression
 *
 * Constraint:
 *     innerExpression=GExpression
 */
protected void sequence_GBraceExpression(ISerializationContext context, GBraceExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBRACE_EXPRESSION__INNER_EXPRESSION) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBRACE_EXPRESSION__INNER_EXPRESSION));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGBraceExpressionAccess().getInnerExpressionGExpressionParserRuleCall_2_0(), semanticObject.getInnerExpression());
    feeder.finish();
}
项目:gemoc-studio    文件:AbstractGExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     GExpression returns GDoubleExpression
 *     GOrExpression returns GDoubleExpression
 *     GOrExpression.GOrExpression_1_0 returns GDoubleExpression
 *     GXorExpression returns GDoubleExpression
 *     GXorExpression.GXorExpression_1_0 returns GDoubleExpression
 *     GAndExpression returns GDoubleExpression
 *     GAndExpression.GAndExpression_1_0 returns GDoubleExpression
 *     GEqualityExpression returns GDoubleExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GDoubleExpression
 *     GRelationExpression returns GDoubleExpression
 *     GRelationExpression.GRelationExpression_1_0 returns GDoubleExpression
 *     GAdditionExpression returns GDoubleExpression
 *     GAdditionExpression.GAdditionExpression_1_0 returns GDoubleExpression
 *     GMultiplicationExpression returns GDoubleExpression
 *     GMultiplicationExpression.GMultiplicationExpression_1_0 returns GDoubleExpression
 *     GNegationExpression returns GDoubleExpression
 *     GNavigationExpression returns GDoubleExpression
 *     GNavigationExpression.GNavigationExpression_1_0 returns GDoubleExpression
 *     GReferenceExpression returns GDoubleExpression
 *     GPrimaryExpression returns GDoubleExpression
 *     GNumericExpression returns GDoubleExpression
 *     GDoubleExpression returns GDoubleExpression
 *
 * Constraint:
 *     value=DOUBLE
 */
protected void sequence_GDoubleExpression(ISerializationContext context, GDoubleExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GDOUBLE_EXPRESSION__VALUE) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GDOUBLE_EXPRESSION__VALUE));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGDoubleExpressionAccess().getValueDOUBLETerminalRuleCall_1_0(), semanticObject.getValue());
    feeder.finish();
}
项目:gemoc-studio    文件:AbstractGExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     GExpression returns GReferenceExpression
 *     GOrExpression returns GReferenceExpression
 *     GOrExpression.GOrExpression_1_0 returns GReferenceExpression
 *     GXorExpression returns GReferenceExpression
 *     GXorExpression.GXorExpression_1_0 returns GReferenceExpression
 *     GAndExpression returns GReferenceExpression
 *     GAndExpression.GAndExpression_1_0 returns GReferenceExpression
 *     GEqualityExpression returns GReferenceExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GReferenceExpression
 *     GRelationExpression returns GReferenceExpression
 *     GRelationExpression.GRelationExpression_1_0 returns GReferenceExpression
 *     GAdditionExpression returns GReferenceExpression
 *     GAdditionExpression.GAdditionExpression_1_0 returns GReferenceExpression
 *     GMultiplicationExpression returns GReferenceExpression
 *     GMultiplicationExpression.GMultiplicationExpression_1_0 returns GReferenceExpression
 *     GNegationExpression returns GReferenceExpression
 *     GNavigationExpression returns GReferenceExpression
 *     GNavigationExpression.GNavigationExpression_1_0 returns GReferenceExpression
 *     GReferenceExpression returns GReferenceExpression
 *
 * Constraint:
 *     referencedEObject=[EObject|ID]
 */
protected void sequence_GReferenceExpression(ISerializationContext context, GReferenceExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GREFERENCE_EXPRESSION__REFERENCED_EOBJECT) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GREFERENCE_EXPRESSION__REFERENCED_EOBJECT));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGReferenceExpressionAccess().getReferencedEObjectEObjectIDTerminalRuleCall_1_1_0_1(), semanticObject.getReferencedEObject());
    feeder.finish();
}
项目:n4js    文件:RegularExpressionSemanticSequencer.java   
/**
 * Contexts:
 *     Atom returns CharacterClassEscapeSequence
 *     AtomEscape returns CharacterClassEscapeSequence
 *     CharacterClassEscapeSequence returns CharacterClassEscapeSequence
 *     CharacterClassElement returns CharacterClassEscapeSequence
 *     CharacterClassElement.CharacterClassRange_1_0_0 returns CharacterClassEscapeSequence
 *     CharacterClassAtom returns CharacterClassEscapeSequence
 *     EscapedCharacterClassAtom returns CharacterClassEscapeSequence
 *
 * Constraint:
 *     sequence=CHARACTER_CLASS_ESCAPE
 */
protected void sequence_CharacterClassEscapeSequence(ISerializationContext context, CharacterClassEscapeSequence semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, RegularExpressionPackage.Literals.CHARACTER_CLASS_ESCAPE_SEQUENCE__SEQUENCE) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, RegularExpressionPackage.Literals.CHARACTER_CLASS_ESCAPE_SEQUENCE__SEQUENCE));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getCharacterClassEscapeSequenceAccess().getSequenceCHARACTER_CLASS_ESCAPETerminalRuleCall_0(), semanticObject.getSequence());
    feeder.finish();
}
项目:gemoc-studio    文件:AbstractGExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     GExpression returns GBooleanExpression
 *     GOrExpression returns GBooleanExpression
 *     GOrExpression.GOrExpression_1_0 returns GBooleanExpression
 *     GXorExpression returns GBooleanExpression
 *     GXorExpression.GXorExpression_1_0 returns GBooleanExpression
 *     GAndExpression returns GBooleanExpression
 *     GAndExpression.GAndExpression_1_0 returns GBooleanExpression
 *     GEqualityExpression returns GBooleanExpression
 *     GEqualityExpression.GEqualityExpression_1_0 returns GBooleanExpression
 *     GRelationExpression returns GBooleanExpression
 *     GRelationExpression.GRelationExpression_1_0 returns GBooleanExpression
 *     GAdditionExpression returns GBooleanExpression
 *     GAdditionExpression.GAdditionExpression_1_0 returns GBooleanExpression
 *     GMultiplicationExpression returns GBooleanExpression
 *     GMultiplicationExpression.GMultiplicationExpression_1_0 returns GBooleanExpression
 *     GNegationExpression returns GBooleanExpression
 *     GNavigationExpression returns GBooleanExpression
 *     GNavigationExpression.GNavigationExpression_1_0 returns GBooleanExpression
 *     GReferenceExpression returns GBooleanExpression
 *     GPrimaryExpression returns GBooleanExpression
 *     GBooleanExpression returns GBooleanExpression
 *
 * Constraint:
 *     value=BOOLEAN
 */
protected void sequence_GBooleanExpression(ISerializationContext context, GBooleanExpression semanticObject) {
    if (errorAcceptor != null) {
        if (transientValues.isValueTransient(semanticObject, GexpressionsPackage.Literals.GBOOLEAN_EXPRESSION__VALUE) == ValueTransient.YES)
            errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GexpressionsPackage.Literals.GBOOLEAN_EXPRESSION__VALUE));
    }
    SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
    feeder.accept(grammarAccess.getGBooleanExpressionAccess().getValueBOOLEANTerminalRuleCall_1_0(), semanticObject.isValue());
    feeder.finish();
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<PostfixExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<CastExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<UnaryExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<MultiplicativeExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<AdditiveExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<ShiftExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<RelationalExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<RelationalExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<RelationalExpression.In,RelationalExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<EqualityExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<EqualityExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<EqualityExpression.In,EqualityExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseANDExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseANDExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseANDExpression.In,BitwiseANDExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseXORExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseXORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseXORExpression.In,BitwiseXORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseORExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<BitwiseORExpression.In,BitwiseORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalANDExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalANDExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalANDExpression.In,LogicalANDExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalORExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<LogicalORExpression.In,LogicalORExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<ConditionalExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<ConditionalExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<ConditionalExpression.In,ConditionalExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<AssignmentExpression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<AssignmentExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<AssignmentExpression.In,AssignmentExpression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<Expression.In> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<Expression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0<Expression.In,Expression.Yield> returns ParameterizedPropertyAccessExpression
 *     LeftHandSideExpression.ParameterizedCallExpression_1_0 returns ParameterizedPropertyAccessExpression
 *     MemberExpression<Yield> returns ParameterizedPropertyAccessExpression
 *     MemberExpression returns ParameterizedPropertyAccessExpression
 *
 * Constraint:
 *     (
 *         (target=MemberExpression_ParameterizedPropertyAccessExpression_1_3_3_1_0 | target=MemberExpression_ParameterizedPropertyAccessExpression_2_1_1_0) 
 *         (typeArgs+=TypeRef typeArgs+=TypeRef*)? 
 *         property=[IdentifiableElement|IdentifierName]
 *     )
 */
protected void sequence_ConcreteTypeArguments_MemberExpression_ParameterizedPropertyAccessExpressionTail(ISerializationContext context, ParameterizedPropertyAccessExpression semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:n4js    文件:N4MFSemanticSequencer.java   
/**
 * Contexts:
 *     ProvidedRuntimeLibraries returns ProvidedRuntimeLibraries
 *
 * Constraint:
 *     (providedRuntimeLibraries+=ProvidedRuntimeLibraryDependency providedRuntimeLibraries+=ProvidedRuntimeLibraryDependency*)?
 */
protected void sequence_ProvidedRuntimeLibraries(ISerializationContext context, ProvidedRuntimeLibraries semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:bromium    文件:BromiumSemanticSequencer.java   
/**
 * Contexts:
 *     WebDriverAction returns ClickClassByText
 *     ClickClassByText returns ClickClassByText
 *
 * Constraint:
 *     (parameterNames+='class' parameterValues+=ParameterValue parameterNames+='text' parameterValues+=ParameterValue)
 */
protected void sequence_ClickClassByText(ISerializationContext context, ClickClassByText semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:OCCI-Studio    文件:OCCISemanticSequencer.java   
/**
 * Contexts:
 *     DataType returns NumericType
 *     NumericType returns NumericType
 *
 * Constraint:
 *     (
 *         name=TypeID 
 *         type=NumericTypeEnum 
 *         documentation=STRING? 
 *         totalDigits=EIntegerObject? 
 *         minExclusive=STRING? 
 *         maxExclusive=STRING? 
 *         minInclusive=STRING? 
 *         maxInclusive=STRING?
 *     )
 */
protected void sequence_NumericType(ISerializationContext context, NumericType semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:n4js    文件:TypeExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     TypeRef returns ParameterizedTypeRef
 *     TypeRef.UnionTypeExpression_1_0 returns ParameterizedTypeRef
 *     IntersectionTypeExpression returns ParameterizedTypeRef
 *     IntersectionTypeExpression.IntersectionTypeExpression_1_0 returns ParameterizedTypeRef
 *     PrimaryTypeExpression returns ParameterizedTypeRef
 *     TypeArgument returns ParameterizedTypeRef
 *
 * Constraint:
 *     (
 *         (arrayTypeLiteral?='[' typeArgs+=TypeArgument) | 
 *         (declaredType=[Type|TypeReferenceName] (typeArgs+=TypeArgument typeArgs+=TypeArgument*)? dynamic?='+'? followedByQuestionMark?='?'?)
 *     )
 */
protected void sequence_ArrayTypeRef_TypeAndTypeArguments_TypeArguments_TypeRefWithModifiers_TypeRefWithoutModifiers(ISerializationContext context, ParameterizedTypeRef semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:n4js    文件:N4JSSemanticSequencer.java   
/**
 * Contexts:
 *     AnnotatedExpression<Yield> returns N4ClassExpression
 *     AnnotatedExpression returns N4ClassExpression
 *
 * Constraint:
 *     (
 *         annotationList=AnnotatedExpression_N4ClassExpression_1_0_0 
 *         name=BindingIdentifier? 
 *         (
 *             (
 *                 superClassRef=ParameterizedTypeRefNominal? 
 *                 (implementedInterfaceRefs+=ParameterizedTypeRefNominal implementedInterfaceRefs+=ParameterizedTypeRefNominal*)?
 *             ) | 
 *             superClassExpression=LeftHandSideExpression
 *         )? 
 *         ownedMembersRaw+=N4MemberDeclaration*
 *     )
 */
protected void sequence_AnnotatedExpression_ClassExtendsClause_ClassImplementsList_Members(ISerializationContext context, N4ClassExpression semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}
项目:n4js    文件:TypeExpressionsSemanticSequencer.java   
/**
 * Contexts:
 *     TypeRefWithModifiers returns FunctionTypeExpression
 *
 * Constraint:
 *     (
 *         declaredThisType=TypeRefFunctionTypeExpression? 
 *         (ownedTypeVars+=TypeVariable ownedTypeVars+=TypeVariable*)? 
 *         (fpars+=TAnonymousFormalParameter fpars+=TAnonymousFormalParameter*)? 
 *         returnTypeRef=TypeRef? 
 *         followedByQuestionMark?='?'?
 *     )
 */
protected void sequence_ColonSepReturnTypeRef_FunctionTypeExpressionOLD_TAnonymousFormalParameterList_TypeRefWithModifiers(ISerializationContext context, FunctionTypeExpression semanticObject) {
    genericSequencer.createSequence(context, semanticObject);
}