org.sonar.java.ast
Class JavaAstScanner

java.lang.Object
  extended by 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.


Constructor Summary
JavaAstScanner(SquidConfiguration conf)
           
 
Method Summary
 void accept(CodeVisitor visitor)
           
 Collection<Class<? extends CodeVisitor>> getVisitors()
           
 void scanCode(SourceCode project, Collection<File> filesToAnalyse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAstScanner

public JavaAstScanner(SquidConfiguration conf)
Method Detail

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.