1 30 31 package oracle.toplink.libraries.asm.util.attrs; 32 33 import java.util.Map ; 34 35 import oracle.toplink.libraries.asm.Attribute; 36 import oracle.toplink.libraries.asm.ClassReader; 37 import oracle.toplink.libraries.asm.Label; 38 import oracle.toplink.libraries.asm.attrs.RuntimeVisibleParameterAnnotations; 39 40 45 46 public class ASMRuntimeVisibleParameterAnnotations 47 extends RuntimeVisibleParameterAnnotations 48 implements ASMifiable 49 { 50 51 protected Attribute read (ClassReader cr, int off, 52 int len, char[] buf, int codeOff, Label[] labels) 53 { 54 RuntimeVisibleParameterAnnotations attr = 55 (RuntimeVisibleParameterAnnotations)super.read( 56 cr, off, len, buf, codeOff, labels); 57 58 ASMRuntimeVisibleParameterAnnotations result = new ASMRuntimeVisibleParameterAnnotations(); 59 result.parameters = attr.parameters; 60 return result; 61 } 62 63 public void asmify (StringBuffer buf, String varName, Map labelNames) { 64 buf.append("RuntimeVisibleParameterAnnotations ").append(varName) 65 .append(" = new RuntimeVisibleParameterAnnotations();\n"); 66 ASMAnnotationDefaultAttribute.asmifyParameterAnnotations(buf, varName, parameters); 67 } 68 } 69 | Popular Tags |