/** * Given a <code>Doc</code>, return an anchor name for it. * * @param d the <code>Doc</code> to check. * @return the name of the anchor. */ public static String getAnchorName(Doc d) { return "line." + d.position().line(); } }
/** * Given a <code>Doc</code>, return an anchor name for it. * @param d the <code>Doc</code> to check. * @return the name of the anchor. */ public static String getAnchorName(Doc d) { return "line." + d.position().line(); } }
/** * Given an array of <code>Doc</code>s, add to the given <code>HashMap</code> the * line numbers and anchors that should be inserted in the output at those lines. * @param docs the array of <code>Doc</code>s to add anchors for. * @param hash the <code>HashMap</code> to add to. */ protected static void addToHash(Doc[] docs, HashMap<Integer,String> hash) { if(docs == null) { return; } for(int i = 0; i < docs.length; i++) { hash.put(docs[i].position().line(), getAnchor(docs[i])); } }
protected void writeSignature(ExecutableMemberDoc member) { writer.displayLength = 0; writer.pre(); writer.writeAnnotationInfo(member); printModifiers(member); writeTypeParameters(member); if (configuration().linksource && member.position().line() != classdoc.position().line()) { writer.printSrcLink(member, member.name()); } else { strong(member.name()); } writeParameters(member); writeExceptions(member); writer.preEnd(); }