Class ActionListProvider

java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<org.antlr.v4.runtime.tree.ParseTree, List<Command>>
ca.mcscert.jpipe.compiler.steps.transformations.ActionListProvider

public final class ActionListProvider extends Transformation<org.antlr.v4.runtime.tree.ParseTree, List<Command>>
Create a list of commands to build a model out of a parse tree.
  • Constructor Details

  • Method Details

    • run

      protected List<Command> run(org.antlr.v4.runtime.tree.ParseTree input, CompilationContext ctx)
      Description copied from class: Transformation
      Business logic of this step. Must not return null; may throw any exception. Use ctx to report non-fatal diagnostics or inspect previously accumulated errors.
      Specified by:
      run in class Transformation<org.antlr.v4.runtime.tree.ParseTree, List<Command>>
      Parameters:
      input - the value produced by the previous step.
      ctx - compilation context carrying the source path and diagnostic bag.
      Returns:
      the transformed value — never null.