Package org.somox.metrics.dsl.serializer
Class MetricDSLSemanticSequencer
java.lang.Object
org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
org.somox.metrics.dsl.serializer.MetricDSLSemanticSequencer
- All Implemented Interfaces:
org.eclipse.xtext.serializer.sequencer.ISemanticSequencer
public class MetricDSLSemanticSequencer
extends org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
-
Field Summary
Fields inherited from class org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
genericSequencer, genericSequencerProvider
Fields inherited from class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
diagnosticProvider, errorAcceptor, feederProvider, masterSequencer, nodeProvider, sequenceAcceptor, transientValues
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createSequence
(EObject context, EObject semanticObject) protected void
sequence_BoundAndWeight
(EObject context, BoundAndWeight semanticObject) Constraint: (upperBound=[Number|MYID] weight=[Number|MYID])protected void
sequence_Constant
(EObject context, Constant semanticObject) Constraint: (name=MYID value=DOUBLE)protected void
sequence_ExternalMetric
(EObject context, ExternalMetric semanticObject) Constraint: name=MYIDprotected void
sequence_InternalMetric
(EObject context, InternalMetric semanticObject) Constraint: (name=MYID shortName=STRING description=STRING parameter+=Number* definition=MetricDefinition)protected void
sequence_MetricAndWeight
(EObject context, MetricAndWeight semanticObject) Constraint: (metric=[Metric|MYID] weight=[Number|MYID])protected void
sequence_MetricModel
(EObject context, MetricModel semanticObject) Constraint: (importURI+=STRING* metrics+=ExternalMetric* metrics+=InternalMetric+)protected void
sequence_Parameter
(EObject context, Parameter semanticObject) Constraint: (name=MYID shortname=STRING description=STRING defaultValue=DOUBLE)protected void
sequence_RatioMetric
(EObject context, RatioMetric semanticObject) Constraint: (nominatorMetric=[Metric|MYID] denominatorMetric=[Metric|MYID])protected void
sequence_StepwiseMetric
(EObject context, StepwiseMetric semanticObject) Constraint: (innerMetric=[Metric|MYID] steps+=BoundAndWeight*)protected void
sequence_WeightedMetric
(EObject context, WeightedMetric semanticObject) Constraint: weights+=MetricAndWeight+Methods inherited from class org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
init
Methods inherited from class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
createContext, createNodeProvider, createSequence, createSequencerFeeder, createSequencerFeeder, createSequencerFeeder, createSequencerFeeder, init, sequence, setMasterSequencer
-
Constructor Details
-
MetricDSLSemanticSequencer
public MetricDSLSemanticSequencer()
-
-
Method Details
-
createSequence
- Specified by:
createSequence
in interfaceorg.eclipse.xtext.serializer.sequencer.ISemanticSequencer
- Overrides:
createSequence
in classorg.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
-
sequence_BoundAndWeight
Constraint: (upperBound=[Number|MYID] weight=[Number|MYID]) -
sequence_Constant
Constraint: (name=MYID value=DOUBLE) -
sequence_ExternalMetric
Constraint: name=MYID -
sequence_InternalMetric
Constraint: (name=MYID shortName=STRING description=STRING parameter+=Number* definition=MetricDefinition) -
sequence_MetricAndWeight
Constraint: (metric=[Metric|MYID] weight=[Number|MYID]) -
sequence_MetricModel
Constraint: (importURI+=STRING* metrics+=ExternalMetric* metrics+=InternalMetric+) -
sequence_Parameter
Constraint: (name=MYID shortname=STRING description=STRING defaultValue=DOUBLE) -
sequence_RatioMetric
Constraint: (nominatorMetric=[Metric|MYID] denominatorMetric=[Metric|MYID]) -
sequence_StepwiseMetric
Constraint: (innerMetric=[Metric|MYID] steps+=BoundAndWeight*) -
sequence_WeightedMetric
Constraint: weights+=MetricAndWeight+
-