public interface IInterfaceCollection extends java.lang.Cloneable, IClassFormatOutput
CONSTANT_Class_info
structures corresponding to direct superinterfaces of this class/interface.
The order in which they appear is the left-to-right order of their declaration in
the implements/extends clause.Modifier and Type | Method and Description |
---|---|
void |
accept(IClassDefVisitor visitor,
java.lang.Object ctx) |
int |
add(int interface_index)
Appends a new superinterface pointer to the collection.
|
java.lang.Object |
clone() |
int |
get(int offset)
Returns the
CONSTANT_Class_info
constant pool index for offset'th direct superinterface. |
int |
set(int offset,
int interface_index)
Replaces superinterface pointer number 'offset' with new value 'interface_index'.
|
int |
size()
Returns the number of direct superinterfaces for this class/interface.
|
writeInClassFormat
int get(int offset)
CONSTANT_Class_info
constant pool index for offset'th direct superinterface.offset
- superinterface number [must be in [0, size()) range]java.lang.IndexOutOfBoundsException
- if 'offset' is outside of valid rangeint size()
java.lang.Object clone()
void accept(IClassDefVisitor visitor, java.lang.Object ctx)
int add(int interface_index)
interface_index
- constant pool index [must be positive; input not validated]size()
-1 when called
after this method]int set(int offset, int interface_index)
offset
- offset of the superinterface pointer to replace [must be in [0, size()) range]interface_index
- constant pool index [must be positive; input not validated]java.lang.IndexOutOfBoundsException
- if 'offset' is outside of valid range