|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectkoala.dynamicjava.util.ImportationManager
koala.dynamicjava.util.BufferedImportationManager
A buffered version of the importation manager
| Field Summary | |
protected java.util.Map |
buffer
The class buffer |
| Fields inherited from class koala.dynamicjava.util.ImportationManager |
classLoader, currentPackage, importOnDemandClauses, singleTypeImportClauses |
| Constructor Summary | |
|
BufferedImportationManager(java.lang.ClassLoader cl)
Creates a new importation manager. |
protected |
BufferedImportationManager(ImportationManager im)
Copy constructor |
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of this object |
void |
declareClassImport(java.lang.String cname)
Declares a new single-type-import clause |
void |
declarePackageImport(java.lang.String pkg)
Declares a new import-on-demand clause |
java.lang.Class |
lookupClass(java.lang.String cname,
java.lang.String ccname)
Loads the class that match to the given name in the source file |
void |
setCurrentPackage(java.lang.String pkg)
Sets the current package. |
| Methods inherited from class koala.dynamicjava.util.ImportationManager |
findInnerClass, getCurrentPackage, getImportOnDemandClauses, getOuterNames, getSingleTypeImportClauses, hasSuffix, setClassLoader |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map buffer
| Constructor Detail |
public BufferedImportationManager(java.lang.ClassLoader cl)
cl - the class loader to useprotected BufferedImportationManager(ImportationManager im)
| Method Detail |
public java.lang.Object clone()
clone in class ImportationManagerpublic void setCurrentPackage(java.lang.String pkg)
lookupClass method.
setCurrentPackage in class ImportationManagerpkg - the package namepublic void declarePackageImport(java.lang.String pkg)
declarePackageImport in class ImportationManagerpkg - the package name
public void declareClassImport(java.lang.String cname)
throws java.lang.ClassNotFoundException
declareClassImport in class ImportationManagercname - the fully qualified class name
java.lang.ClassNotFoundException - if the class cannot be found
public java.lang.Class lookupClass(java.lang.String cname,
java.lang.String ccname)
throws java.lang.ClassNotFoundException
lookupClass in class ImportationManagercname - the name of the class to findccname - the name of the current class or null
java.lang.ClassNotFoundException - if the class cannot be loaded
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||