Class BuryingLogic.IfBlocks

  • Enclosing class:
    BuryingLogic

    static class BuryingLogic.IfBlocks
    extends java.lang.Object
    represents all the if blocks in a method
    • Constructor Detail

      • IfBlocks

        public IfBlocks()
    • Method Detail

      • clear

        public void clear()
      • isEmpty

        public boolean isEmpty()
      • removeLoopBlocks

        public void removeLoopBlocks​(int target)
        remove all if blocks that are contained within a loop, once that loop has ended
        Parameters:
        target - the start of the loop block
      • countBlockEndsAtPC

        public int countBlockEndsAtPC​(int pc)
        counts all blocks including nested block that are closed off at the current pc
        Parameters:
        pc - the current pc
        Returns:
        how many blocks have ended at the pc
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object