Package com.ibm.wala.cast.js.html
Class DomLessSourceExtractor
- java.lang.Object
-
- com.ibm.wala.cast.js.html.JSSourceExtractor
-
- com.ibm.wala.cast.js.html.DomLessSourceExtractor
-
- Direct Known Subclasses:
DefaultSourceExtractor
public class DomLessSourceExtractor extends JSSourceExtractor
extracts JavaScript source code from HTML, with no model of the actual DOM data structure
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDomLessSourceExtractor.HtmlCallbackprotected static interfaceDomLessSourceExtractor.IGeneratorCallback
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Supplier<JSSourceExtractor>factorystatic java.nio.file.PathOUTPUT_FILE_DIRECTORY-
Fields inherited from class com.ibm.wala.cast.js.html.JSSourceExtractor
DELETE_UPON_EXIT, USE_TEMP_NAME
-
-
Constructor Summary
Constructors Constructor Description DomLessSourceExtractor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DomLessSourceExtractor.IGeneratorCallbackcreateHtmlCallback(java.net.URL entrypointUrl, IUrlResolver urlResolver)java.util.Set<MappedSourceModule>extractSources(java.net.URL entrypointUrl, IHtmlParser htmlParser, IUrlResolver urlResolver, java.io.Reader inputStreamReader)java.io.FilegetTempFile()Returns the temporary file created by a call toJSSourceExtractor.extractSources(URL, IHtmlParser, IUrlResolver, Reader)which holds all the discovered JS source.static voidmain(java.lang.String[] args)-
Methods inherited from class com.ibm.wala.cast.js.html.JSSourceExtractor
extractSources
-
-
-
-
Field Detail
-
factory
public static java.util.function.Supplier<JSSourceExtractor> factory
-
OUTPUT_FILE_DIRECTORY
public static java.nio.file.Path OUTPUT_FILE_DIRECTORY
-
-
Method Detail
-
extractSources
public java.util.Set<MappedSourceModule> extractSources(java.net.URL entrypointUrl, IHtmlParser htmlParser, IUrlResolver urlResolver, java.io.Reader inputStreamReader) throws java.io.IOException, com.ibm.wala.cast.ir.translator.TranslatorToCAst.Error
- Specified by:
extractSourcesin classJSSourceExtractor- Throws:
java.io.IOExceptioncom.ibm.wala.cast.ir.translator.TranslatorToCAst.Error
-
createHtmlCallback
protected DomLessSourceExtractor.IGeneratorCallback createHtmlCallback(java.net.URL entrypointUrl, IUrlResolver urlResolver)
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, com.ibm.wala.cast.ir.translator.TranslatorToCAst.Error- Throws:
java.io.IOExceptioncom.ibm.wala.cast.ir.translator.TranslatorToCAst.Error
-
getTempFile
public java.io.File getTempFile()
Description copied from class:JSSourceExtractorReturns 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:
getTempFilein classJSSourceExtractor
-
-