String type = classDoc.qualifiedTypeName(); String comment = filter.filterAndTruncate(classDoc.commentText()); String pathToSourceFile = classDoc.position().file().getCanonicalPath();
public SourcePosition position() { return wrapped.position(); }
private void streamXdoc(ClassDoc classDoc, Writer writer) throws Exception { File sourceFile = classDoc.position().file(); // The .xdoc file will be adjacent to the sourceFile String sourceName = sourceFile.getName(); String xdocName = sourceName.replaceAll("\\.java$", ".xdoc"); File xdocFile = new File(sourceFile.getParentFile(), xdocName); if (xdocFile.exists()) { try { // Close the definition list, to avoid unwanted indents. Very, very ugly. new XDocStreamer(xdocFile, writer).writeContent(); // Open a new (empty) definition list, that HtmlDoclet will close. } catch (Exception ex) { System.err.println("Error streaming XDOC content for " + classDoc); throw ex; } } } }
private void streamXdoc(ClassDoc classDoc, Writer writer) throws Exception { File sourceFile = classDoc.position().file(); // The .xdoc file will be adjacent to the sourceFile String sourceName = sourceFile.getName(); String xdocName = sourceName.replaceAll("\\.java$", ".xdoc"); File xdocFile = new File(sourceFile.getParentFile(), xdocName); if (xdocFile.exists()) { try { // Close the definition list, to avoid unwanted indents. Very, very ugly. new XDocStreamer(xdocFile, writer).writeContent(); // Open a new (empty) definition list, that HtmlDoclet will close. } catch (Exception ex) { System.err.println("Error streaming XDOC content for " + classDoc); throw ex; } } } }
SourcePosition sp = cd.position(); if (sp == null) return;
log.finest("Parsed Javadoc class source: " + classDoc.position() + " with inline tags: " + classDoc.inlineTags().length);
SourcePosition sp = cd.position(); if (sp == null) return;
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(); }