public interface IInterfaceCollection extends 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.| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(IClassDefVisitor visitor,
Object ctx) |
int |
add(int interface_index)
Appends a new superinterface pointer to the collection.
|
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.
|
writeInClassFormatint get(int offset)
CONSTANT_Class_info
constant pool index for offset'th direct superinterface.offset - superinterface number [must be in [0, size()) range]IndexOutOfBoundsException - if 'offset' is outside of valid rangeint size()
Object clone()
void accept(IClassDefVisitor visitor, 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]IndexOutOfBoundsException - if 'offset' is outside of valid rangeCopyright © 2018. All rights reserved.