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 113 114 public class RuntimeInvisibleParameterAnnotations extends Attribute { 115 123 public List parameters = new ArrayList (); 124 125 public RuntimeInvisibleParameterAnnotations () { 126 super("RuntimeInvisibleParameterAnnotations"); 127 } 128 129 protected Attribute read (ClassReader cr, int off, 130 int len, char[] buf, int codeOff, Label[] labels) { 131 RuntimeInvisibleParameterAnnotations atr = 132 new RuntimeInvisibleParameterAnnotations(); 133 Annotation.readParameterAnnotations(atr.parameters, cr, off, buf); 134 return atr; 135 } 136 137 protected ByteVector write (ClassWriter cw, byte[] code, 138 int len, int maxStack, int maxLocals) { 139 return Annotation.writeParametersAnnotations( 140 new ByteVector(), parameters, cw); 141 } 142 143 public String toString () { 144 return Annotation.stringParameterAnnotations(parameters); 145 } 146 } 147 | Popular Tags |