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