Class DomLessSourceExtractor
java.lang.Object
com.ibm.wala.cast.js.html.JSSourceExtractor
com.ibm.wala.cast.js.html.DomLessSourceExtractor
- Direct Known Subclasses:
DefaultSourceExtractor
extracts JavaScript source code from HTML, with no model of the actual DOM data structure
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected static interface
-
Field Summary
Fields inherited from class com.ibm.wala.cast.js.html.JSSourceExtractor
DELETE_UPON_EXIT, USE_TEMP_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateHtmlCallback
(URL entrypointUrl, IUrlResolver urlResolver) extractSources
(URL entrypointUrl, IHtmlParser htmlParser, IUrlResolver urlResolver, Reader inputStreamReader) Returns the temporary file created by a call toJSSourceExtractor.extractSources(URL, IHtmlParser, IUrlResolver, Reader)
which holds all the discovered JS source.static void
Methods inherited from class com.ibm.wala.cast.js.html.JSSourceExtractor
extractSources
-
Field Details
-
factory
-
OUTPUT_FILE_DIRECTORY
-
-
Constructor Details
-
DomLessSourceExtractor
public DomLessSourceExtractor()
-
-
Method Details
-
extractSources
public Set<MappedSourceModule> extractSources(URL entrypointUrl, IHtmlParser htmlParser, IUrlResolver urlResolver, Reader inputStreamReader) throws IOException, TranslatorToCAst.Error - Specified by:
extractSources
in classJSSourceExtractor
- Throws:
IOException
TranslatorToCAst.Error
-
createHtmlCallback
protected DomLessSourceExtractor.IGeneratorCallback createHtmlCallback(URL entrypointUrl, IUrlResolver urlResolver) -
main
- Throws:
IOException
TranslatorToCAst.Error
-
getTempFile
Description copied from class:JSSourceExtractor
Returns the temporary file created by a call toJSSourceExtractor.extractSources(URL, IHtmlParser, IUrlResolver, Reader)
which holds all the discovered JS source. If no such file exists, returnsnull
- Specified by:
getTempFile
in classJSSourceExtractor
-