public class ClassPath extends Object
| Constructor and Description |
|---|
ClassPath(String path)
Construct a class path from the input String argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(com.sun.jdo.api.persistence.enhancer.util.ClassPathElement anElement)
Append a class path element to the classpath.
|
void |
append(File directory)
Append a directory to the classpath.
|
Enumeration |
classesInPackage(String packageName)
Return an enumeration of all of the class files in the specified
package in this class path.
|
static String |
classNameOf(String fileName)
Return the vm class name which corresponds to the input file name.
|
static String |
fileNameOf(String className)
Return a file name which might reasonably identify a file containing
the specified class.
|
static String |
fileNameOf(String className,
char separator)
Return a file name which might reasonably identify a file containing
the specified class.
|
ClassFileSource |
findClass(String className)
locate a class file given a fully qualified class name
|
boolean |
remove(File directory)
Remove any class path elements which match directory
|
static String |
zipFileNameOf(String className)
Return a file name which might reasonably identify a file containing
the specified class in a zip file.
|
public ClassPath(String path)
public ClassFileSource findClass(String className)
public static String fileNameOf(String className, char separator)
public static String fileNameOf(String className)
public static String zipFileNameOf(String className)
public static String classNameOf(String fileName)
public boolean remove(File directory)
public void append(File directory)
public void append(com.sun.jdo.api.persistence.enhancer.util.ClassPathElement anElement)
public Enumeration classesInPackage(String packageName)
packageName - specifies the VM format package name
to which class files must belong.Copyright © 2013. All Rights Reserved.