public void encode(Encoder encoder) throws IOException {
		encoder.openElement(ELEM_RULE);
		filter.encode(encoder);
		if (qualifier != null) {
			qualifier.encode(encoder);
		}
		assign.encode(encoder);
		for (int i = 0; i < sideeffects.length; ++i) {
			sideeffects[i].encode(encoder);
		}
		encoder.closeElement(ELEM_RULE);
	}
Encode this rule to a stream
@param encoder is the stream encode
@throws IOException for problems with the stream
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/protorules/ModelRule.java