public class DisallowedClassCheck extends BaseTreeVisitor implements JavaFileScanner
| Modifier and Type | Field and Description |
|---|---|
String |
disallowedClass |
| Constructor and Description |
|---|
DisallowedClassCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
scanFile(JavaFileScannerContext context) |
void |
visitAnnotation(AnnotationTree annotationTree) |
void |
visitClass(ClassTree classTree) |
void |
visitMethod(MethodTree methodTree) |
void |
visitNewClass(NewClassTree newClassTree) |
void |
visitVariable(VariableTree variableTree) |
scan, scan, scan, 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 String disallowedClass
public void scanFile(JavaFileScannerContext context)
scanFile in interface JavaFileScannerpublic void visitVariable(VariableTree variableTree)
visitVariable in interface TreeVisitorvisitVariable in class BaseTreeVisitorpublic void visitMethod(MethodTree methodTree)
visitMethod in interface TreeVisitorvisitMethod in class BaseTreeVisitorpublic void visitNewClass(NewClassTree newClassTree)
visitNewClass in interface TreeVisitorvisitNewClass in class BaseTreeVisitorpublic void visitClass(ClassTree classTree)
visitClass in interface TreeVisitorvisitClass in class BaseTreeVisitorpublic void visitAnnotation(AnnotationTree annotationTree)
visitAnnotation in interface TreeVisitorvisitAnnotation in class BaseTreeVisitorCopyright © 2012–2017 SonarSource. All rights reserved.