de.hunsicker.jalopy.language
Class CodeInspector
java.lang.Object
|
+--de.hunsicker.jalopy.language.TreeWalker
|
+--de.hunsicker.jalopy.language.CodeInspector
- public final class CodeInspector
- extends TreeWalker
Inspects a Java parse tree for convention violations and possible code weaknesses.
- Since:
- 1.0b8
- Version:
- $Revision: 1.4 $
- Author:
- Marco Hunsicker
Fields inherited from class de.hunsicker.jalopy.language.TreeWalker |
stop |
Constructor Summary |
CodeInspector(Map issues)
Creates a new CodeInspector object. |
Method Summary |
void |
inspect(AST tree,
File file)
Inspects the given Java parse tree for code convention violations and coding
weaknesses. |
void |
visit(AST node)
{@inheritDoc} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeInspector
public CodeInspector(Map issues)
- Creates a new CodeInspector object.
- Parameters:
issues
- map to hold the found issues.
inspect
public void inspect(AST tree,
File file)
- Inspects the given Java parse tree for code convention violations and coding
weaknesses.
- Parameters:
tree
- root node of the parse tree.file
- the file that is inspected.
visit
public void visit(AST node)
- {@inheritDoc}
- Overrides:
visit
in class TreeWalker
- Following copied from class:
de.hunsicker.jalopy.language.TreeWalker
- Parameters:
node
- a node of the tree.