public void write(final DataOutputStream out) throws IOException {
		if (Method.DEBUG) {
			System.out.println("Writing method " + this);
			System.out.println("  Masked Modifiers: " + (modifiers & 0xf000));
		}

		out.writeShort(modifiers);

		out.writeShort(name);
		out.writeShort(type);

		out.writeShort(attrs.length);

		for (int i = 0; i < attrs.length; i++) {
			if (Method.DEBUG) {
				System.out.println("  " + attrs[i]);
			}
			out.writeShort(attrs[i].nameIndex());
			out.writeInt(attrs[i].length());
			attrs[i].writeData(out);
		}
	}