1 23 24 package org.enhydra.xml.xmlc.codegen; 25 26 30 public final class JavaParameter extends JavaVariable { 31 39 public JavaParameter(String name, 40 String type, 41 String [] doc) { 42 super(name, type, 0, doc); 43 } 44 45 53 public JavaParameter(String name, 54 String type, 55 String doc) { 56 super(name, type, 0, doc); 57 } 58 59 62 public void printJavaDoc(IndentWriter out) { 63 String [] doc = getDoc(); 64 if (doc != null) { 65 out.print(" * @param "); 66 out.print(getName()); 67 out.print(' '); 68 out.println(doc[0]); 69 for (int idx = 1; idx < doc.length; idx++) { 70 out.print(" * "); 71 out.println(doc[idx]); 72 } 73 } 74 } 75 } 76 | Popular Tags |