at.dms.classfile
Class ClassPath
java.lang.Object
|
+--at.dms.classfile.ClassPath
- public class ClassPath
- extends java.lang.Object
This class implements the conceptual directory structure for .class files.
Method Summary |
static ClassInfo |
getClassInfo(java.lang.String name,
boolean interfaceOnly)
Returns a class-info object that contains the named class. |
static boolean |
hasClassFile(java.lang.String name)
Returns whether the named class is on this path. |
static void |
init(java.lang.String path,
boolean appendSystemPath)
Initialization from a string that represents the class path. |
static ClassDirectory[] |
parseClassPath(java.lang.String classPath)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseClassPath
public static ClassDirectory[] parseClassPath(java.lang.String classPath)
init
public static void init(java.lang.String path,
boolean appendSystemPath)
- Initialization from a string that represents the class path.
- Parameters:
path
- Whether to append the system path. For normal operation, this is
desired, but not when compiling an alternative implementation of the
system libraries.
hasClassFile
public static boolean hasClassFile(java.lang.String name)
- Returns whether the named class is on this path.
- Parameters:
name
- The name of the class file.- Returns:
- Whether the named class is on this path.
getClassInfo
public static ClassInfo getClassInfo(java.lang.String name,
boolean interfaceOnly)
- Returns a class-info object that contains the named class.
- Parameters:
name
- The name of the class file.- Returns:
- A class-info object that contains the named class.