/* 62: */ /* 63: */ public void setAnnotations(Annotation[][] params) /* 64: */ { /* 65:147 */ ByteArrayOutputStream output = new ByteArrayOutputStream(); /* 66:148 */ AnnotationsWriter writer = new AnnotationsWriter(output, this.constPool); /* 67: */ try /* 68: */ { /* 69:150 */ int n = params.length; /* 70:151 */ writer.numParameters(n); /* 71:152 */ for (int i = 0; i < n; i++) /* 72: */ { /* 73:153 */ Annotation[] anno = params[i]; /* 74:154 */ writer.numAnnotations(anno.length); /* 75:155 */ for (int j = 0; j < anno.length; j++) { /* 76:156 */ anno[j].write(writer); /* 77: */ } /* 78: */ } /* 79:159 */ writer.close(); /* 80: */ } /* 81: */ catch (IOException e) /* 82: */ { /* 83:162 */ throw new RuntimeException(e); /* 84: */ } /* 85:165 */ set(output.toByteArray()); /* 86: */ }
/** Writes the value. */ public void write(AnnotationsWriter writer) throws IOException { writer.constValueIndex(getValue()); }