Methods Summary |
---|
public void | accept(IClassDefVisitor visitor, java.lang.Object ctx)
visitor.visit (this, ctx);
|
public int | add(int interface_index)
final int newoffset = m_interfaces.size (); // use size() if class becomes non-final
m_interfaces.add (interface_index);
return newoffset;
|
public java.lang.Object | clone()Performs a deep copy.
try
{
final InterfaceCollection _clone = (InterfaceCollection) super.clone ();
// deep clone:
_clone.m_interfaces = (IntVector) m_interfaces.clone ();
return _clone;
}
catch (CloneNotSupportedException e)
{
throw new InternalError (e.toString ());
}
|
public int | get(int offset)
return m_interfaces.get (offset);
|
public int | set(int offset, int interface_index)
return m_interfaces.set (offset, interface_index);
|
public int | size()
return m_interfaces.size ();
|
public void | writeInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)
int _interfaces_count = m_interfaces.size (); // use size() if class becomes non-final
out.writeU2 (_interfaces_count);
for (int i = 0; i < _interfaces_count; i++)
{
out.writeU2 (get (i));
}
|