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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transformation
Transformation.Step<I,O> -
Field Summary
Fields inherited from class Transformation
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.antlr.v4.runtime.CharStreamrun(InputStream input, CompilationContext ctx) Business logic of this step.
-
Constructor Details
-
CharStreamProvider
public CharStreamProvider()
-
-
Method Details
-
run
Description copied from class:TransformationBusiness logic of this step. Must not returnnull; may throw any exception. Usectxto report non-fatal diagnostics or inspect previously accumulated errors.- Specified by:
runin classTransformation<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.
-