@Override public JavadocTag copy() { return JavadocTag.of(name); } }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param text the text * @return the new instance */ static JavadocTag of(String name, String text) { return of(name).setText(text); }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param value the value * @param text the text * @return the new instance */ static JavadocTag of(String name, String value, String text) { return of(name).setValue(value).setText(text); } }
.set(Javadoc.of() .setText("Adds the specified " + lcfirst(shortName(param.getType().getTypeName())) + " to this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", param.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_() .add(param) .set(Javadoc.of() .setText("Sets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", f.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_(); .set(Javadoc.of() .setText("Gets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("return", "the " + f.getName())) ).public_() .add("return this." + f.getName() + ";");
@Override public JavadocTag copy() { return JavadocTag.of(name); } }
@Override public JavadocTag copy() { return JavadocTag.of(name); } }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param text the text * @return the new instance */ static JavadocTag of(String name, String text) { return of(name).setText(text); }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param text the text * @return the new instance */ static JavadocTag of(String name, String text) { return of(name).setText(text); }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param value the value * @param text the text * @return the new instance */ static JavadocTag of(String name, String value, String text) { return of(name).setValue(value).setText(text); } }
/** * Creates a new instance implementing this interface by using the default * implementation. * * @param name the name * @param value the value * @param text the text * @return the new instance */ static JavadocTag of(String name, String value, String text) { return of(name).setValue(value).setText(text); } }
.set(Javadoc.of() .setText("Adds the specified " + lcfirst(shortName(param.getType().getTypeName())) + " to this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", param.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_() .add(param) .set(Javadoc.of() .setText("Sets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", f.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_(); .set(Javadoc.of() .setText("Gets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("return", "the " + f.getName())) ).public_() .add("return this." + f.getName() + ";");
.set(Javadoc.of() .setText("Adds the specified " + lcfirst(shortName(param.getType().getTypeName())) + " to this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", param.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_() .add(param) .set(Javadoc.of() .setText("Sets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("param", f.getName(), "the new value")) .add(JavadocTag.of("return", "a reference to this object")) ).public_(); .set(Javadoc.of() .setText("Gets the " + f.getName() + " of this " + shortName(model.getName()) + ".") .add(JavadocTag.of("return", "the " + f.getName())) ).public_() .add("return this." + f.getName() + ";");