コード例 #1
0
  public void visitFunctionDescr(final FunctionDescr functionDescr) {
    this.template = new String();
    final String parameterTemplate =
        processParameters(functionDescr.getParameterNames(), functionDescr.getParameterTypes());

    this.template =
        "<function return-type=\""
            + functionDescr.getReturnType()
            + "\" name=\""
            + functionDescr.getName()
            + "\">"
            + XmlDumper.eol
            + parameterTemplate
            + "<body>"
            + XmlDumper.eol
            + functionDescr.getText()
            + XmlDumper.eol
            + "</body>"
            + XmlDumper.eol
            + "</function>"
            + XmlDumper.eol;
  }