Package org.sonar.java.checks.security
Class SocketUsageCheck
- java.lang.Object
-
- org.sonar.java.ast.visitors.SubscriptionVisitor
-
- org.sonar.plugins.java.api.IssuableSubscriptionVisitor
-
- org.sonar.java.checks.methods.AbstractMethodDetection
-
- org.sonar.java.checks.security.SocketUsageCheck
-
- All Implemented Interfaces:
JavaCheck
,JavaFileScanner
public class SocketUsageCheck extends AbstractMethodDetection
-
-
Field Summary
-
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context
-
-
Constructor Summary
Constructors Constructor Description SocketUsageCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<MethodMatcher>
getMethodInvocationMatchers()
List<Tree.Kind>
nodesToVisit()
protected void
onConstructorFound(NewClassTree newClassTree)
protected void
onMethodInvocationFound(MethodInvocationTree mit)
void
visitNode(Tree tree)
-
Methods inherited from class org.sonar.java.checks.methods.AbstractMethodDetection
onMethodReferenceFound
-
Methods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTree
-
Methods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
hasSemantic, leaveFile, leaveNode, scanFile, setContext, visitToken, visitTrivia
-
-
-
-
Method Detail
-
nodesToVisit
public List<Tree.Kind> nodesToVisit()
- Overrides:
nodesToVisit
in classAbstractMethodDetection
-
getMethodInvocationMatchers
protected List<MethodMatcher> getMethodInvocationMatchers()
- Specified by:
getMethodInvocationMatchers
in classAbstractMethodDetection
-
visitNode
public void visitNode(Tree tree)
- Overrides:
visitNode
in classAbstractMethodDetection
-
onMethodInvocationFound
protected void onMethodInvocationFound(MethodInvocationTree mit)
- Overrides:
onMethodInvocationFound
in classAbstractMethodDetection
-
onConstructorFound
protected void onConstructorFound(NewClassTree newClassTree)
- Overrides:
onConstructorFound
in classAbstractMethodDetection
-
-