static class ListIndexedIterating.ForLoop
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private edu.umd.cs.findbugs.OpcodeStack.Item |
loopCollectionItem |
private int |
loopEnd |
private int |
loopReg |
private boolean |
loopRegLoaded |
private int |
loopStart |
private ListIndexedIterating.LoopState |
loopState |
| Constructor and Description |
|---|
ForLoop(int start,
int end,
int reg)
constructs a for loop information block
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLoopEnd()
get the end pc of the loop
|
int |
getLoopReg()
get the loop register
|
boolean |
getLoopRegLoaded()
returns whether the loop register is on the top of the stack
|
int |
getLoopStart()
get the start pc of the loop
|
ListIndexedIterating.LoopState |
getLoopState()
get the current phase of the for loop
|
boolean |
isSecondItem(edu.umd.cs.findbugs.OpcodeStack.Item itm)
returns whether this is the second time the loop register is found
|
void |
setLoopRegLoaded(boolean loaded)
mark that the loop register has been loaded with an iload instruction
|
void |
setLoopState(ListIndexedIterating.LoopState state)
sets the current state of the for loop
|
private int loopStart
private int loopEnd
private int loopReg
private ListIndexedIterating.LoopState loopState
private boolean loopRegLoaded
private edu.umd.cs.findbugs.OpcodeStack.Item loopCollectionItem
public ForLoop(int start,
int end,
int reg)
start - the start of the for loopend - the end of the for loopreg - the loop registerpublic int getLoopStart()
public int getLoopEnd()
public int getLoopReg()
public void setLoopState(ListIndexedIterating.LoopState state)
state - the new statepublic ListIndexedIterating.LoopState getLoopState()
public void setLoopRegLoaded(boolean loaded)
loaded - the flag of whether the loop register is loadedpublic boolean getLoopRegLoaded()
public boolean isSecondItem(edu.umd.cs.findbugs.OpcodeStack.Item itm)
itm - the item on the stackCopyright © 2005-2018 MeBigFatGuy.com. All Rights Reserved.