public override void EnterTransform_pipeline(VmstatsParser.Transform_pipelineContext context) { Console.WriteLine("EnterTransform_pipeline"); // Create a new series of transforms transforms = new Queue <Messages.Transform>(); }
public override void ExitTransform_pipeline(VmstatsParser.Transform_pipelineContext context) { Console.WriteLine("ExitTransform_pipeline"); if (inCombine) { // Add the combine to the end of the list of transforms var parameters = new Dictionary <string, string>(); parameters.Add(CombineTransformActor.TRANSFORM_PARAM_COUNT_NAME, numberTransformPipelinesInCombine.ToString()); var transform = new Messages.Transform(CombineTransformActor.TRANSFORM_NAME, parameters); transforms.Enqueue(transform); } // Create a TransformSeries out of the information collected and add it to all the // transform_pipelines found so far. var guid = (currentCombineID.Count > 0) ? currentCombineID.Peek() : Guid.NewGuid(); series.Enqueue(new Messages.BuildTransformSeries(currentMetricName, transforms, guid)); }
/// <summary> /// Exit a parse tree produced by <see cref="VmstatsParser.transform_pipeline"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitTransform_pipeline([NotNull] VmstatsParser.Transform_pipelineContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="VmstatsParser.transform_pipeline"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitTransform_pipeline([NotNull] VmstatsParser.Transform_pipelineContext context) { return(VisitChildren(context)); }