1 30 31 package oracle.toplink.libraries.asm.attrs; 32 33 import java.util.ArrayList ; 34 import java.util.List ; 35 36 import oracle.toplink.libraries.asm.Attribute; 37 import oracle.toplink.libraries.asm.ByteVector; 38 import oracle.toplink.libraries.asm.ClassReader; 39 import oracle.toplink.libraries.asm.ClassWriter; 40 import oracle.toplink.libraries.asm.Label; 41 42 43 90 91 public class RuntimeVisibleAnnotations extends Attribute { 92 93 99 public List annotations = new ArrayList (); 100 101 public RuntimeVisibleAnnotations () { 102 super("RuntimeVisibleAnnotations"); 103 } 104 105 protected Attribute read (ClassReader cr, int off, 106 int len, char[] buf, int codeOff, Label[] labels) { 107 RuntimeVisibleAnnotations atr = new RuntimeVisibleAnnotations(); 108 Annotation.readAnnotations(atr.annotations, cr, off, buf); 109 return atr; 110 } 111 112 protected ByteVector write (ClassWriter cw, byte[] code, 113 int len, int maxStack, int maxLocals) { 114 return Annotation.writeAnnotations(new ByteVector(), annotations, cw); 115 } 116 117 122 123 public String toString () { 124 return Annotation.stringAnnotations(annotations); 125 } 126 } 127 | Popular Tags |