|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.source.impl.AbstractSource org.apache.cocoon.components.source.impl.QDoxSource
public final class QDoxSource
Source implementation for XML Javadoc.
Field Summary | |
---|---|
protected static String |
ATTR_TYPE
|
protected static String |
CLASS_ELEMENT
|
protected static int |
CLASS_INHERITANCE
|
protected Map |
classMap
|
protected static String |
CLASSNAME_ATTRIBUTE
|
protected static String |
COMMENT_ELEMENT
|
protected static String |
CONSTRUCTOR_ELEMENT
|
protected static int |
CONSTRUCTOR_INHERITANCE
|
protected static int |
CONSTRUCTOR_MODE
|
protected static String |
CONSTRUCTORS_ELEMENT
|
protected com.thoughtworks.qdox.model.JavaClass |
containingJavadocClass
|
protected static String |
DIMENSIONS_ATTRIBUTE
|
protected static String |
EXCEPTION_ELEMENT
|
protected static String |
FIELD_ELEMENT
|
protected static int |
FIELD_INHERITANCE
|
protected static String |
FIELDS_ELEMENT
|
protected static String |
HREF_ATTRIBUTE
|
protected static String |
IMPLEMENTS_ELEMENT
|
protected static String |
IMPORT_ATTRIBUTE
|
protected static String |
IMPORT_ELEMENT
|
protected static String |
IMPORTS_ELEMENT
|
protected static String |
INHERIT_ELEMENT
|
protected static int |
INNERCLASS_INHERITANCE
|
protected static String |
INNERCLASSES_ELEMENT
|
protected static String |
INTERFACE_ELEMENT
|
protected static int |
INTERFACE_INHERITANCE
|
protected com.thoughtworks.qdox.model.JavaClass |
javadocClass
|
protected String |
javadocClassName
|
protected String |
javadocUri
|
protected Source |
javaSource
|
protected static String |
LINK_CLASS_ATTRIBUTE
|
protected static String |
LINK_ELEMENT
|
protected static String |
LINK_MEMBER_ATTRIBUTE
|
protected Logger |
logger
|
protected ServiceManager |
manager
|
protected static String |
METHOD_ELEMENT
|
protected static int |
METHOD_INHERITANCE
|
protected static int |
METHOD_MODE
|
protected static String |
METHODS_ELEMENT
|
protected static String |
MODIFIERS_ELEMENT
|
protected static String |
NAME_ATTRIBUTE
|
protected static String |
NESTED_IN_ELEMENT
|
protected static String |
NS_PREFIX
|
protected static String |
NS_URI
|
protected static String |
PACKAGE_ATTRIBUTE
|
protected static String |
PARAMETER_ELEMENT
|
protected static String |
PARAMETERS_ELEMENT
|
protected static String |
PROTOCOL
|
protected static String |
QNAME_ATTRIBUTE
|
protected static String |
RE_LINK
Contains a regular expression to match the { @link …} occurrances. |
protected org.apache.regexp.RE |
reLink
This RegExp matches the { @link …} occurrances in
Javadoc comments. |
protected static String |
ROOT_CLASSNAME
|
protected static String |
SIGNATURE_ATTRIBUTE
|
protected static String |
TAGS_ELEMENT
|
protected static String |
THROWS_ELEMENT
|
protected static String |
TYPE_ATTRIBUTE
|
Constructor Summary | |
---|---|
QDoxSource(String location,
Source javaSource,
Logger logger,
ServiceManager manager)
Constructor for QDoxSource. |
Method Summary | |
---|---|
protected void |
createJavadocXml()
|
boolean |
exists()
|
long |
getContentLength()
Get the content length of the source or -1 if it is not possible to determine the length. |
InputStream |
getInputStream()
|
com.thoughtworks.qdox.model.JavaClass |
getJavadocClass()
Returns the parsed Java class. |
long |
getLastModified()
|
String |
getMimeType()
|
String |
getURI()
Return the unique identifer for this source |
SourceValidity |
getValidity()
|
void |
recycle()
|
void |
toSAX(ContentHandler handler)
|
Methods inherited from class org.apache.excalibur.source.impl.AbstractSource |
---|
checkInfos, getInfos, getScheme, refresh, setContentLength, setLastModified, setScheme, setSystemId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String ROOT_CLASSNAME
protected static final String PROTOCOL
protected static final String NS_URI
protected static final String NS_PREFIX
protected static final String ATTR_TYPE
protected static final String CLASS_ELEMENT
protected static final String CLASSNAME_ATTRIBUTE
protected static final String PACKAGE_ATTRIBUTE
protected static final String QNAME_ATTRIBUTE
protected static final String INHERIT_ELEMENT
protected static final String INNERCLASSES_ELEMENT
protected static final String NESTED_IN_ELEMENT
protected static final String IMPORTS_ELEMENT
protected static final String IMPORT_ELEMENT
protected static final String IMPORT_ATTRIBUTE
protected static final String IMPLEMENTS_ELEMENT
protected static final String INTERFACE_ELEMENT
protected static final String MODIFIERS_ELEMENT
protected static final String COMMENT_ELEMENT
protected static final String LINK_ELEMENT
protected static final String LINK_CLASS_ATTRIBUTE
protected static final String LINK_MEMBER_ATTRIBUTE
protected static final String HREF_ATTRIBUTE
protected static final String TAGS_ELEMENT
protected static final String FIELDS_ELEMENT
protected static final String FIELD_ELEMENT
protected static final String CONSTRUCTORS_ELEMENT
protected static final String CONSTRUCTOR_ELEMENT
protected static final String METHODS_ELEMENT
protected static final String METHOD_ELEMENT
protected static final String NAME_ATTRIBUTE
protected static final String TYPE_ATTRIBUTE
protected static final String DIMENSIONS_ATTRIBUTE
protected static final String SIGNATURE_ATTRIBUTE
protected static final String PARAMETERS_ELEMENT
protected static final String PARAMETER_ELEMENT
protected static final String THROWS_ELEMENT
protected static final String EXCEPTION_ELEMENT
protected static final int CONSTRUCTOR_MODE
protected static final int METHOD_MODE
protected static final int CLASS_INHERITANCE
protected static final int INTERFACE_INHERITANCE
protected static final int INNERCLASS_INHERITANCE
protected static final int FIELD_INHERITANCE
protected static final int CONSTRUCTOR_INHERITANCE
protected static final int METHOD_INHERITANCE
protected ServiceManager manager
protected Logger logger
protected Source javaSource
protected String javadocUri
protected String javadocClassName
protected com.thoughtworks.qdox.model.JavaClass javadocClass
protected com.thoughtworks.qdox.model.JavaClass containingJavadocClass
protected Map classMap
protected org.apache.regexp.RE reLink
{
@link …}
occurrances in
Javadoc comments.
protected static final String RE_LINK
{
@link …}
occurrances.
The following {
@link …}
literals are recognized:
{
@link HashMap}
- returns 'Hashmap' with reLink.getParen(6)
;{
@link #equals(java.lang.Object) equals(…)}
- returns '#equals(java.lang.Object)' with reLink.getParen(2)
and 'equals(…)' with reLink.getParen(5)
;{
@link #indexOf(char, int) indexOf(…)}
- returns '#indexOf(char, int)' with reLink.getParen(2)
and 'indexOf(…)' with reLink.getParen(5)
.The regexp is as follows:
\{\@link\s+((([\w.#,$&;\s]+)|([\w.#,$&;(\s]+[\w.#,$&;)\s]+))\s+([\w()#.,$&;\s]+)|([\w.#,$&;\s()]+))\s*\}
reLink
,
Constant Field ValuesConstructor Detail |
---|
public QDoxSource(String location, Source javaSource, Logger logger, ServiceManager manager)
location
- javaSource
- logger
- manager
- Method Detail |
---|
public com.thoughtworks.qdox.model.JavaClass getJavadocClass()
public void toSAX(ContentHandler handler) throws SAXException
toSAX
in interface XMLizable
SAXException
- if any error occurs during SAX outputting.XMLizable.toSAX(org.xml.sax.ContentHandler)
public void recycle()
recycle
in interface Recyclable
Recyclable.recycle()
public long getContentLength()
getContentLength
in interface Source
getContentLength
in class AbstractSource
public long getLastModified()
getLastModified
in interface Source
getLastModified
in class AbstractSource
Source.getLastModified()
public String getMimeType()
getMimeType
in interface Source
getMimeType
in class AbstractSource
Source.getMimeType()
public String getURI()
getURI
in interface Source
getURI
in class AbstractSource
public SourceValidity getValidity()
getValidity
in interface Source
getValidity
in class AbstractSource
Source.getValidity()
public InputStream getInputStream() throws IOException, SourceException
getInputStream
in interface Source
getInputStream
in class AbstractSource
IOException
SourceException
Source.getInputStream()
protected void createJavadocXml() throws SourceException, IOException
SourceException
IOException
public boolean exists()
exists
in interface Source
Source.exists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |