public class JavacodeReader extends AbstractJavadocReader
javacode:// scheme.
This class will discover the source of the citation reference by using the
Javadoc index and LineRangeParsers.
| Modifier and Type | Field and Description |
|---|---|
protected ContentFilter[] |
filters |
protected ContentFileHandler |
handler |
static Pattern |
PATTERN_FRAGMENT_LABEL |
protected ContentPrinter |
printer |
CONTEXT_ROOT_DOC| Constructor and Description |
|---|
JavacodeReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendContent(org.seamless.xhtml.XHTMLElement parent,
com.sun.javadoc.Doc doc,
CitationAnchor citation) |
protected LineRangeParser |
getLineRangeParser(File file) |
LineRange |
getMethodLineRange(File file,
com.sun.javadoc.MethodDoc methodDoc) |
protected String |
getSignature(com.sun.javadoc.MethodDoc methodDoc) |
protected LineRangeParser |
instantiateLineRangeParser(File file) |
protected org.seamless.xhtml.XHTML |
read(CitationAnchor citation,
Context context,
com.sun.javadoc.RootDoc rootDoc) |
protected org.seamless.xhtml.XHTML |
read(com.sun.javadoc.Doc doc,
CitationAnchor citation,
boolean uniqueId) |
String[] |
readSource(com.sun.javadoc.Doc doc) |
protected String |
toString(com.sun.javadoc.Type type,
boolean qualified) |
findTargetDoc, read, resolveThisReferencesaddFilePath, appendTitle, getParser, getXPath, isGenerateId, resolveFilepublic static final Pattern PATTERN_FRAGMENT_LABEL
protected final ContentFileHandler handler
protected final ContentPrinter printer
protected final ContentFilter[] filters
protected org.seamless.xhtml.XHTML read(CitationAnchor citation, Context context, com.sun.javadoc.RootDoc rootDoc)
read in class AbstractJavadocReaderprotected org.seamless.xhtml.XHTML read(com.sun.javadoc.Doc doc,
CitationAnchor citation,
boolean uniqueId)
protected void appendContent(org.seamless.xhtml.XHTMLElement parent,
com.sun.javadoc.Doc doc,
CitationAnchor citation)
public String[] readSource(com.sun.javadoc.Doc doc)
public LineRange getMethodLineRange(File file, com.sun.javadoc.MethodDoc methodDoc)
protected LineRangeParser getLineRangeParser(File file)
protected LineRangeParser instantiateLineRangeParser(File file) throws Exception
Exceptionprotected String getSignature(com.sun.javadoc.MethodDoc methodDoc)
protected String toString(com.sun.javadoc.Type type, boolean qualified)
Copyright © 2015 4th Line GmbH, Switzerland. All Rights Reserved.