soot.util
Class SourceLocator

java.lang.Object
  |
  +--soot.util.SourceLocator

public class SourceLocator
extends java.lang.Object

Provides utility methods to retrieve an input stream for a class name, given a classfile, or jimple or baf output files.


Constructor Summary
SourceLocator(Singletons.Global g)
           
 
Method Summary
 java.util.Set classesInDynamicPackage(java.lang.String str)
           
 java.util.List getClassesUnder(java.lang.String aPath)
           
 java.lang.String getExtensionFor(int rep)
           
 java.lang.String getFileNameFor(SootClass c, int rep)
           
 java.io.InputStream getInputStreamOf(java.lang.String className)
          Given a class name, uses the default soot-class-path to return an input stream for the given class.
 java.io.InputStream getInputStreamOf(java.lang.String classPath, java.lang.String className)
          Given a class name and class-path, returns an input stream for the given class.
 java.lang.String getOutputDir()
           
static SourceLocator v()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceLocator

public SourceLocator(Singletons.Global g)
Method Detail

v

public static SourceLocator v()

getInputStreamOf

public java.io.InputStream getInputStreamOf(java.lang.String className)
                                     throws java.lang.ClassNotFoundException
Given a class name, uses the default soot-class-path to return an input stream for the given class.

getInputStreamOf

public java.io.InputStream getInputStreamOf(java.lang.String classPath,
                                            java.lang.String className)
                                     throws java.lang.ClassNotFoundException
Given a class name and class-path, returns an input stream for the given class.

getClassesUnder

public java.util.List getClassesUnder(java.lang.String aPath)

getFileNameFor

public java.lang.String getFileNameFor(SootClass c,
                                       int rep)

classesInDynamicPackage

public java.util.Set classesInDynamicPackage(java.lang.String str)

getExtensionFor

public java.lang.String getExtensionFor(int rep)

getOutputDir

public java.lang.String getOutputDir()