Top Fields Constructors Methods
javassist

pack-priv final Class JarDirClassPath

Located in compilation unit of javassist.ClassPoolTail.

extends Object
implements ClassPath
Class Inheritance
All Implemented Interfaces
javassist.ClassPath

Field Summary

Modifier and TypeField and Description
pack-priv JarClassPath[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public URL
find(String
a fully-qualified class name.
classname
)

Implements javassist.ClassPath.find.

Returns the uniform resource locator (URL) of the class file with the specified name.

public InputStream
openClassfile(String
a fully-qualified class name
classname
)

Implements javassist.ClassPath.openClassfile.

Opens a class file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jarsback to summary
pack-priv JarClassPath[] jars

Constructor Detail

JarDirClassPathback to summary
pack-priv JarDirClassPath(String dirName) throws NotFoundException

Method Detail

findback to summary
public URL find(String classname)

Implements javassist.ClassPath.find.

Doc from javassist.ClassPath.find.

Returns the uniform resource locator (URL) of the class file with the specified name.

Parameters
classname:String

a fully-qualified class name.

Returns:URL

null if the specified class file could not be found.

Annotations
@Override
openClassfileback to summary
public InputStream openClassfile(String classname) throws NotFoundException

Implements javassist.ClassPath.openClassfile.

Doc from javassist.ClassPath.openClassfile.

Opens a class file. This method may be called just to examine whether the class file exists as well as to read the contents of the file.

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.

Parameters
classname:String

a fully-qualified class name

Returns:InputStream

the input stream for reading a class file

Annotations
@Override