KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > incava > doctorj > DocAnalyzer


1 package org.incava.doctorj;
2
3 import java.util.Iterator JavaDoc;
4 import java.util.List JavaDoc;
5 import net.sourceforge.pmd.ast.SimpleNode;
6 import net.sourceforge.pmd.ast.Token;
7 import org.incava.analysis.Analyzer;
8 import org.incava.analysis.Report;
9 import org.incava.java.SimpleNodeUtil;
10
11
12 /**
13  * Analyzes Javadoc and code.
14  */

15 public class DocAnalyzer extends Analyzer
16 {
17     protected final static int CHKLVL_DOC_EXISTS = 1;
18     
19     protected final static int CHKLVL_TAG_CONTENT = 1;
20
21     public DocAnalyzer(Report r)
22     {
23         super(r);
24     }
25
26     public boolean isCheckable(SimpleNode node, int level)
27     {
28         int nodeLevel = SimpleNodeUtil.getLevel(node);
29         return Options.warningLevel >= level + nodeLevel;
30     }
31     
32 }
33
Popular Tags