|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoot.SourceLocator
Provides utility methods to retrieve an input stream for a class name, given a classfile, or jimple or baf output files.
Nested Class Summary | |
static class |
SourceLocator.FoundFile
|
Constructor Summary | |
SourceLocator(soot.Singletons.Global g)
|
Method Summary | |
void |
addToSourceToClassMap(String key,
String val)
|
Set |
classesInDynamicPackage(String str)
|
List |
classPath()
|
protected List |
explodeClassPath(String classPath)
Explodes a class path into a list of individual class path entries. |
List |
getClassesUnder(String aPath)
|
ClassSource |
getClassSource(String className)
Given a class name, uses the soot-class-path to return a ClassSource for the given class. |
String |
getExtensionFor(int rep)
|
String |
getFileNameFor(SootClass c,
int rep)
|
String |
getOutputDir()
|
String |
getSourceForClass(String className)
Returns the name of the class in which the (possibly inner) class className appears. |
HashMap |
getSourceToClassMap()
|
void |
invalidateClassPath()
|
SourceLocator.FoundFile |
lookupInClassPath(String fileName)
Searches for a file with the given name in the exploded classPath. |
void |
setClassProviders(List classProviders)
|
void |
setSourceToClassMap(HashMap map)
|
List |
sourcePath()
|
static SourceLocator |
v()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SourceLocator(soot.Singletons.Global g)
Method Detail |
public static SourceLocator v()
public ClassSource getClassSource(String className)
public void setClassProviders(List classProviders)
public List classPath()
public void invalidateClassPath()
public List sourcePath()
public List getClassesUnder(String aPath)
public String getFileNameFor(SootClass c, int rep)
public Set classesInDynamicPackage(String str)
public String getExtensionFor(int rep)
public String getOutputDir()
protected List explodeClassPath(String classPath)
public SourceLocator.FoundFile lookupInClassPath(String fileName)
public HashMap getSourceToClassMap()
public void setSourceToClassMap(HashMap map)
public void addToSourceToClassMap(String key, String val)
public String getSourceForClass(String className)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |