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 105 106 public class RuntimeVisibleParameterAnnotations extends Attribute { 107 108 116 public List parameters = new ArrayList (); 117 118 public RuntimeVisibleParameterAnnotations () { 119 super("RuntimeVisibleParameterAnnotations"); 120 } 121 122 protected Attribute read (ClassReader cr, int off, 123 int len, char[] buf, int codeOff, Label[] labels) { 124 RuntimeVisibleParameterAnnotations atr = 125 new RuntimeVisibleParameterAnnotations(); 126 Annotation.readParameterAnnotations(atr.parameters, cr, off, buf); 127 return atr; 128 } 129 130 protected ByteVector write (ClassWriter cw, byte[] code, 131 int len, int maxStack, int maxLocals) { 132 return Annotation.writeParametersAnnotations( 133 new ByteVector(), parameters, cw); 134 } 135 136 public String toString () { 137 return Annotation.stringParameterAnnotations(parameters); 138 } 139 } 140 | Popular Tags |