public class OSRMapIterator extends Object
while (it.hasMore()) { it.getKind(); it.getNumber(); it.getMethodId(); it.getBcIndex(); .... it.moveToNext(); }
Modifier and Type | Field and Description |
---|---|
private int |
curidx |
private int |
curmid |
private int |
curmpc |
private int[] |
maps |
private boolean |
moreElemnt |
private boolean |
moreMethId |
Constructor and Description |
---|
OSRMapIterator(int[] mapcode,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
getBcIndex() |
boolean |
getKind() |
int |
getMethodId() |
char |
getNumber() |
byte |
getTypeCode() |
int |
getValue() |
byte |
getValueType() |
boolean |
hasMore() |
private boolean |
hasMoreElements() |
private boolean |
hasMoreMethodId() |
void |
moveToNext()
Moves the index to the next element, update more first because
we use last element's bit to indicate whether this element is
available.
|
private void |
moveToNextMethodId()
after finishing iteration of one method, move to the next,
it if is empty, move further.
|
private int curidx
private final int[] maps
private int curmid
private int curmpc
private boolean moreMethId
private boolean moreElemnt
public OSRMapIterator(int[] mapcode, int index)
public boolean hasMore()
private void moveToNextMethodId()
private boolean hasMoreMethodId()
private boolean hasMoreElements()
public void moveToNext()
public boolean getKind()
public byte getTypeCode()
public char getNumber()
public byte getValueType()
public int getValue()
public int getMethodId()
public int getBcIndex()