edu.mit.ai.psg.jeva
Interface IPackage

All Known Implementing Classes:
Package

public interface IPackage

IPackage is an interface for internal representations of known packages to store and retrieve the classes defined within them.

See Also:
Package

Method Summary
 String getFullName()
           
 IClass getIClass(String simpleClassName, boolean cacheFailures)
          Look up class, returning null if not found.
 IPackage getIPackage(String simplePackageName, boolean suppressPackageNameChecks)
          Lookup up package.
 String getSimpleName()
           
 IClass put(String simpleClassName, IClass aClass, boolean overwriteOldClass)
           
 

Method Detail

getFullName

public String getFullName()

getSimpleName

public String getSimpleName()

put

public IClass put(String simpleClassName,
                  IClass aClass,
                  boolean overwriteOldClass)

getIClass

public IClass getIClass(String simpleClassName,
                        boolean cacheFailures)
Look up class, returning null if not found. If cacheFailures is true, remember failure, so future calls on same name return null immediately without searching file system (important if files are remote)

getIPackage

public IPackage getIPackage(String simplePackageName,
                            boolean suppressPackageNameChecks)
                     throws IllegalArgumentException
Lookup up package. If not found, creates a new package and adds it. If supressPackageNameCheck is false, first check validity of name of package against corresponding directory names in classpath. (False prevents security exceptions if classpath or directories are inaccessible).
Throws:
IllegalArgumentException - if name not found in classpath

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu