Methods Summary |
---|
public int | add(int exception_index)
final int newoffset = m_exceptions.size (); // use size() if class becomes non-final
m_exceptions.add (exception_index);
return newoffset;
|
public java.lang.Object | clone()Performs a deep copy.
try
{
final DeclaredExceptionTable _clone = (DeclaredExceptionTable) super.clone ();
// deep clone:
_clone.m_exceptions = (IntVector) m_exceptions.clone ();
return _clone;
}
catch (CloneNotSupportedException e)
{
throw new InternalError (e.toString ());
}
|
public int | get(int offset)
return m_exceptions.get (offset);
|
public long | length()
return (1 + m_exceptions.size ()) << 1; // use size() if class becomes non-final
|
public int | set(int offset, int exception_index)
return m_exceptions.set (offset, exception_index);
|
public int | size()
return m_exceptions.size ();
|
public void | writeInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)
int number_of_exceptions = m_exceptions.size (); // use size() if class becomes non-final
out.writeU2 (number_of_exceptions);
for (int i = 0; i < number_of_exceptions; i++)
{
out.writeU2 (get (i));
}
|