Package org.sonar.java.checks.methods
Class AbstractMethodDetection
java.lang.Object
org.sonar.java.ast.visitors.SubscriptionVisitor
org.sonar.plugins.java.api.IssuableSubscriptionVisitor
org.sonar.java.checks.methods.AbstractMethodDetection
- All Implemented Interfaces:
JavaCheck,JavaFileScanner
- Direct Known Subclasses:
AbstractHashAlgorithmChecker,AbstractInSynchronizeChecker,AbstractPrintfChecker,AccessibilityChangeCheck,AccessibilityChangeOnRecordsCheck,AndroidBiometricAuthWithoutCryptoCheck,AndroidBroadcastingCheck,AndroidExternalStorageCheck,AndroidNonAuthenticatedUsersCheck,AndroidUnencryptedFilesCheck,ArrayHashCodeAndToStringCheck,ArraysAsListOfPrimitiveToStreamCheck,AssertionArgumentOrderCheck,AssertionFailInCatchBlockCheck,AssertionsInProductionCodeCheck,AssertionsWithoutMessageCheck,AssertJApplyConfigurationCheck,AssertJChainSimplificationCheck,AssertJContextBeforeAssertionCheck,AssertJTestForEmptinessCheck,AssertThatThrownByAloneCheck,AssertTrueInsteadOfDedicatedAssertCheck,AwsConsumerBuilderUsageCheck,AwsLongTermAccessKeysCheck,AwsRegionSetterCheck,BasicAuthCheck,BooleanOrNullLiteralInAssertionsCheck,CallToFileDeleteOnExitMethodCheck,CaseInsensitiveComparisonCheck,CipherBlockChainingCheck,ClassComparedByNameCheck,CollectInsteadOfForeachCheck,CollectionConstructorReferenceCheck,CollectorsToListCheck,CryptographicKeySizeCheck,DateAndTimesCheck,DateFormatWeekYearCheck,DateUtilsTruncateCheck,DefaultEncodingUsageCheck,DisallowedConstructorCheck,DisallowedMethodCheck,DynamicClassLoadCheck,EmptyDatabasePasswordCheck,EncryptionAlgorithmCheck,EnumEqualCheck,EqualsOnAtomicClassCheck,ExpectedExceptionCheck,FilesExistsJDK8Check,GetClassLoaderCheck,GetRequestedSessionIdCheck,IgnoredOperationStatusCheck,InappropriateRegexpCheck,IntegerToHexStringCheck,InvalidDateValuesCheck,JdbcDriverExplicitLoadingCheck,LDAPAuthenticatedConnectionCheck,LDAPDeserializationCheck,LogConfigurationCheck,LongBitsToDoubleOnIntCheck,MockingAllMethodsCheck,NioFileDeleteCheck,NotifyCheck,NullReturnedOnComputeIfPresentOrAbsentCheck,ObjectCreatedOnlyToCallGetClassCheck,OpenSAML2AuthenticationBypassCheck,OSCommandsPathCheck,PopulateBeansCheck,PredictableSeedCheck,PreferStreamAnyMatchCheck,PreparedStatementAndResultSetCheck,ReceivingIntentsCheck,RedundantStreamCollectCheck,ReflectionOnNonRuntimeAnnotationCheck,RegexPatternsNeedlesslyCheck,ReplaceGuavaWithJavaCheck,ResultSetIsLastCheck,ReuseRandomCheck,RunFinalizersCheck,ScheduledThreadPoolExecutorZeroCheck,SerializableObjectInSessionCheck,SillyEqualsCheck,SillyStringOperationsCheck,SpringAntMatcherOrderCheck,SpringSecurityDisableCSRFCheck,SpringSessionFixationCheck,StandardCharsetsConstantsCheck,StreamPeekCheck,StringCallsBeyondBoundsCheck,StringMethodsWithLocaleCheck,StringOffsetMethodsCheck,StringPrimitiveConstructorCheck,StringToStringCheck,StrongCipherAlgorithmCheck,ThreadLocalWithInitialCheck,ThreadRunCheck,ThreadSleepInTestsCheck,ThreadWaitCallCheck,ToArrayCheck,WaitInWhileLoopCheck,WaitOnConditionCheck,WebViewJavaScriptSupportCheck,WebViewsFileAccessCheck,XxeActiveMQCheck
-
Field Summary
Fields inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MethodMatchersprotected voidonConstructorFound(NewClassTree newClassTree) protected voidprotected voidonMethodReferenceFound(MethodReferenceTree methodReferenceTree) voidMethods inherited from class org.sonar.plugins.java.api.IssuableSubscriptionVisitor
addIssue, addIssueOnFile, reportIssue, reportIssue, reportIssue, scanTreeMethods inherited from class org.sonar.java.ast.visitors.SubscriptionVisitor
leaveFile, leaveNode, scanFile, setContext, visitToken, visitTriviaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.sonar.plugins.java.api.JavaFileScanner
scanWithoutParsing
-
Constructor Details
-
AbstractMethodDetection
public AbstractMethodDetection()
-
-
Method Details
-
nodesToVisit
- Specified by:
nodesToVisitin classSubscriptionVisitor
-
visitNode
- Overrides:
visitNodein classSubscriptionVisitor
-
getMethodInvocationMatchers
-
onMethodInvocationFound
-
onConstructorFound
-
onMethodReferenceFound
-