com.ibm.wala.cast.js.ipa.callgraph
Class Util
java.lang.Object
com.ibm.wala.cast.ipa.callgraph.Util
com.ibm.wala.cast.js.ipa.callgraph.Util
- Direct Known Subclasses:
- Util
public class Util
- extends Util
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translatorFactory
protected static JavaScriptTranslatorFactory translatorFactory
- the translator factory to be used for analysis TODO: pass the factory where
needed instead of using a global?
Util
public Util()
setTranslatorFactory
public static void setTranslatorFactory(JavaScriptTranslatorFactory translatorFactory)
- Set up the translator factory. This method should be called before invoking
makeLoaders().
getTranslatorFactory
public static JavaScriptTranslatorFactory getTranslatorFactory()
makeOptions
public static AnalysisOptions makeOptions(AnalysisScope scope,
IClassHierarchy cha,
java.lang.Iterable<Entrypoint> roots)
makeLoaders
public static JavaScriptLoaderFactory makeLoaders()
makeHierarchy
public static IClassHierarchy makeHierarchy(AnalysisScope scope,
ClassLoaderFactory loaders)
throws ClassHierarchyException
- Throws:
ClassHierarchyException
makeScriptRoots
public static java.lang.Iterable<Entrypoint> makeScriptRoots(IClassHierarchy cha)
getNodes
public static java.util.Collection getNodes(CallGraph CG,
java.lang.String funName)
loadAdditionalFile
public static java.util.Set<java.lang.String> loadAdditionalFile(IClassHierarchy cha,
JavaScriptLoader cl,
java.lang.String fileName,
java.net.URL url,
java.lang.String file)
throws java.io.IOException
- Parameters:
cha - cl - fileName - url - file -
- Returns:
- The set of class names that where defined in the CHA as a result
loading process.
- Throws:
java.io.IOException