|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.ClassDirectory
This class represents a conceptual directory which may hold 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 boolean |
containsDirectory(String name)
returns true if the directory contains the given directory |
abstract ClassPath.ClassDescription |
findFile(String name,
String suffix)
Returns a file descriptor for the .java file that should store the type of the given name. |
abstract ClassPath.ClassDescription |
getClassFile(String name)
|
abstract ClassPath.ClassDescription |
getClassFile(String name,
String suffix)
|
abstract String |
location()
returns the root location of this directory element |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ClassDirectory()
| Method Detail |
public abstract ClassPath.ClassDescription getClassFile(String name)
name - the name of the class
public abstract ClassPath.ClassDescription getClassFile(String name,
String suffix)
public abstract ClassPath.ClassDescription findFile(String name,
String suffix)
{| requires (* a .java file that should store the type named "name" exists on the sourcepath *); ensures (* \result is the file descriptor for that file *); also requires !(* a .java file that should store the type named "name" exists on the sourcepath *); ensures \result == null; |}
public abstract boolean containsDirectory(String name)
public abstract String location()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||