static class BuryingLogic.IfBlocks
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Deque<BuryingLogic.IfBlock> |
blocks |
Constructor and Description |
---|
IfBlocks() |
Modifier and Type | Method and Description |
---|---|
void |
add(BuryingLogic.IfBlock block) |
void |
clear() |
int |
countBlockEndsAtPC(int pc)
counts all blocks including nested block that are closed off at the current pc
|
BuryingLogic.IfBlock |
getBlockAt(int pc) |
boolean |
isEmpty() |
void |
removeLoopBlocks(int target)
remove all if blocks that are contained within a loop, once that loop has ended
|
java.lang.String |
toString() |
private java.util.Deque<BuryingLogic.IfBlock> blocks
public void add(BuryingLogic.IfBlock block)
@Nullable public BuryingLogic.IfBlock getBlockAt(int pc)
public void clear()
public boolean isEmpty()
public void removeLoopBlocks(int target)
target
- the start of the loop blockpublic int countBlockEndsAtPC(int pc)
pc
- the current pcpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2018 MeBigFatGuy.com. All Rights Reserved.