|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An abstraction of the 'interfaces' component of .class format. The contents
are constant pool indices of 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.
Method Summary | |
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. |
Methods inherited from interface com.vladium.jcd.compiler.IClassFormatOutput |
writeInClassFormat |
Method Detail |
public 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 rangepublic int size()
public java.lang.Object clone()
public void accept(IClassDefVisitor visitor, java.lang.Object ctx)
public int add(int interface_index)
interface_index
- constant pool index [must be positive; input not validated]
size()
-1 when called
after this method]public 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |