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 Attribute { 40 static private final Logger log = Log.open(Attribute.class); 41 42 private String _name; 43 44 Attribute(String name) 45 { 46 _name = name; 47 } 48 49 52 public String getName() 53 { 54 return _name; 55 } 56 57 60 public void addConstants(JavaClass javaClass) 61 { 62 } 63 64 67 abstract public void write(ByteCodeWriter out) 68 throws IOException ; 69 70 73 public Attribute export(JavaClass cl, JavaClass target) 74 { 75 throw new UnsupportedOperationException (); 76 } 77 78 public String toString() 79 { 80 return "Attribute[" + _name + "]"; 81 } 82 } 83 | Popular Tags |