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 |
---|
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
public int nextIndex()
IConstantCollection.IConstantIterator
nextIndex
in interface IConstantCollection.IConstantIterator
public CONSTANT_info nextConstant()
IConstantCollection.IConstantIterator
nextConstant
in interface IConstantCollection.IConstantIterator
public CONSTANT_info set(CONSTANT_info constant)
IConstantCollection.IConstantIterator
IConstantCollection.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.IConstantIterator
private void shift()