edu.rice.cs.dynamicjava.symbol
Class JavaLibrary

java.lang.Object
  extended by edu.rice.cs.dynamicjava.symbol.JavaLibrary
All Implemented Interfaces:
Library

public class JavaLibrary
extends Object
implements Library


Constructor Summary
JavaLibrary(ClassLoader loader)
           
 
Method Summary
 ClassLoader classLoader()
          Get a class loader for loading the classes in the library.
 Iterable<DJClass> declaredClasses(String fullName)
          Get any top-level classes with the given fully-qualified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaLibrary

public JavaLibrary(ClassLoader loader)
Method Detail

declaredClasses

public Iterable<DJClass> declaredClasses(String fullName)
Description copied from interface: Library
Get any top-level classes with the given fully-qualified name. Typically, there should be exactly one result. If the class is not defined, returns an empty list. If multiple classes have the given name, returns all of them.

Specified by:
declaredClasses in interface Library

classLoader

public ClassLoader classLoader()
Description copied from interface: Library
Get a class loader for loading the classes in the library.

Specified by:
classLoader in interface Library