Top Fields Constructors Methods
javassist

pack-priv final Class DirClassPath

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 String

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.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

directoryback to summary
pack-priv String directory

Constructor Detail

DirClassPathback to summary
pack-priv DirClassPath(String dirName)

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)

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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override