at.dms.classfile
Class ClassPath

java.lang.Object
  extended by at.dms.classfile.ClassPath

public class ClassPath
extends Object

This class implements the conceptual directory structure for .class files


Constructor Summary
ClassPath(String path)
          Constructs a class path object.
 
Method Summary
static ClassInfo getClassInfo(String name, boolean interfaceOnly)
           
static void init(String path)
          initialization from a string that represents the class path
 ClassInfo loadClass(String name, boolean interfaceOnly)
          Loads the class with specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPath

public ClassPath(String path)
Constructs a class path object.

Parameters:
path - the directory names defining the class path
Method Detail

loadClass

public ClassInfo loadClass(String name,
                           boolean interfaceOnly)
Loads the class with specified name.

Parameters:
name - the qualified name of the class
interfaceOnly - do not load method code ?
Returns:
the class info for the specified class, or null if the class cannot be found

init

public static void init(String path)
initialization from a string that represents the class path

Parameters:
path - the classpath

getClassInfo

public static ClassInfo getClassInfo(String name,
                                     boolean interfaceOnly)
Parameters:
name - the name of the class file
Returns:
a class file that contain the class named name