Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Repository Class Reference

List of all members.

Static Public Methods

JavaClass addClass (JavaClass clazz)
void clearCache ()
JavaClass[] getInterfaces (JavaClass clazz)
JavaClass[] getInterfaces (String class_name)
JavaClass[] getSuperClasses (JavaClass clazz)
JavaClass[] getSuperClasses (String class_name)
boolean implementationOf (JavaClass clazz, JavaClass inter)
boolean implementationOf (JavaClass clazz, String inter)
boolean implementationOf (String clazz, JavaClass inter)
boolean implementationOf (String clazz, String inter)
boolean instanceOf (JavaClass clazz, JavaClass super_class)
boolean instanceOf (JavaClass clazz, String super_class)
boolean instanceOf (String clazz, JavaClass super_class)
boolean instanceOf (String clazz, String super_class)
JavaClass lookupClass (String class_name)
ClassPath ClassFile lookupClassFile (String class_name)
void resetClassPath ()
JavaClass addClass (JavaClass clazz)
void clearCache ()
JavaClass[] getInterfaces (JavaClass clazz)
JavaClass[] getInterfaces (String class_name)
JavaClass[] getSuperClasses (JavaClass clazz)
JavaClass[] getSuperClasses (String class_name)
boolean implementationOf (JavaClass clazz, JavaClass inter)
boolean implementationOf (JavaClass clazz, String inter)
boolean implementationOf (String clazz, JavaClass inter)
boolean implementationOf (String clazz, String inter)
boolean instanceOf (JavaClass clazz, JavaClass super_class)
boolean instanceOf (JavaClass clazz, String super_class)
boolean instanceOf (String clazz, JavaClass super_class)
boolean instanceOf (String clazz, String super_class)
JavaClass lookupClass (String class_name)
ClassPath ClassFile lookupClassFile (String class_name)
void removeClass (JavaClass clazz)
void removeClass (String clazz)

Static Private Methods

final JavaClass getSuperClass (JavaClass clazz)
final JavaClass getSuperClass (JavaClass clazz)

Static Private Attributes

ClassPath class_path = new ClassPath()
Hashtable classes
JavaClass OBJECT

Detailed Description

Repository maintains informations about class interdependencies, e.g. whether a class is a sub-class of another. JavaClass objects are put into a cache which can be purged with clearCache().

All JavaClass objects used as arguments must have been obtained via the repository or been added with addClass() manually. This is because we check for object equality (==).

Version:
Id:
Repository.java,v 1.1.1.1 2002/01/24 03:43:59 pserver Exp
Author:
M. Dahm</A

Definition at line 20 of file lib/jpf/de/fub/bytecode/Repository.java.


Member Function Documentation

JavaClass Repository::addClass JavaClass   clazz [inline, static]
 

Add clazz to repository if there isn't an equally named class already in there.

Returns:
old entry in repository

Definition at line 32 of file src/de/fub/bytecode/Repository.java.

JavaClass Repository::addClass JavaClass   clazz [inline, static]
 

Add clazz to repository if there isn't an equally named class already in there.

Returns:
old entry in repository

Definition at line 31 of file lib/jpf/de/fub/bytecode/Repository.java.

void Repository::clearCache   [inline, static]
 

Clear the repository.

Definition at line 43 of file src/de/fub/bytecode/Repository.java.

void Repository::clearCache   [inline, static]
 

Clear the repository.

Definition at line 42 of file lib/jpf/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getInterfaces String   class_name [inline, static]
 

Returns:
all interfaces implemented by class and its super classes and the interfaces that extend those interfaces, and so on

Definition at line 83 of file src/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getInterfaces JavaClass   clazz [inline, static]
 

Returns:
all interfaces implemented by class and its super classes and the interfaces that those interfaces extend, and so on

Definition at line 56 of file src/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getInterfaces String   class_name [inline, static]
 

Returns:
all interfaces implemented by class and its super classes and the interfaces that extend those interfaces, and so on

Definition at line 82 of file lib/jpf/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getInterfaces JavaClass   clazz [inline, static]
 

Returns:
all interfaces implemented by class and its super classes and the interfaces that those interfaces extend, and so on

Definition at line 55 of file lib/jpf/de/fub/bytecode/Repository.java.

Referenced by getInterfaces(), and implementationOf().

JavaClass [] Repository::getSuperClasses String   class_name [inline, static]
 

Returns:
list of super classes of clazz in ascending order, i.e., Object is always the last element

Definition at line 108 of file src/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getSuperClasses JavaClass   clazz [inline, static]
 

Returns:
list of super classes of clazz in ascending order, i.e., Object is always the last element

Definition at line 96 of file src/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getSuperClasses String   class_name [inline, static]
 

Returns:
list of super classes of clazz in ascending order, i.e. Object is always the last element

Definition at line 107 of file lib/jpf/de/fub/bytecode/Repository.java.

JavaClass [] Repository::getSuperClasses JavaClass   clazz [inline, static]
 

Returns:
list of super classes of clazz in ascending order, i.e. Object is always the last element

Definition at line 95 of file lib/jpf/de/fub/bytecode/Repository.java.

Referenced by getSuperClasses(), and instanceOf().

boolean Repository::implementationOf String   clazz,
String   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 141 of file src/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf String   clazz,
JavaClass   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 135 of file src/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf JavaClass   clazz,
String   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 129 of file src/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf JavaClass   clazz,
JavaClass   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 114 of file src/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf String   clazz,
String   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 140 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf String   clazz,
JavaClass   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 134 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf JavaClass   clazz,
String   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 128 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::implementationOf JavaClass   clazz,
JavaClass   inter
[inline, static]
 

Returns:
true, if clazz is an implementation of interface inter

Definition at line 113 of file lib/jpf/de/fub/bytecode/Repository.java.

Referenced by implementationOf(), and instanceOf().

boolean Repository::instanceOf String   clazz,
String   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 177 of file src/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf String   clazz,
JavaClass   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 171 of file src/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf JavaClass   clazz,
String   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 165 of file src/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf JavaClass   clazz,
JavaClass   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 147 of file src/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf String   clazz,
String   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 176 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf String   clazz,
JavaClass   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 170 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf JavaClass   clazz,
String   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 164 of file lib/jpf/de/fub/bytecode/Repository.java.

boolean Repository::instanceOf JavaClass   clazz,
JavaClass   super_class
[inline, static]
 

Returns:
true, if clazz is an instance of super_class

Definition at line 146 of file lib/jpf/de/fub/bytecode/Repository.java.

Referenced by instanceOf().

JavaClass Repository::lookupClass String   class_name [inline, static]
 

Returns:
class object for given fully qualified class name.

Definition at line 182 of file src/de/fub/bytecode/Repository.java.

JavaClass Repository::lookupClass String   class_name [inline, static]
 

Returns:
class object for given class name.

Definition at line 181 of file lib/jpf/de/fub/bytecode/Repository.java.

Referenced by clearCache(), getInterfaces(), getSuperClasses(), implementationOf(), and instanceOf().

ClassPath ClassFile Repository::lookupClassFile String   class_name [inline, static]
 

Returns:
class file object for given Java class.

Definition at line 203 of file src/de/fub/bytecode/Repository.java.

ClassPath ClassFile Repository::lookupClassFile String   class_name [inline, static]
 

Returns:
class file object for given Java class.

Definition at line 197 of file lib/jpf/de/fub/bytecode/Repository.java.

void Repository::removeClass String   clazz [inline, static]
 

Remove class with given (fully qualifid) name from repository.

Definition at line 217 of file src/de/fub/bytecode/Repository.java.

void Repository::removeClass JavaClass   clazz [inline, static]
 

Remove given class from repository.

Definition at line 211 of file src/de/fub/bytecode/Repository.java.


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:21:09 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001