1 28 29 package com.caucho.bytecode; 30 31 import com.caucho.log.Log; 32 33 import java.io.IOException ; 34 import java.util.logging.Logger ; 35 36 39 public class SourceDebugExtensionAttribute extends Attribute { 40 static private final Logger log = Log.open(SourceDebugExtensionAttribute.class); 41 42 private String _value; 43 44 public SourceDebugExtensionAttribute(String value) 45 { 46 super("SourceDebugExtension"); 47 48 _value = value; 49 } 50 51 54 public void addConstants(JavaClass javaClass) 55 { 56 javaClass.getConstantPool().addUTF8("SourceDebugExtension"); 57 } 58 59 62 public void write(ByteCodeWriter out) 63 throws IOException 64 { 65 out.writeUTF8Const(getName()); 66 out.writeIntUTF8(_value); 67 } 68 69 public String toString() 70 { 71 return "SourceDebugExtensionAttribute[" + _value + "]"; 72 } 73 } 74 | Popular Tags |