public class URLClassPathRepository
extends java.lang.Object
implements org.apache.bcel.util.Repository
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
Constructor and Description |
---|
URLClassPathRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addURL(java.lang.String fileName)
Add a filename or URL to the classpath.
|
void |
clear() |
void |
destroy()
Clear the repository and close all underlying resources.
|
org.apache.bcel.classfile.JavaClass |
findClass(java.lang.String className) |
org.apache.bcel.util.ClassPath |
getClassPath() |
org.apache.bcel.classfile.JavaClass |
loadClass(java.lang.Class<?> clazz) |
org.apache.bcel.classfile.JavaClass |
loadClass(java.lang.String className) |
void |
removeClass(org.apache.bcel.classfile.JavaClass javaClass) |
void |
storeClass(org.apache.bcel.classfile.JavaClass javaClass) |
public void destroy()
public void addURL(java.lang.String fileName) throws java.io.IOException
fileName
- filename or URL of classpath entry to addjava.io.IOException
public void storeClass(org.apache.bcel.classfile.JavaClass javaClass)
storeClass
in interface org.apache.bcel.util.Repository
public void removeClass(org.apache.bcel.classfile.JavaClass javaClass)
removeClass
in interface org.apache.bcel.util.Repository
public org.apache.bcel.classfile.JavaClass findClass(java.lang.String className)
findClass
in interface org.apache.bcel.util.Repository
public org.apache.bcel.classfile.JavaClass loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
loadClass
in interface org.apache.bcel.util.Repository
java.lang.ClassNotFoundException
public org.apache.bcel.classfile.JavaClass loadClass(java.lang.Class<?> clazz) throws java.lang.ClassNotFoundException
loadClass
in interface org.apache.bcel.util.Repository
java.lang.ClassNotFoundException
public void clear()
clear
in interface org.apache.bcel.util.Repository
public org.apache.bcel.util.ClassPath getClassPath()
getClassPath
in interface org.apache.bcel.util.Repository
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.