Hi, i need to implement a rule for check javadoc description on a java method.
The rule also needs to check out if the javadoc for the method has the following structure:
/*
** Purpose:
** Prerequisites:
** Design steps:
*/
pubic void someMethod() {
}
I started as follows - but I do not see any possibility to ask for the description of the method. Can anyone here help me - thank you!
public List<Tree.Kind> nodesToVisit() {
return Collections.singletonList(Tree.Kind.METHOD);
}
@Override
public void visitNode(Tree tree) {
MethodTree methodTree = (MethodTree) tree;