use of com.puppycrawl.tools.checkstyle.api.Scope in project checkstyle by checkstyle.
the class JavadocMethodCheck method processAST.
@Override
protected final void processAST(DetailAST ast) {
final Scope theScope = calculateScope(ast);
if (shouldCheck(ast, theScope)) {
final FileContents contents = getFileContents();
final TextBlock textBlock = contents.getJavadocBefore(ast.getLineNo());
if (textBlock == null) {
if (!isMissingJavadocAllowed(ast)) {
log(ast, MSG_JAVADOC_MISSING);
}
} else {
checkComment(ast, textBlock);
}
}
}
Aggregations