Class AndroidScanner
- java.lang.Object
-
- io.avaje.classpath.scanner.internal.scanner.classpath.android.AndroidScanner
-
- All Implemented Interfaces:
ResourceAndClassScanner
public class AndroidScanner extends Object implements ResourceAndClassScanner
Class & resource scanner for Android.
-
-
Constructor Summary
Constructors Constructor Description AndroidScanner(ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Class<?>>scanForClasses(Location location, io.avaje.classpath.scanner.ClassFilter predicate)Scans the classpath for concrete classes under the specified package implementing this interface.List<io.avaje.classpath.scanner.Resource>scanForResources(Location location, io.avaje.classpath.scanner.ResourceFilter predicate)Scans the classpath for resources under the specified location, starting with the specified prefix and ending with the specified suffix.
-
-
-
Constructor Detail
-
AndroidScanner
public AndroidScanner(ClassLoader classLoader)
-
-
Method Detail
-
scanForResources
public List<io.avaje.classpath.scanner.Resource> scanForResources(Location location, io.avaje.classpath.scanner.ResourceFilter predicate)
Description copied from interface:ResourceAndClassScannerScans the classpath for resources under the specified location, starting with the specified prefix and ending with the specified suffix.- Specified by:
scanForResourcesin interfaceResourceAndClassScanner- Parameters:
location- The location in the classpath to start searching. Subdirectories are also searched.predicate- The predicate used to match the resource names.- Returns:
- The resources that were found.
-
scanForClasses
public List<Class<?>> scanForClasses(Location location, io.avaje.classpath.scanner.ClassFilter predicate)
Description copied from interface:ResourceAndClassScannerScans the classpath for concrete classes under the specified package implementing this interface. Non-instantiable abstract classes are filtered out.- Specified by:
scanForClassesin interfaceResourceAndClassScanner- Parameters:
location- The location (package) in the classpath to start scanning. Subpackages are also scanned.predicate- The predicate used to match against scanned classes.- Returns:
- The non-abstract classes that were found.
-
-