public interface ClassPath
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method is invoked when the
ClassPath object is
detached from the search path. |
URL |
find(String classname)
Returns the uniform resource locator (URL) of the class file
with the specified name.
|
InputStream |
openClassfile(String classname)
Opens a class file.
|
InputStream openClassfile(String classname) throws NotFoundException
This method can return null if the specified class file is not found. If null is returned, the next search path is examined. However, if an error happens, this method must throw an exception so that the search will be terminated.
This method should not modify the contents of the class file.
classname - a fully-qualified class nameNotFoundExceptionjavassist.TranslatorURL find(String classname)
classname - a fully-qualified class name.void close()
ClassPath object is
detached from the search path. It will be an empty method in most of
classes.Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.