org.sonar.plugins.java.api.JavaCheck, org.sonar.plugins.java.api.JavaFileScannerAbstractInSynchronizeChecker, AbstractPrintfChecker, AccessibilityChangeCheck, AESAlgorithmCheck, ArrayHashCodeAndToStringCheck, ArraysAsListOfPrimitiveToStreamCheck, AssertionArgumentOrderCheck, AssertionFailInCatchBlockCheck, AssertionsWithoutMessageCheck, AvoidDESCheck, BooleanLiteralInAssertionsCheck, CallToFileDeleteOnExitMethodCheck, CipherBlockChainingCheck, ClassComparedByNameCheck, CollectInsteadOfForeachCheck, CollectionInappropriateCallsCheck, CookieShouldNotContainSensitiveDataCheck, CryptographicKeySizeCheck, DateAndTimesCheck, DateFormatWeekYearCheck, DateUtilsTruncateCheck, DefaultEncodingUsageCheck, DeprecatedHashAlgorithmCheck, DisallowedConstructorCheck, DisallowedMethodCheck, DynamicClassLoadCheck, EmptyDatabasePasswordCheck, EnumEqualCheck, EqualsOnAtomicClassCheck, ExecCallCheck, FilesExistsJDK8Check, GetRequestedSessionIdCheck, HttpRefererCheck, IgnoredOperationStatusCheck, InappropriateRegexpCheck, IntegerToHexStringCheck, InvalidDateValuesCheck, LDAPAuthenticatedConnectionCheck, LDAPDeserializationCheck, LongBitsToDoubleOnIntCheck, NioFileDeleteCheck, NotifyCheck, ObjectCreatedOnlyToCallGetClassCheck, ObjectDeserializationCheck, PopulateBeansCheck, PredictableSeedCheck, PreferStreamAnyMatchCheck, PreparedStatementAndResultSetCheck, RedundantStreamCollectCheck, ReflectionOnNonRuntimeAnnotationCheck, RegexPatternsNeedlesslyCheck, ResultSetIsLastCheck, ReuseRandomCheck, RunFinalizersCheck, ScheduledThreadPoolExecutorZeroCheck, SecureXmlTransformerCheck, SerializableObjectInSessionCheck, SillyEqualsCheck, SMTPSSLServerIdentityCheck, SpringAntMatcherOrderCheck, SpringSecurityDisableCSRFCheck, StringMethodsOnSingleCharCheck, StringMethodsWithLocaleCheck, StringOffsetMethodsCheck, StringPrimitiveConstructorCheck, StringToStringCheck, ThreadLocalWithInitialCheck, ThreadRunCheck, ThreadSleepInTestsCheck, ThreadWaitCallCheck, ToArrayCheck, WaitInWhileLoopCheck, WaitOnConditionCheck, XmlDeserializationCheckpublic abstract class AbstractMethodDetection
extends org.sonar.plugins.java.api.IssuableSubscriptionVisitor
| Constructor | Description |
|---|---|
AbstractMethodDetection() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract List<org.sonar.java.matcher.MethodMatcher> |
getMethodInvocationMatchers() |
|
List<org.sonar.plugins.java.api.tree.Tree.Kind> |
nodesToVisit() |
|
protected void |
onConstructorFound(org.sonar.plugins.java.api.tree.NewClassTree newClassTree) |
|
protected void |
onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit) |
|
void |
visitNode(org.sonar.plugins.java.api.tree.Tree tree) |
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssuepublic List<org.sonar.plugins.java.api.tree.Tree.Kind> nodesToVisit()
nodesToVisit in class org.sonar.java.ast.visitors.SubscriptionVisitorpublic void visitNode(org.sonar.plugins.java.api.tree.Tree tree)
visitNode in class org.sonar.java.ast.visitors.SubscriptionVisitorprotected abstract List<org.sonar.java.matcher.MethodMatcher> getMethodInvocationMatchers()
protected void onMethodInvocationFound(org.sonar.plugins.java.api.tree.MethodInvocationTree mit)
protected void onConstructorFound(org.sonar.plugins.java.api.tree.NewClassTree newClassTree)
Copyright © 2012–2018 SonarSource. All rights reserved.