org.sonar.java.ast.visitor
Class PublicApiVisitor

java.lang.Object
  extended by org.sonar.java.ast.visitor.JavaAstVisitor
      extended by org.sonar.java.ast.visitor.PublicApiVisitor
All Implemented Interfaces:
CodeVisitor

public class PublicApiVisitor
extends JavaAstVisitor


Field Summary
static List<Integer> TOKENS
           
 
Constructor Summary
PublicApiVisitor()
           
 
Method Summary
 List<Integer> getWantedTokens()
           
static boolean isDocumentedApi(com.puppycrawl.tools.checkstyle.api.DetailAST ast, com.puppycrawl.tools.checkstyle.api.FileContents fileContents)
          Also used by UndocumentedApiCheck
static boolean isPublicApi(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
          Also used by UndocumentedApiCheck
 void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
           
 
Methods inherited from class org.sonar.java.ast.visitor.JavaAstVisitor
addSourceCode, getFileContents, getInputFile, leaveFile, leaveToken, peekParentClass, peekParentPackage, peekSourceCode, popSourceCode, setFileContents, setInputFile, setSource, setSourceCodeStack, visitFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKENS

public static final List<Integer> TOKENS
Constructor Detail

PublicApiVisitor

public PublicApiVisitor()
Method Detail

getWantedTokens

public List<Integer> getWantedTokens()
Overrides:
getWantedTokens in class JavaAstVisitor

visitToken

public void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
Overrides:
visitToken in class JavaAstVisitor

isDocumentedApi

public static boolean isDocumentedApi(com.puppycrawl.tools.checkstyle.api.DetailAST ast,
                                      com.puppycrawl.tools.checkstyle.api.FileContents fileContents)
Also used by UndocumentedApiCheck


isPublicApi

public static boolean isPublicApi(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
Also used by UndocumentedApiCheck



Copyright © 2009-2012 SonarSource. All Rights Reserved.