Class CPInstruction

    • Method Detail

      • preprocessInstruction

        public Instruction preprocessInstruction​(ExecutionContext ec)
        Description copied from class: Instruction
        This method should be used for any setup before executing this instruction. Overwriting methods should first call the super method and subsequently do their custom setup.
        Overrides:
        preprocessInstruction in class Instruction
        Parameters:
        ec - execution context
        Returns:
        instruction
      • updateLabels

        public static String updateLabels​(String instList,
                                          LocalVariableMap labelValueMapping)
        Takes a delimited string of instructions, and replaces ALL placeholder labels (such as ##mVar2## and ##Var5##) in ALL instructions.
        Parameters:
        instList - instruction list as string
        labelValueMapping - local variable map
        Returns:
        instruction list after replacement
      • postprocessInstruction

        public void postprocessInstruction​(ExecutionContext ec)
        Description copied from class: Instruction
        This method should be used for any tear down after executing this instruction. Overwriting methods should first do their custom tear down and subsequently call the super method.
        Overrides:
        postprocessInstruction in class Instruction
        Parameters:
        ec - execution context