Examples of javadoc()


Examples of com.sun.codemodel.JMethod.javadoc()

    javadoc.add("" + fieldVar.type().name() + " " + newValue.name() + " = new " + fieldVar.type().name() + "();\n");
    javadoc.add("this.set" + Util.upperFirst(fieldVar.name()) + "(" + newValue.name() + ");");
    javadoc.add("</code>\n");
    javadoc.add("</pre>\n");

    m.javadoc().append(javadoc);
    debugOut.append("m> " + cc.implRef.name() + " :: public " + fieldVar.type().name() + " " + createAndSetCoordinatesName + "() created.");
    LOG.info(debugOut.toString());
  }

  private void generateGetClassMethod(final ClassOutlineImpl cc) {
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      generateSet.annotate(Override.class);
      // super.setObjectSimpleExtensionGroup(objectSimpleExtensionGroup);
      // generateSet.body().assign(JExpr._this().ref(field.name()), value);
      generateSet.body().directStatement("super.set" + Util.upperFirst(field.name()) + "(" + value.name() + ");");
    } else {
      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      // super.setObjectSimpleExtensionGroup(objectSimpleExtensionGroup);
      // generateSet.body().assign(JExpr._this().ref(field.name()), value);
      generateSet.body().directStatement("super.set" + Util.upperFirst(field.name()) + "(" + value.name() + ");");
    } else {
      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      // generateSet.body().assign(JExpr._this().ref(field.name()), value);
      generateSet.body().directStatement("super.set" + Util.upperFirst(field.name()) + "(" + value.name() + ");");
    } else {
      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
          .append("If you would like to make it fluent, use {@link #with" + Util.upperFirst(field.name()) + "} instead.\n");
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      generateSet.body().directStatement("super.set" + Util.upperFirst(field.name()) + "(" + value.name() + ");");
    } else {
      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
          .append("If you would like to make it fluent, use {@link #with" + Util.upperFirst(field.name()) + "} instead.\n");
      generateSet.body().assign(JExpr._this().ref(field.name()), value);
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

    } else {
      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
          .append("If you would like to make it fluent, use {@link #with" + Util.upperFirst(field.name()) + "} instead.\n");
      generateSet.body().assign(JExpr._this().ref(field.name()), value);
    }
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      generateSet.javadoc().append("Sets the value of the " + field.name() + " property");
      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
          .append("If you would like to make it fluent, use {@link #with" + Util.upperFirst(field.name()) + "} instead.\n");
      generateSet.body().assign(JExpr._this().ref(field.name()), value);
    }
    // LOG.info("s> " + implClass.name() + " >> public void set" + JaxbUtil.upperFirst(field.name()) + "(" + field.type().name() +
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

      generateSet.javadoc().addParam(value);
      generateSet.javadoc().append("Objects of the following type(s) are allowed in the list ");
      generateSet.javadoc().append(field.type().name());
      generateSet.javadoc().append(".\n<p>Note:\n<p>");
      generateSet.javadoc().append("This method does not make use of the fluent pattern.");
      generateSet.javadoc()
          .append("If you would like to make it fluent, use {@link #with" + Util.upperFirst(field.name()) + "} instead.\n");
      generateSet.body().assign(JExpr._this().ref(field.name()), value);
    }
    // LOG.info("s> " + implClass.name() + " >> public void set" + JaxbUtil.upperFirst(field.name()) + "(" + field.type().name() +
    // ") created [Override: " + override + "].");
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

    coordinateCreateMethods.clear();

    // create public Point addToCoordinates(final String coordinates) {...}
    final JMethod generateAdd = cc.implClass.method(JMod.PUBLIC, cc.implClass, "addToCoordinates");
    generateAdd.javadoc().append("add a value to the coordinates property collection");
    final JInvocation returntype = JExpr._new(classCoordinates);
    final JVar arg = generateAdd.param(JMod.FINAL, String.class, field.name());
    generateAdd.javadoc().addParam(arg).append("required parameter");
    returntype.arg(arg);
View Full Code Here

Examples of com.sun.codemodel.JMethod.javadoc()

    // create public Point addToCoordinates(final String coordinates) {...}
    final JMethod generateAdd = cc.implClass.method(JMod.PUBLIC, cc.implClass, "addToCoordinates");
    generateAdd.javadoc().append("add a value to the coordinates property collection");
    final JInvocation returntype = JExpr._new(classCoordinates);
    final JVar arg = generateAdd.param(JMod.FINAL, String.class, field.name());
    generateAdd.javadoc().addParam(arg).append("required parameter");
    returntype.arg(arg);

    generateAdd.javadoc().addReturn().append("<tt>true</tt> (as general contract of <tt>Collection.add</tt>). ");
    generateAdd.body().add(JExpr._this().invoke("getCoordinates").invoke("add").arg(returntype));
    generateAdd.body()._return(JExpr._this());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.