Method Summary |
|
public synchronized boolean | contains(String fullClassName) Tests if a class is contained in the database.
Parameters: fullClassName - a fully-qualified class name. |
public synchronized ClassInfo | get(String fullClassName) Gets information about a class, given a class name.
Parameters: fullClassName - a fully-qualified class name. |
public synchronized Set | getAllClassNames(String argExclusionRE) Returns a set of all class names in this table except classes whose full
names match the given regexp. |
public synchronized List | getAllClassesInPackage(String argPackage) Returns a list of all classes in the given package. |
public ClassInfo | getAndLazyLoad(String argFullClassName) Attempts to get the ClassInfo object for the given class name. |
public synchronized List | getClassesInPackage(String packageName) Gets a list of all known classes in a package.
Parameters: packageName - the name of the package, using the java . |
public static synchronized ClassTable | getExistingInstance(ClassPathSrc argSource) |
public static synchronized ClassTable | getInstance(ClassPathSrc argSource) Gets a static instance of a ClassTable that can be shared by
everyone with the same key. |
public static ClassTable | getInstance() Gets a static instance of a ClassTable using the default
key. |
public synchronized List | getPackages() Gets a list of all packages in the database.
a sorted List of Strings , where eachString is a name of a package in the database. |
public ClassTable | getParent() Gets the parent ClassTable , which is be queried for classes
that are not recognized by this ClassTable . |
public boolean | isAccessAllowed(ClassInfo in, MemberInfo target, boolean requireStatic, boolean defaultAnswer) |
public boolean | isAssignableTo(String fromClass, String toClass, boolean defaultAnswer) |
public static void | main(String[] args) |
static void | oldTest() |
public synchronized void | preLoad(List argListCNCClassInfos) Loads ClassInfo entry information out of a ClassNameCache
. |
static void | printAll() |
public synchronized void | put(ClassInfo classInfo) Enters class information into the database.
Parameters: classInfo - a ClassInfo object that information abouta class to be put in the database. |
public synchronized void | reinit(ClassPathSrc argSource) |
public synchronized ClassInfo | remove(String fullClassName) Removes a class from the database.
Parameters: fullClassName - a fully-qualified class name. |
public static synchronized ClassTable | removeInstance(ClassPathSrc argSource) |
public synchronized void | setParent(ClassTable parent) Sets the parent ClassTable , which will be queried for
classes that are not recognized by this ClassTable . |
public synchronized int | size() Gets the size of the database. |