Package com.mebigfatguy.fbcontrib.detect
Class BuryingLogic.IfBlocks
java.lang.Object
com.mebigfatguy.fbcontrib.detect.BuryingLogic.IfBlocks
- Enclosing class:
BuryingLogic
represents all the if blocks in a method
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BuryingLogic.IfBlock block) voidclear()intcountBlockEndsAtPC(int pc) counts all blocks including nested block that are closed off at the current pcgetBlockAt(int pc) booleanisEmpty()voidremoveLoopBlocks(int target) remove all if blocks that are contained within a loop, once that loop has endedtoString()
-
Field Details
-
blocks
-
-
Constructor Details
-
IfBlocks
public IfBlocks()
-
-
Method Details
-
add
-
getBlockAt
-
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
-