public class BypassSyntheticClassLoader extends Object implements IClassLoader
| Constructor and Description |
|---|
BypassSyntheticClassLoader(ClassLoaderReference me,
IClassLoader parent,
com.ibm.wala.util.config.SetOfClasses exclusions,
IClassHierarchy cha)
Don't change my signature! ClassLoaderFactoryImpl calls me by reflection! yuck.
|
| Modifier and Type | Method and Description |
|---|---|
SSAInstructionFactory |
getInstructionFactory() |
Language |
getLanguage() |
Atom |
getName() |
int |
getNumberOfClasses() |
int |
getNumberOfMethods() |
IClassLoader |
getParent() |
ClassLoaderReference |
getReference()
Return the ClassLoaderReference for this class loader.
|
Reader |
getSource(IClass klass) |
Reader |
getSource(IMethod method,
int offset) |
String |
getSourceFileName(IClass klass) |
String |
getSourceFileName(IMethod method,
int offset) |
void |
init(List<Module> modules)
Initialize internal data structures.
|
Iterator<IClass> |
iterateAllClasses() |
IClass |
lookupClass(TypeName className)
Find and return the IClass defined by this class loader that corresponds to the given class name.
|
void |
registerClass(TypeName className,
IClass theClass)
Register the existence of a new synthetic class
|
void |
removeAll(Collection<IClass> toRemove)
blow away references to any classes in the set
|
String |
toString() |
public BypassSyntheticClassLoader(ClassLoaderReference me, IClassLoader parent, com.ibm.wala.util.config.SetOfClasses exclusions, IClassHierarchy cha)
me - the name of this class loaderparent - its parentexclusions - classes to ignorecha - governing class hierarchypublic IClass lookupClass(TypeName className)
IClassLoaderlookupClass in interface IClassLoaderclassName - name of the classpublic void registerClass(TypeName className, IClass theClass)
public ClassLoaderReference getReference()
getReference in interface IClassLoaderpublic Iterator<IClass> iterateAllClasses()
iterateAllClasses in interface IClassLoaderpublic int getNumberOfClasses()
getNumberOfClasses in interface IClassLoaderpublic Atom getName()
getName in interface IClassLoaderpublic Language getLanguage()
getLanguage in interface IClassLoaderpublic int getNumberOfMethods()
getNumberOfMethods in interface IClassLoaderpublic String getSourceFileName(IClass klass)
getSourceFileName in interface IClassLoaderklass - the class for which information is desired.public IClassLoader getParent()
getParent in interface IClassLoaderIClassLoader.getParent()public void init(List<Module> modules) throws IOException
IClassLoaderinit in interface IClassLoaderIOExceptionpublic void removeAll(Collection<IClass> toRemove)
IClassLoaderremoveAll in interface IClassLoadertoRemove - Collectionpublic Reader getSource(IClass klass)
getSource in interface IClassLoaderpublic SSAInstructionFactory getInstructionFactory()
getInstructionFactory in interface IClassLoaderpublic Reader getSource(IMethod method, int offset)
getSource in interface IClassLoadermethod - The method for which information is desiredoffset - an offset into the bytecode of the given method.public String getSourceFileName(IMethod method, int offset)
getSourceFileName in interface IClassLoadermethod - The method for which information is desiredoffset - an offset into the bytecode of the given method.Copyright © 2015. All rights reserved.