/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_element_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); Iterator it = members.values().iterator(); while (it.hasNext()) { Pair pair = (Pair)it.next(); writer.memberValuePair(pair.name); pair.value.write(writer); } }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_element_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); for (Pair pair:members.values()) { writer.memberValuePair(pair.name); pair.value.write(writer); } }
@Override int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_member_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_member_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_member_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_member_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes <code>annotation</code>. * This method must be followed by <code>numMemberValuePairs</code> * calls to <code>memberValuePair()</code>. * * @param type the annotation interface name. * @param numMemberValuePairs <code>num_member_value_pairs</code> * in <code>annotation</code>. */ public void annotation(String type, int numMemberValuePairs) throws IOException { annotation(pool.addUtf8Info(type), numMemberValuePairs); }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); Iterator it = members.values().iterator(); while (it.hasNext()) { Pair pair = (Pair)it.next(); writer.memberValuePair(pair.name); pair.value.write(writer); } }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); Iterator it = members.values().iterator(); while (it.hasNext()) { Pair pair = (Pair)it.next(); writer.memberValuePair(pair.name); pair.value.write(writer); } }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); Iterator it = members.values().iterator(); while (it.hasNext()) { Pair pair = (Pair)it.next(); writer.memberValuePair(pair.name); pair.value.write(writer); } }
/** * Writes this annotation. * * @param writer the output. * @throws IOException for an error during the write */ public void write(AnnotationsWriter writer) throws IOException { String typeName = pool.getUtf8Info(typeIndex); if (members == null) { writer.annotation(typeName, 0); return; } writer.annotation(typeName, members.size()); Iterator it = members.values().iterator(); while (it.hasNext()) { Pair pair = (Pair)it.next(); writer.memberValuePair(pair.name); pair.value.write(writer); } }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copy(type), numPairs); return super.annotation(pos, type, numPairs); }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }
int annotation(int pos, int type, int numPairs) throws Exception { writer.annotation(copyType(type), numPairs); return super.annotation(pos, type, numPairs); }