private static final class ConstantCollection.ConstantIterator extends java.lang.Object implements IConstantCollection.IConstantIterator
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
m_constants |
private int |
m_index |
private int |
m_next_index |
private int |
m_prev_index |
| Constructor and Description |
|---|
ConstantCollection.ConstantIterator(java.util.List constants) |
| Modifier and Type | Method and Description |
|---|---|
CONSTANT_info |
nextConstant()
Returns the next entry.
|
int |
nextIndex()
Returns the next entry slot index.
|
CONSTANT_info |
set(CONSTANT_info constant)
A convenience method that is equivalent to
IConstantCollection.set(int, com.vladium.jcd.cls.constant.CONSTANT_info)
and replaces the entry that was visited last without invalidating
the iterator. |
private void |
shift() |
private int m_index
private int m_prev_index
private int m_next_index
private java.util.List m_constants
ConstantCollection.ConstantIterator(java.util.List constants)
public int nextIndex()
IConstantCollection.IConstantIteratornextIndex in interface IConstantCollection.IConstantIteratorpublic CONSTANT_info nextConstant()
IConstantCollection.IConstantIteratornextConstant in interface IConstantCollection.IConstantIteratorpublic CONSTANT_info set(CONSTANT_info constant)
IConstantCollection.IConstantIteratorIConstantCollection.set(int, com.vladium.jcd.cls.constant.CONSTANT_info)
and replaces the entry that was visited last without invalidating
the iterator.set in interface IConstantCollection.IConstantIteratorprivate void shift()