public class JMLCUtils extends Object
| Constructor and Description | 
|---|
| JMLCUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static ArrayList<Instruction> | cleanupRuntimeInstructions(ArrayList<Instruction> insts,
                          HashSet<String> outputs)Cleanup runtime instructions, removing rmvar instructions for
 any of the given output variable names. | 
| static ArrayList<Instruction> | cleanupRuntimeInstructions(ArrayList<Instruction> insts,
                          String... outputs)Cleanup runtime instructions, removing rmvar instructions for
 any of the given output variable names. | 
| static void | cleanupRuntimeProgram(Program prog,
                     String[] outputs)Removes rmvar instructions that would remove any of the given outputs. | 
| static void | rCleanupRuntimeProgram(ProgramBlock pb,
                      HashSet<String> outputs)Cleanup program blocks (called recursively). | 
public static void cleanupRuntimeProgram(Program prog, String[] outputs)
prog - the DML/PyDML programoutputs - registered output variablespublic static void rCleanupRuntimeProgram(ProgramBlock pb, HashSet<String> outputs)
pb - program blockoutputs - registered output variablespublic static ArrayList<Instruction> cleanupRuntimeInstructions(ArrayList<Instruction> insts, String... outputs)
insts - list of instructionsoutputs - registered output variablespublic static ArrayList<Instruction> cleanupRuntimeInstructions(ArrayList<Instruction> insts, HashSet<String> outputs)
insts - list of instructionsoutputs - registered output variablesCopyright © 2020 The Apache Software Foundation. All rights reserved.