org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient Java Examples
The following examples show how to use
org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GH1462TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * Contexts: * Rule6 returns Rule6 * * Constraint: * (left=INT right=Wrapper unit='s') */ protected void sequence_Rule6(ISerializationContext context, Rule6 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE6__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE6__LEFT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE6__RIGHT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE6__RIGHT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE6__UNIT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE6__UNIT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getRule6Access().getLeftINTTerminalRuleCall_0_0(), semanticObject.getLeft()); feeder.accept(grammarAccess.getRule6Access().getRightWrapperParserRuleCall_1_0(), semanticObject.getRight()); feeder.accept(grammarAccess.getRule6Access().getUnitSKeyword_2_0(), semanticObject.getUnit()); feeder.finish(); }
Example #2
Source File: GH1462TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * Contexts: * Rule8 returns Rule8 * * Constraint: * (left=INT right?='#1' unit='s') */ protected void sequence_Rule8(ISerializationContext context, Rule8 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE8__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE8__LEFT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE8__RIGHT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE8__RIGHT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE8__UNIT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE8__UNIT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getRule8Access().getLeftINTTerminalRuleCall_0_0(), semanticObject.getLeft()); feeder.accept(grammarAccess.getRule8Access().getRight1Keyword_1_0(), semanticObject.isRight()); feeder.accept(grammarAccess.getRule8Access().getUnitSKeyword_2_0(), semanticObject.getUnit()); feeder.finish(); }
Example #3
Source File: LocationProviderTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * Contexts: * Transition returns Transition * * Constraint: * (name=ID source=[Mode|ID] destination=[Mode|ID]) */ protected void sequence_Transition(ISerializationContext context, Transition semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__NAME)); if (transientValues.isValueTransient(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__SOURCE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__SOURCE)); if (transientValues.isValueTransient(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__DESTINATION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, LocationprovidertestPackage.Literals.TRANSITION__DESTINATION)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getTransitionAccess().getNameIDTerminalRuleCall_0_0(), semanticObject.getName()); feeder.accept(grammarAccess.getTransitionAccess().getSourceModeIDTerminalRuleCall_2_0_1(), semanticObject.eGet(LocationprovidertestPackage.Literals.TRANSITION__SOURCE, false)); feeder.accept(grammarAccess.getTransitionAccess().getDestinationModeIDTerminalRuleCall_4_0_1(), semanticObject.eGet(LocationprovidertestPackage.Literals.TRANSITION__DESTINATION, false)); feeder.finish(); }
Example #4
Source File: Bug378967TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * Contexts: * Rule4 returns Rule4 * * Constraint: * (after=AfterObj value=INT s=SObj) */ protected void sequence_Rule4(ISerializationContext context, Rule4 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug378967TestPackage.Literals.RULE4__AFTER) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug378967TestPackage.Literals.RULE4__AFTER)); if (transientValues.isValueTransient(semanticObject, Bug378967TestPackage.Literals.RULE4__VALUE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug378967TestPackage.Literals.RULE4__VALUE)); if (transientValues.isValueTransient(semanticObject, Bug378967TestPackage.Literals.RULE4__S) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug378967TestPackage.Literals.RULE4__S)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getRule4Access().getAfterAfterObjParserRuleCall_0_0(), semanticObject.getAfter()); feeder.accept(grammarAccess.getRule4Access().getValueINTTerminalRuleCall_1_0(), semanticObject.getValue()); feeder.accept(grammarAccess.getRule4Access().getSSObjParserRuleCall_2_0(), semanticObject.getS()); feeder.finish(); }
Example #5
Source File: GH1462TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * Contexts: * Rule4 returns Rule4 * * Constraint: * (left=STRING right=ID unit='s') */ protected void sequence_Rule4(ISerializationContext context, Rule4 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE4__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE4__LEFT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE4__RIGHT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE4__RIGHT)); if (transientValues.isValueTransient(semanticObject, Gh1462TestPackage.Literals.RULE4__UNIT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Gh1462TestPackage.Literals.RULE4__UNIT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getRule4Access().getLeftSTRINGTerminalRuleCall_0_0(), semanticObject.getLeft()); feeder.accept(grammarAccess.getRule4Access().getRightIDTerminalRuleCall_1_0(), semanticObject.getRight()); feeder.accept(grammarAccess.getRule4Access().getUnitSKeyword_2_0(), semanticObject.getUnit()); feeder.finish(); }
Example #6
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Delegation<D,P> returns DelegationA * Delegation<D> returns DelegationA * * Constraint: * (left=Delegation_DelegationA_1_2_0 rc2=Delegation) */ protected void sequence_Delegation$D$true$(ISerializationContext context, DelegationA semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.DELEGATION_A__LEFT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.DELEGATION_A__LEFT)); if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.DELEGATION_A__RC2) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.DELEGATION_A__RC2)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getDelegationAccess().getDelegationALeftAction_1_2_0(), semanticObject.getLeft()); feeder.accept(grammarAccess.getDelegationAccess().getRc2DelegationParserRuleCall_1_2_1_0(), semanticObject.getRc2()); feeder.finish(); }
Example #7
Source File: MyDslSemanticSequencer.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * Greeting returns Greeting * * Constraint: * name=ID */ protected void sequence_Greeting(ISerializationContext context, Greeting semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, MyDslPackage.Literals.GREETING__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, MyDslPackage.Literals.GREETING__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getGreetingAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.finish(); }
Example #8
Source File: StatemachineSemanticSequencer.java From xtext-web with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Signal returns OutputSignal * * Constraint: * name=ID */ protected void sequence_OutputSignal_Signal(ISerializationContext context, OutputSignal semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); feeder.finish(); }
Example #9
Source File: Bug385636SemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * NVariableAccess returns NVariableAccess * * Constraint: * variable=[DefineVariable|ID] */ protected void sequence_NVariableAccess(ISerializationContext context, NVariableAccess semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getNVariableAccessAccess().getVariableDefineVariableIDTerminalRuleCall_0_1(), semanticObject.eGet(Bug385636Package.Literals.NVARIABLE_ACCESS__VARIABLE, false)); feeder.finish(); }
Example #10
Source File: StatemachineSemanticSequencer.java From xtext-web with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Event returns Event * * Constraint: * (signal=[Signal|ID] value=BOOLEAN) */ protected void sequence_Event(ISerializationContext context, Event semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL)); if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__VALUE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__VALUE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1(), semanticObject.eGet(StatemachinePackage.Literals.EVENT__SIGNAL, false)); feeder.accept(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0(), semanticObject.isValue()); feeder.finish(); }
Example #11
Source File: AbstractCheckSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * Documented returns Implementation * Implementation returns Implementation * * Constraint: * (name=ValidID context=Context) */ protected void sequence_Implementation(ISerializationContext context, Implementation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, CheckPackage.Literals.IMPLEMENTATION__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CheckPackage.Literals.IMPLEMENTATION__NAME)); if (transientValues.isValueTransient(semanticObject, CheckPackage.Literals.IMPLEMENTATION__CONTEXT) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CheckPackage.Literals.IMPLEMENTATION__CONTEXT)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getImplementationAccess().getNameValidIDParserRuleCall_1_0(), semanticObject.getName()); feeder.accept(grammarAccess.getImplementationAccess().getContextContextParserRuleCall_2_0(), semanticObject.getContext()); feeder.finish(); }
Example #12
Source File: ConcreteTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * RootRule returns CallOverridenParserRule * CallOverridenParserRule returns CallOverridenParserRule * * Constraint: * call=AbstractCallOverridenParserRule */ protected void sequence_CallOverridenParserRule(ISerializationContext context, CallOverridenParserRule semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, FooPackage.Literals.CALL_OVERRIDEN_PARSER_RULE__CALL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FooPackage.Literals.CALL_OVERRIDEN_PARSER_RULE__CALL)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getCallOverridenParserRuleAccess().getCallAbstractCallOverridenParserRuleParserRuleCall_0(), semanticObject.getCall()); feeder.finish(); }
Example #13
Source File: AbstractFragmentTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * NamedInParentheses returns PRFNamed * * Constraint: * name=ID */ protected void sequence_NamedInParentheses(ISerializationContext context, PRFNamed semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, FragmentTestLanguagePackage.Literals.PRF_NAMED__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getNamedInParenthesesAccess().getNameIDTerminalRuleCall_1_1_0(), semanticObject.getName()); feeder.finish(); }
Example #14
Source File: StatemachineSemanticSequencer.java From xtext-web with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Transition returns Transition * * Constraint: * (condition=Condition state=[State|QualifiedName]) */ protected void sequence_Transition(ISerializationContext context, Transition semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION)); if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0(), semanticObject.getCondition()); feeder.accept(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1(), semanticObject.eGet(StatemachinePackage.Literals.TRANSITION__STATE, false)); feeder.finish(); }
Example #15
Source File: AbstractExportSemanticSequencer.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Contexts: * Extension returns Extension * * Constraint: * extension=QualifiedID */ protected void sequence_Extension(ISerializationContext context, Extension semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ExportPackage.Literals.EXTENSION__EXTENSION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ExportPackage.Literals.EXTENSION__EXTENSION)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getExtensionAccess().getExtensionQualifiedIDParserRuleCall_1_0(), semanticObject.getExtension()); feeder.finish(); }
Example #16
Source File: HiddenTerminalsTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Model returns OverridingHiddens * OverridingHiddens returns OverridingHiddens * * Constraint: * (called=OverridingHiddensCall valid?=';') */ protected void sequence_OverridingHiddens(ISerializationContext context, OverridingHiddens semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.OVERRIDING_HIDDENS__CALLED) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.OVERRIDING_HIDDENS__CALLED)); if (transientValues.isValueTransient(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.MODEL__VALID)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getOverridingHiddensAccess().getCalledOverridingHiddensCallParserRuleCall_3_0(), semanticObject.getCalled()); feeder.accept(grammarAccess.getOverridingHiddensAccess().getValidSemicolonKeyword_5_0(), semanticObject.isValid()); feeder.finish(); }
Example #17
Source File: UnicodeTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * AbstractString returns QuotedString * QuotedString returns QuotedString * * Constraint: * name=STRING */ protected void sequence_QuotedString(ISerializationContext context, QuotedString semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, UnicodePackage.Literals.ABSTRACT_STRING__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UnicodePackage.Literals.ABSTRACT_STRING__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getQuotedStringAccess().getNameSTRINGTerminalRuleCall_0(), semanticObject.getName()); feeder.finish(); }
Example #18
Source File: ContentAssistFragmentTestLangSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * JvmUpperBoundAnded returns JvmUpperBound * * Constraint: * typeReference=JvmTypeReference */ protected void sequence_JvmUpperBoundAnded(ISerializationContext context, JvmUpperBound semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0(), semanticObject.getTypeReference()); feeder.finish(); }
Example #19
Source File: HiddenTerminalsTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * InheritingHiddensCall returns InheritingHiddensCall * * Constraint: * valid?=';' */ protected void sequence_InheritingHiddensCall(ISerializationContext context, InheritingHiddensCall semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.INHERITING_HIDDENS_CALL__VALID) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddenTerminalsTestLanguagePackage.Literals.INHERITING_HIDDENS_CALL__VALID)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getInheritingHiddensCallAccess().getValidSemicolonKeyword_1_0(), semanticObject.isValid()); feeder.finish(); }
Example #20
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Delegation<D,P> returns Delegation * Delegation<P> returns Delegation * * Constraint: * p=ID */ protected void sequence_Delegation$P$true$(ISerializationContext context, Delegation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.DELEGATION__P) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.DELEGATION__P)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getDelegationAccess().getPIDTerminalRuleCall_0_0_0_0_0(), semanticObject.getP()); feeder.finish(); }
Example #21
Source File: BacktrackingLexerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Ab returns Ab * * Constraint: * (x=CharA y=Charb) */ protected void sequence_Ab(ISerializationContext context, Ab semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, BacktrackingTestLanguagePackage.Literals.AB__X) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BacktrackingTestLanguagePackage.Literals.AB__X)); if (transientValues.isValueTransient(semanticObject, BacktrackingTestLanguagePackage.Literals.AB__Y) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, BacktrackingTestLanguagePackage.Literals.AB__Y)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getAbAccess().getXCharATerminalRuleCall_0_0(), semanticObject.getX()); feeder.accept(grammarAccess.getAbAccess().getYCharbTerminalRuleCall_1_0(), semanticObject.getY()); feeder.finish(); }
Example #22
Source File: XtextSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Annotation returns Annotation * * Constraint: * name=ID */ protected void sequence_Annotation(ISerializationContext context, Annotation semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, XtextPackage.Literals.ANNOTATION__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, XtextPackage.Literals.ANNOTATION__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getAnnotationAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); feeder.finish(); }
Example #23
Source File: ConcreteSyntaxValidationTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * TransientObjectSub returns TransientObjectSub * * Constraint: * (val2=ID val3=ID) */ protected void sequence_TransientObjectSub(ISerializationContext context, TransientObjectSub semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT_SUB__VAL2) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT_SUB__VAL2)); if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT_SUB__VAL3) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT_SUB__VAL3)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getTransientObjectSubAccess().getVal2IDTerminalRuleCall_0_0(), semanticObject.getVal2()); feeder.accept(grammarAccess.getTransientObjectSubAccess().getVal3IDTerminalRuleCall_1_0(), semanticObject.getVal3()); feeder.finish(); }
Example #24
Source File: ConcreteSyntaxValidationTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * TransientObject returns TransientObject * * Constraint: * (val1=ID nested=TransientObjectSub) */ protected void sequence_TransientObject(ISerializationContext context, TransientObject semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT__VAL1) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT__VAL1)); if (transientValues.isValueTransient(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT__NESTED) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, CsvalidationtestPackage.Literals.TRANSIENT_OBJECT__NESTED)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getTransientObjectAccess().getVal1IDTerminalRuleCall_1_0_0(), semanticObject.getVal1()); feeder.accept(grammarAccess.getTransientObjectAccess().getNestedTransientObjectSubParserRuleCall_1_1_0(), semanticObject.getNested()); feeder.finish(); }
Example #25
Source File: ActionTestLanguage3SemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * ProductionRules returns P3 * ProductionRule1 returns P3 * * Constraint: * (p=ProductionRule1_P3_4 i=INT) */ protected void sequence_ProductionRule1(ISerializationContext context, P3 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, ActionLang3Package.Literals.P3__P) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ActionLang3Package.Literals.P3__P)); if (transientValues.isValueTransient(semanticObject, ActionLang3Package.Literals.P3__I) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ActionLang3Package.Literals.P3__I)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getProductionRule1Access().getP3PAction_4(), semanticObject.getP()); feeder.accept(grammarAccess.getProductionRule1Access().getIINTTerminalRuleCall_5_0(), semanticObject.getI()); feeder.finish(); }
Example #26
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * UnorderedAlternativeVal returns UnorderedAlternativeVal * * Constraint: * val=ID */ protected void sequence_UnorderedAlternativeVal(ISerializationContext context, UnorderedAlternativeVal semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.UNORDERED_ALTERNATIVE_VAL__VAL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.UNORDERED_ALTERNATIVE_VAL__VAL)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getUnorderedAlternativeValAccess().getValIDTerminalRuleCall_1_0(), semanticObject.getVal()); feeder.finish(); }
Example #27
Source File: AbstractXtypeSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * JvmTypeReference returns JvmGenericArrayTypeReference * JvmTypeReference.JvmGenericArrayTypeReference_0_1_0_0 returns JvmGenericArrayTypeReference * JvmArgumentTypeReference returns JvmGenericArrayTypeReference * * Constraint: * componentType=JvmTypeReference_JvmGenericArrayTypeReference_0_1_0_0 */ protected void sequence_JvmTypeReference(ISerializationContext context, JvmGenericArrayTypeReference semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_GENERIC_ARRAY_TYPE_REFERENCE__COMPONENT_TYPE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), semanticObject.getComponentType()); feeder.finish(); }
Example #28
Source File: Bug443221TestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * Model returns Model * * Constraint: * name=ID */ protected void sequence_Model(ISerializationContext context, Model semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, Bug443221TestPackage.Literals.MODEL__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, Bug443221TestPackage.Literals.MODEL__NAME)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getModelAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); feeder.finish(); }
Example #29
Source File: AbstractXtypeSemanticSequencer.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * JvmLowerBoundAnded returns JvmLowerBound * * Constraint: * typeReference=JvmTypeReference */ protected void sequence_JvmLowerBoundAnded(ISerializationContext context, JvmLowerBound semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TypesPackage.Literals.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0(), semanticObject.getTypeReference()); feeder.finish(); }
Example #30
Source File: SequencerTestLanguageSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
/** * Contexts: * UnorderedGroupValDelegate returns UnorderedGroupVal2 * UnorderedGroupVal2 returns UnorderedGroupVal2 * * Constraint: * val=ID */ protected void sequence_UnorderedGroupVal2(ISerializationContext context, UnorderedGroupVal2 semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, SequencertestPackage.Literals.UNORDERED_GROUP_VAL2__VAL) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SequencertestPackage.Literals.UNORDERED_GROUP_VAL2__VAL)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getUnorderedGroupVal2Access().getValIDTerminalRuleCall_1_0(), semanticObject.getVal()); feeder.finish(); }