MethodBuilder desermeth = builder.addMethod(desername, (Type)builder.clone(fieldtype));
desermeth.addParameter("text", "java.lang.String");
if (passctx) {
SingleVariableDeclaration decl = desermeth.addParameter("ictx",
"org.jibx.runtime.IUnmarshallingContext");
decl.modifiers().add(decl.getAST().newModifier(Modifier.ModifierKeyword.FINAL_KEYWORD));
}
desermeth.setPublicStatic();
desermeth.addSourceComment("Deserializer for " + descript + ' ' + term + '.');
desermeth.addSourceComment("");
desermeth.addSourceComment("@param", " text");