org.sonar.java.ast
Class JavaAstScanner
java.lang.Object
org.sonar.java.ast.JavaAstScanner
- All Implemented Interfaces:
- CodeScanner
public class JavaAstScanner
- extends Object
- implements CodeScanner
Squid uses Checkstyle to get an out-of-the-box java parser with AST generation and visitor pattern support.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaAstScanner
public JavaAstScanner(SquidConfiguration conf)
scanCode
public void scanCode(SourceCode project,
Collection<File> filesToAnalyse)
- Specified by:
scanCode
in interface CodeScanner
accept
public void accept(CodeVisitor visitor)
- Specified by:
accept
in interface CodeScanner
getVisitors
public Collection<Class<? extends CodeVisitor>> getVisitors()
- Specified by:
getVisitors
in interface CodeScanner
Copyright © 2009 SonarSource SA. All Rights Reserved.