APIdia Launch Partner
Top Description Methods
com.sun.org.apache.bcel.internal.util

public Interface Repository

Known Direct Implementers
com.sun.org.apache.bcel.internal.util.SyntheticRepository
Imports
com.sun.org.apache.bcel.internal.classfile.JavaClass

Abstract definition of a class repository. Instances may be used to load classes from different sources and may be used in the Repository.setRepository method.
See Also
com.sun.org.apache.bcel.internal.Repository

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clears all entries from cache.

public JavaClass
findClass(String className)

Finds the class with the name provided, if the class isn't there, return NULL.

public JavaClass
loadClass(Class<?> clazz)

Finds the JavaClass instance for the given run-time class object.

public JavaClass
loadClass(String className)

Finds the class with the name provided, if the class isn't there, make an attempt to load it.

public void
removeClass(JavaClass clazz)

Removes class from repository

public void
storeClass(JavaClass clazz)

Stores the provided class under "clazz.getClassName()"

Method Detail

clearback to summary
public void clear()

Clears all entries from cache.

findClassback to summary
public JavaClass findClass(String className)

Finds the class with the name provided, if the class isn't there, return NULL.

loadClassback to summary
public JavaClass loadClass(Class<?> clazz) throws ClassNotFoundException

Finds the JavaClass instance for the given run-time class object.

Exceptions
ClassNotFoundException:
if the class can't be found.
loadClassback to summary
public JavaClass loadClass(String className) throws ClassNotFoundException

Finds the class with the name provided, if the class isn't there, make an attempt to load it.

Exceptions
ClassNotFoundException:
if the class can't be found.
removeClassback to summary
public void removeClass(JavaClass clazz)

Removes class from repository

storeClassback to summary
public void storeClass(JavaClass clazz)

Stores the provided class under "clazz.getClassName()"