public abstract class CAstAbstractLoader extends Object implements IClassLoader
| Modifier and Type | Field and Description |
|---|---|
protected IClassHierarchy |
cha |
protected IClassLoader |
parent |
protected Map<TypeName,IClass> |
types
types loaded by this
|
| Constructor and Description |
|---|
CAstAbstractLoader(IClassHierarchy cha) |
CAstAbstractLoader(IClassHierarchy cha,
IClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(ModuleEntry module,
Set<Warning> message) |
void |
addMessage(ModuleEntry module,
Warning message) |
void |
clearMessages() |
Set<Warning> |
getMessages(ModuleEntry m) |
Iterator<ModuleEntry> |
getModulesWithParseErrors() |
Iterator<ModuleEntry> |
getModulesWithWarnings() |
Atom |
getName() |
int |
getNumberOfClasses() |
int |
getNumberOfMethods() |
IClassLoader |
getParent() |
Reader |
getSource(IClass klass) |
Reader |
getSource(IMethod method,
int bcOffset) |
String |
getSourceFileName(IClass klass) |
String |
getSourceFileName(IMethod method,
int bcOffset) |
Iterator<IClass> |
iterateAllClasses() |
IClass |
lookupClass(String className,
IClassHierarchy cha) |
IClass |
lookupClass(TypeName className)
Find and return the IClass defined by this class loader that corresponds to the given class name.
|
void |
removeAll(Collection<IClass> toRemove)
blow away references to any classes in the set
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstructionFactory, getLanguage, getReference, initprotected final IClassHierarchy cha
protected final IClassLoader parent
public CAstAbstractLoader(IClassHierarchy cha, IClassLoader parent)
public CAstAbstractLoader(IClassHierarchy cha)
public void addMessage(ModuleEntry module, Set<Warning> message)
public void addMessage(ModuleEntry module, Warning message)
public Iterator<ModuleEntry> getModulesWithParseErrors()
public Iterator<ModuleEntry> getModulesWithWarnings()
public Set<Warning> getMessages(ModuleEntry m)
public void clearMessages()
public IClass lookupClass(String className, IClassHierarchy cha)
public IClass lookupClass(TypeName className)
IClassLoaderlookupClass in interface IClassLoaderclassName - name of the classpublic Iterator<IClass> iterateAllClasses()
iterateAllClasses in interface IClassLoaderpublic int getNumberOfClasses()
getNumberOfClasses in interface IClassLoaderpublic Atom getName()
getName in interface IClassLoaderpublic int getNumberOfMethods()
getNumberOfMethods in interface IClassLoaderpublic String getSourceFileName(IMethod method, int bcOffset)
getSourceFileName in interface IClassLoadermethod - The method for which information is desiredbcOffset - an offset into the bytecode of the given method.public String getSourceFileName(IClass klass)
getSourceFileName in interface IClassLoaderklass - the class for which information is desired.public Reader getSource(IClass klass)
getSource in interface IClassLoaderpublic Reader getSource(IMethod method, int bcOffset)
getSource in interface IClassLoadermethod - The method for which information is desiredbcOffset - an offset into the bytecode of the given method.public IClassLoader getParent()
getParent in interface IClassLoaderpublic void removeAll(Collection<IClass> toRemove)
IClassLoaderremoveAll in interface IClassLoadertoRemove - Collection