org.incava.doctorj

Class MethodDocAnalyzer

public class MethodDocAnalyzer extends FunctionDocAnalyzer

Analyzes Javadoc and code for methods.
Field Summary
static StringMSG_RETURN_FOR_VOID_METHOD
static StringMSG_RETURN_TYPE_USED
static StringMSG_RETURN_WITHOUT_DESCRIPTION
Constructor Summary
MethodDocAnalyzer(Report r, ASTMethodDeclaration method)
Method Summary
protected voidaddUndocumentedViolation(String desc)
Adds a violation for a method, with the violation pointing to the method name.
protected voidcheckJavadoc(JavadocNode javadoc)
protected SimpleNodegetEnclosingNode()
Returns the parent node, which is the enclosing declaration.
StringgetItemType()
protected ASTFormalParametersgetParameterList()
Returns the parameter list for the method.
protected ListgetValidTags()
Returns the valid tags, as strings, for methods.

Field Detail

MSG_RETURN_FOR_VOID_METHOD

public static final String MSG_RETURN_FOR_VOID_METHOD

MSG_RETURN_TYPE_USED

public static final String MSG_RETURN_TYPE_USED

MSG_RETURN_WITHOUT_DESCRIPTION

public static final String MSG_RETURN_WITHOUT_DESCRIPTION

Constructor Detail

MethodDocAnalyzer

public MethodDocAnalyzer(Report r, ASTMethodDeclaration method)

Method Detail

addUndocumentedViolation

protected void addUndocumentedViolation(String desc)
Adds a violation for a method, with the violation pointing to the method name.

checkJavadoc

protected void checkJavadoc(JavadocNode javadoc)

getEnclosingNode

protected SimpleNode getEnclosingNode()
Returns the parent node, which is the enclosing declaration.

getItemType

public String getItemType()

getParameterList

protected ASTFormalParameters getParameterList()
Returns the parameter list for the method.

getValidTags

protected List getValidTags()
Returns the valid tags, as strings, for methods.