1 9 package com.vladium.jcd.cls.constant; 10 11 import java.io.IOException ; 12 13 import com.vladium.jcd.lib.UDataInputStream; 14 import com.vladium.jcd.lib.UDataOutputStream; 15 16 38 public 39 abstract class CONSTANT_ref_info extends CONSTANT_info 40 { 41 43 44 public int m_class_index; 45 public int m_name_and_type_index; 46 47 49 public void writeInClassFormat (final UDataOutputStream out) throws IOException 50 { 51 super.writeInClassFormat (out); 52 53 out.writeU2 (m_class_index); 54 out.writeU2 (m_name_and_type_index); 55 } 56 57 59 61 62 protected CONSTANT_ref_info (final UDataInputStream bytes) 63 throws IOException 64 { 65 m_class_index = bytes.readU2 (); 66 m_name_and_type_index = bytes.readU2 (); 67 } 68 69 protected CONSTANT_ref_info (final int class_index, final int name_and_type_index) 70 { 71 m_class_index = class_index; 72 m_name_and_type_index = name_and_type_index; 73 } 74 75 77 79 } | Popular Tags |