protected JavaMethod newAddTextMethod() throws SAXException {
if (!isMixed) {
return null;
}
JavaMethod jm = getJavaSource().newJavaMethod("addText", void.class, JavaSource.PUBLIC);
Parameter buffer = jm.addParam(char[].class, "pBuffer");
Parameter offset = jm.addParam(int.class, "pOffset");
Parameter length = jm.addParam(int.class, "pLength");
if (ccSG == null) {
jm.addLine(outerHandler.getJavaSource().getQName(), ".this.addText(",
buffer, ", ", offset, ", ", length, ");");
} else {
JavaQName elementInterface = ctSG.getClassContext().getXMLInterfaceName();