1 9 package com.vladium.jcd.cls.attribute; 10 11 import java.io.IOException ; 12 13 import com.vladium.jcd.compiler.IClassFormatOutput; 14 import com.vladium.jcd.lib.UDataInputStream; 15 import com.vladium.jcd.lib.UDataOutputStream; 16 17 38 public 39 final class LineNumber_info implements Cloneable , IClassFormatOutput 40 { 41 43 public int m_start_pc, m_line_number; 44 45 46 public LineNumber_info (final int start_pc, final int line_number) 47 { 48 m_start_pc = start_pc; 49 m_line_number = line_number; 50 } 51 52 public String toString () 53 { 54 return "line_number_info: [start_pc = " + m_start_pc + ", line_number = " + m_line_number + "]"; 55 } 56 57 59 62 public Object clone () 63 { 64 try 65 { 66 return super.clone (); 67 } 68 catch (CloneNotSupportedException e) 69 { 70 throw new InternalError (e.toString ()); 71 } 72 } 73 74 76 public void writeInClassFormat (final UDataOutputStream out) throws IOException 77 { 78 out.writeU2 (m_start_pc); 79 out.writeU2 (m_line_number); 80 } 81 82 84 86 87 LineNumber_info (final UDataInputStream bytes) throws IOException 88 { 89 m_start_pc = bytes.readU2 (); 90 m_line_number = bytes.readU2 (); 91 } 92 93 95 } | Popular Tags |