public class PublicApiChecker extends BaseTreeVisitor
| Constructor and Description |
|---|
PublicApiChecker() |
| Modifier and Type | Method and Description |
|---|---|
static Tree.Kind[] |
apiKinds() |
static Tree.Kind[] |
classKinds() |
static String |
getApiJavadoc(Tree tree) |
int |
getPublicApi() |
int |
getUndocumentedPublicApi() |
static boolean |
isPublicApi(Tree currentParent,
Tree tree) |
static Tree.Kind[] |
methodKinds() |
void |
scan(CompilationUnitTree tree) |
void |
visitClass(ClassTree tree) |
void |
visitMethod(MethodTree tree) |
void |
visitNewClass(NewClassTree tree) |
void |
visitVariable(VariableTree tree) |
scan, scan, scan, visitAnnotation, visitArrayAccessExpression, visitArrayDimension, visitArrayType, visitAssertStatement, visitAssignmentExpression, visitBinaryExpression, visitBlock, visitBreakStatement, visitCaseGroup, visitCaseLabel, visitCatch, visitCompilationUnit, visitConditionalExpression, visitContinueStatement, visitDoWhileStatement, visitEmptyStatement, visitEnumConstant, visitExportsDirectiveTree, visitExpressionStatement, visitForEachStatement, visitForStatement, visitIdentifier, visitIfStatement, visitImport, visitInstanceOf, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberSelectExpression, visitMethodInvocation, visitMethodReference, visitModifier, visitModule, visitNewArray, visitOpensDirective, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvidesDirective, visitRequiresDirectiveTree, visitReturnStatement, visitSwitchStatement, visitSynchronizedStatement, visitThrowStatement, visitTryStatement, visitTypeArguments, visitTypeCast, visitTypeParameter, visitTypeParameters, visitUnaryExpression, visitUnionType, visitUsesDirective, visitWhileStatement, visitWildcardpublic static Tree.Kind[] classKinds()
public static Tree.Kind[] methodKinds()
public static Tree.Kind[] apiKinds()
public void scan(CompilationUnitTree tree)
public void visitNewClass(NewClassTree tree)
visitNewClass in interface TreeVisitorvisitNewClass in class BaseTreeVisitorpublic void visitClass(ClassTree tree)
visitClass in interface TreeVisitorvisitClass in class BaseTreeVisitorpublic void visitVariable(VariableTree tree)
visitVariable in interface TreeVisitorvisitVariable in class BaseTreeVisitorpublic void visitMethod(MethodTree tree)
visitMethod in interface TreeVisitorvisitMethod in class BaseTreeVisitorpublic int getPublicApi()
public int getUndocumentedPublicApi()
Copyright © 2012–2017 SonarSource. All rights reserved.