to top
public class

ClassPathScanner

extends Object
java.lang.Object
   ↳ com.android.tradefed.util.ClassPathScanner

Class Overview

Finds entries on classpath.

Adapted from vogar.target.ClassPathScanner

Summary

Nested Classes
class ClassPathScanner.ClassNameFilter A ClassPathScanner.IClassPathFilter that filters and transforms java class names. 
class ClassPathScanner.ExternalClassNameFilter A ClassPathScanner.ClassNameFilter that rejects inner classes  
interface ClassPathScanner.IClassPathFilter A filter for classpath entry paths

Patterned after FileFilter  

Public Constructors
ClassPathScanner()
Public Methods
static String[] getClassPath()
Gets the class path from the System Property "java.class.path" and splits it up into the individual elements.
Set<String> getClassPathEntries(ClassPathScanner.IClassPathFilter filter)
Retrieves set of classpath entries that match given ClassPathScanner.IClassPathFilter
Set<String> getEntriesFromDir(File classPathDir, ClassPathScanner.IClassPathFilter filter)
Gets the names of all entries contained in given class path directory, that match given filter
Set<String> getEntriesFromJar(File plainFile, ClassPathScanner.IClassPathFilter filter)
Gets the names of all entries contained in given jar file, that match given filter
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClassPathScanner ()

Public Methods

public static String[] getClassPath ()

Gets the class path from the System Property "java.class.path" and splits it up into the individual elements.

public Set<String> getClassPathEntries (ClassPathScanner.IClassPathFilter filter)

Retrieves set of classpath entries that match given ClassPathScanner.IClassPathFilter

public Set<String> getEntriesFromDir (File classPathDir, ClassPathScanner.IClassPathFilter filter)

Gets the names of all entries contained in given class path directory, that match given filter

Throws
IOException

public Set<String> getEntriesFromJar (File plainFile, ClassPathScanner.IClassPathFilter filter)

Gets the names of all entries contained in given jar file, that match given filter

Throws
IOException