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,AndroidBroadcastingCheck,AndroidExternalStorageCheck,ArrayHashCodeAndToStringCheck,ArraysAsListOfPrimitiveToStreamCheck,AssertionArgumentOrderCheck,AssertionFailInCatchBlockCheck,AssertionsInProductionCodeCheck,AssertionsWithoutMessageCheck,AssertJApplyConfigurationCheck,AssertJChainSimplificationCheck,AssertJContextBeforeAssertionCheck,AssertJTestForEmptinessCheck,AssertThatThrownByAloneCheck,AssertTrueInsteadOfDedicatedAssertCheck,BasicAuthCheck,BooleanOrNullLiteralInAssertionsCheck,CallToFileDeleteOnExitMethodCheck,CaseInsensitiveComparisonCheck,CipherBlockChainingCheck,ClassComparedByNameCheck,CollectInsteadOfForeachCheck,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,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, visitTrivia
-
Constructor Details
-
AbstractMethodDetection
public AbstractMethodDetection()
-
-
Method Details
-
nodesToVisit
- Specified by:
nodesToVisitin classSubscriptionVisitor
-
visitNode
- Overrides:
visitNodein classSubscriptionVisitor
-
getMethodInvocationMatchers
-
onMethodInvocationFound
-
onConstructorFound
-
onMethodReferenceFound
-