public abstract class ItemDocAnalyzer extends DocAnalyzer
Modifier and Type | Field and Description |
---|---|
protected static int |
CHKLVL_MISORDERED_TAGS |
protected static int |
CHKLVL_SUMMARY_SENTENCE |
protected static int |
CHKLVL_VALID_TAGS |
static java.lang.String |
MSG_DEPRECATED_WITHOUT_TEXT |
static java.lang.String |
MSG_NO_SUMMARY_SENTENCE |
static java.lang.String |
MSG_SEE_WITHOUT_REFERENCE |
static java.lang.String |
MSG_SINCE_WITHOUT_TEXT |
static java.lang.String |
MSG_SUMMARY_SENTENCE_DOES_NOT_END_WITH_PERIOD |
static java.lang.String |
MSG_SUMMARY_SENTENCE_TOO_SHORT |
static java.lang.String |
MSG_TAG_IMPROPER_ORDER |
static ItemCommentSpellCheck |
spellChecker |
CHKLVL_DOC_EXISTS, CHKLVL_TAG_CONTENT
Constructor and Description |
---|
ItemDocAnalyzer(Report r,
SimpleNode node) |
Modifier and Type | Method and Description |
---|---|
static void |
addDictionary(java.lang.String dictName) |
protected abstract void |
addUndocumentedViolation(java.lang.String desc)
Adds a violation for this type of item, with the violation pointing to
the name for this item.
|
protected void |
checkForTagDescription(JavadocTaggedNode taggedNode,
java.lang.String msg) |
protected void |
checkJavadoc(JavadocNode javadoc) |
protected abstract SimpleNode |
getEnclosingNode()
Returns the node that contains the access and modifier tokens.
|
protected abstract java.lang.String |
getItemType()
Returns the type of item this analyzer is operating on.
|
protected JavadocNode |
getJavadoc()
Returns the Javadoc for the given node.
|
protected SimpleNode |
getNode() |
protected abstract java.util.List |
getValidTags()
Returns the valid tags, as strings, for this type of item.
|
void |
run()
Runs the analysis.
|
isCheckable
addViolation, addViolation, addViolation, getReport
public static final java.lang.String MSG_NO_SUMMARY_SENTENCE
public static final java.lang.String MSG_SUMMARY_SENTENCE_DOES_NOT_END_WITH_PERIOD
public static final java.lang.String MSG_SUMMARY_SENTENCE_TOO_SHORT
public static final java.lang.String MSG_SEE_WITHOUT_REFERENCE
public static final java.lang.String MSG_SINCE_WITHOUT_TEXT
public static final java.lang.String MSG_DEPRECATED_WITHOUT_TEXT
public static final java.lang.String MSG_TAG_IMPROPER_ORDER
protected static final int CHKLVL_SUMMARY_SENTENCE
protected static final int CHKLVL_MISORDERED_TAGS
protected static final int CHKLVL_VALID_TAGS
public static ItemCommentSpellCheck spellChecker
public ItemDocAnalyzer(Report r, SimpleNode node)
public static void addDictionary(java.lang.String dictName)
protected JavadocNode getJavadoc()
protected abstract SimpleNode getEnclosingNode()
public void run()
protected abstract void addUndocumentedViolation(java.lang.String desc)
protected void checkJavadoc(JavadocNode javadoc)
protected void checkForTagDescription(JavadocTaggedNode taggedNode, java.lang.String msg)
protected SimpleNode getNode()
protected abstract java.lang.String getItemType()
protected abstract java.util.List getValidTags()