at.dms.classfile
Class ClassDirectory

java.lang.Object
  |
  +--at.dms.classfile.ClassDirectory
Direct Known Subclasses:
DirClassDirectory, ZipClassDirectory

abstract class ClassDirectory
extends java.lang.Object

A conceptual directory which holds Java class files. Since Java can use archived class files found in a compressed ("zip") file, this entity may or may not correspond to an actual directory on disk.


Constructor Summary
(package private) ClassDirectory()
           
 
Method Summary
abstract  ClassDescription getClassFile(java.lang.String name)
          Returns a ClassDescription object that can give the data of the classfile for the named class.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDirectory

ClassDirectory()
Method Detail

getClassFile

public abstract ClassDescription getClassFile(java.lang.String name)
Returns a ClassDescription object that can give the data of the classfile for the named class.
Parameters:
name - The name of the class, using '/'-es instead of dots in the package name part, but does NOT have ".class" at the end of the class name.
Returns:
Returns a ClassDescription object that can give the data of the classfile for the named class. If the named class cannot be found in this directory, this method returns null.