Class CharStreamProvider

java.lang.Object
ca.mcscert.jpipe.compiler.model.Transformation<InputStream, org.antlr.v4.runtime.CharStream>
ca.mcscert.jpipe.compiler.steps.transformations.CharStreamProvider

public final class CharStreamProvider extends Transformation<InputStream, org.antlr.v4.runtime.CharStream>
Delegate to ANTLR the transformation of an input stream into a character-based one.
  • Constructor Details

    • CharStreamProvider

      public CharStreamProvider()
  • Method Details

    • run

      protected org.antlr.v4.runtime.CharStream run(InputStream 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<InputStream, org.antlr.v4.runtime.CharStream>
      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.