|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoot.SourceLocator
public class 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(Singletons.Global g)
|
Method Summary | |
---|---|
void |
addToSourceToClassMap(String key,
String val)
|
Set<String> |
classesInDynamicPackage(String str)
|
List<String> |
classPath()
|
protected List<String> |
explodeClassPath(String classPath)
Explodes a class path into a list of individual class path entries. |
List<String> |
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<String,String> |
getSourceToClassMap()
|
void |
invalidateClassPath()
|
SourceLocator.FoundFile |
lookupInClassPath(String fileName)
Searches for a file with the given name in the exploded classPath. |
void |
setClassProviders(List<ClassProvider> classProviders)
|
void |
setSourceToClassMap(HashMap<String,String> map)
|
List<String> |
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(Singletons.Global g)
Method Detail |
---|
public static SourceLocator v()
public ClassSource getClassSource(String className)
public void setClassProviders(List<ClassProvider> classProviders)
public List<String> classPath()
public void invalidateClassPath()
public List<String> sourcePath()
public List<String> getClassesUnder(String aPath)
public String getFileNameFor(SootClass c, int rep)
public Set<String> classesInDynamicPackage(String str)
public String getExtensionFor(int rep)
public String getOutputDir()
protected List<String> explodeClassPath(String classPath)
public SourceLocator.FoundFile lookupInClassPath(String fileName)
public HashMap<String,String> getSourceToClassMap()
public void setSourceToClassMap(HashMap<String,String> 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 |