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 94 95 public class RuntimeInvisibleAnnotations extends Attribute { 96 97 103 public List annotations = new ArrayList (); 104 105 public RuntimeInvisibleAnnotations () { 106 super("RuntimeInvisibleAnnotations"); 107 } 108 109 protected Attribute read (ClassReader cr, int off, 110 int len, char[] buf, int codeOff, Label[] labels) { 111 RuntimeInvisibleAnnotations atr = new RuntimeInvisibleAnnotations(); 112 Annotation.readAnnotations(atr.annotations, cr, off, buf); 113 return atr; 114 } 115 116 protected ByteVector write (ClassWriter cw, byte[] code, 117 int len, int maxStack, int maxLocals) { 118 return Annotation.writeAnnotations(new ByteVector(), annotations, cw); 119 } 120 121 126 127 public String toString () { 128 return Annotation.stringAnnotations(annotations); 129 } 130 } 131 | Popular Tags |