Class BasicProgramBlock

    • Constructor Detail

      • BasicProgramBlock

        public BasicProgramBlock​(Program prog)
    • Method Detail

      • getInstruction

        public Instruction getInstruction​(int i)
      • addInstruction

        public void addInstruction​(Instruction inst)
      • getNumInstructions

        public int getNumInstructions()
      • isNested

        public boolean isNested()
        Description copied from class: ProgramBlock
        Indicates if the program block is nested, i.e., if it contains other program blocks (e.g., loops).
        Specified by:
        isNested in class ProgramBlock
        Returns:
        true if nested
      • execute

        public void execute​(ExecutionContext ec)
        Description copied from class: ProgramBlock
        Executes this program block (incl recompilation if required).
        Specified by:
        execute in class ProgramBlock
        Parameters:
        ec - execution context