Methods Summary |
---|
public void | accept(IAttributeVisitor visitor, java.lang.Object ctx)
visitor.visit (this, ctx);
|
public java.lang.Object | clone()Performs a deep copy.
final LineNumberTableAttribute_info _clone = (LineNumberTableAttribute_info) super.clone ();
// do deep copy:
final int lines_count = m_lines.size (); // use size() if class becomes non-final
_clone.m_lines = new ArrayList (lines_count);
for (int e = 0; e < lines_count; ++ e)
{
_clone.m_lines.add (((LineNumber_info) m_lines.get (e)).clone ());
}
return _clone;
|
public LineNumber_info | get(int offset)Returns {@link LineNumber_info} descriptor at a given offset.
return (LineNumber_info) m_lines.get (offset);
|
public long | length()
return 8 + (m_lines.size () << 2); // use size() if class becomes non-final
|
public int | size()Returns the number of descriptors in this collection [can be 0].
return m_lines.size ();
|
public java.lang.String | toString()
final StringBuffer s = new StringBuffer ("LineNumberTableAttribute_info: [attribute_name_index = " + m_name_index + ", attribute_length = " + length () + "]\n");
for (int l = 0; l < size (); ++ l)
{
s.append (" " + get (l));
s.append ("\n"); // TODO: proper EOL const
}
return s.toString ();
|
public void | writeInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)
super.writeInClassFormat (out);
final int lines_count = m_lines.size (); // use size() if class becomes non-final
out.writeU2 (lines_count);
for (int l = 0; l < lines_count; ++ l)
{
((LineNumber_info) m_lines.get (l)).writeInClassFormat (out);
}
|