Class BuryingLogic.IfBlocks

java.lang.Object
com.mebigfatguy.fbcontrib.detect.BuryingLogic.IfBlocks
Enclosing class:
BuryingLogic

static class BuryingLogic.IfBlocks extends Object
represents all the if blocks in a method
  • Field Details

  • Constructor Details

    • IfBlocks

      public IfBlocks()
  • Method Details

    • add

      public void add(BuryingLogic.IfBlock block)
    • getBlockAt

      @Nullable public BuryingLogic.IfBlock getBlockAt(int pc)
    • 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 String toString()
      Overrides:
      toString in class Object