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 abstract public class ConstantPoolEntry { 40 static private final Logger log = Log.open(ConstantPoolEntry.class); 41 42 private ConstantPool _pool; 43 private int _index; 44 45 ConstantPoolEntry(ConstantPool pool, int index) 46 { 47 _pool = pool; 48 _index = index; 49 } 50 51 54 public ConstantPool getConstantPool() 55 { 56 return _pool; 57 } 58 59 62 public int getIndex() 63 { 64 return _index; 65 } 66 67 70 abstract void write(ByteCodeWriter out) 71 throws IOException ; 72 73 78 abstract int export(ConstantPool target); 79 } 80 | Popular Tags |