Create a new ServiceDetector.
ServicePatternRecognizer instance
Detect if a class is a service with caching.
Results are cached by file path + class name for performance.
The class declaration to analyze
Service detection result with confidence
Detect all services in a source file (bulk operation).
More efficient than detecting each class individually.
The source file to analyze
Bulk detection result with statistics
Detect services in multiple source files (bulk operation).
Array of source files to analyze
Bulk detection result with combined statistics
Filter classes to only services.
Array of class declarations
Array of service class declarations
Get detection statistics from cache.
Statistics about cached detections
Cached results that are not services.
Cached results that are services.
Cached results.
Simple check if a class is a service (cached).
The class declaration to check
True if detected as service
Service detection with caching and bulk operations. Wraps a ServicePatternRecognizer so that all analysis rules detect services the same way, and caches results by file path and class name.
Example