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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Transformation
Transformation.Step<I,O> -
Field Summary
Fields inherited from class Transformation
logger -
Constructor Summary
ConstructorsConstructorDescriptionActionListProvider(OperatorRegistry operators, UnificationEquivalenceRegistry unificationEquivalences) -
Method Summary
Modifier and TypeMethodDescriptionrun(org.antlr.v4.runtime.tree.ParseTree input, CompilationContext ctx) Business logic of this step.
-
Constructor Details
-
ActionListProvider
public ActionListProvider(OperatorRegistry operators, UnificationEquivalenceRegistry unificationEquivalences)
-
-
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<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.
-