Package com.ibm.wala.cast.js.html
Class DomLessSourceExtractor.HtmlCallback
- java.lang.Object
-
- com.ibm.wala.cast.js.html.DomLessSourceExtractor.HtmlCallback
-
- All Implemented Interfaces:
DomLessSourceExtractor.IGeneratorCallback,IHtmlCallback
- Direct Known Subclasses:
DefaultSourceExtractor.HtmlCallBack
- Enclosing class:
- DomLessSourceExtractor
protected static class DomLessSourceExtractor.HtmlCallback extends java.lang.Object implements DomLessSourceExtractor.IGeneratorCallback
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEBUGprotected SourceRegiondomRegionprotected SourceRegionentrypointRegionprotected java.net.URLentrypointUrlprotected SourceRegionscriptRegionprotected IUrlResolverurlResolver
-
Constructor Summary
Constructors Constructor Description HtmlCallback(java.net.URL entrypointUrl, IUrlResolver urlResolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDefaultHandlerInvocations()protected java.lang.StringgetScriptName(java.net.URL url)protected voidhandleDOM(ITag tag)Model the HTML DOMprotected voidhandleDOM(ITag tag, java.lang.String funcName)voidhandleEndTag(ITag tag)protected voidhandleScript(ITag tag)voidhandleStartTag(ITag tag)voidhandleText(com.ibm.wala.cast.tree.CAstSourcePositionMap.Position p, java.lang.String text)protected com.ibm.wala.cast.tree.CAstSourcePositionMap.PositionmakePos(ITag governingTag)protected static com.ibm.wala.util.collections.Pair<java.lang.String,java.lang.Character>quotify(java.lang.String value)protected voidwriteEntrypoint(java.lang.String ep)protected voidwriteEntrypoint(java.lang.String text, com.ibm.wala.cast.tree.CAstSourcePositionMap.Position pos, java.net.URL url, boolean b)protected voidwriteEventLoopHeader(SourceRegion finalRegion)voidwriteToFinalRegion(SourceRegion finalRegion)
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
entrypointUrl
protected final java.net.URL entrypointUrl
-
urlResolver
protected final IUrlResolver urlResolver
-
scriptRegion
protected final SourceRegion scriptRegion
-
domRegion
protected final SourceRegion domRegion
-
entrypointRegion
protected final SourceRegion entrypointRegion
-
-
Constructor Detail
-
HtmlCallback
public HtmlCallback(java.net.URL entrypointUrl, IUrlResolver urlResolver)
-
-
Method Detail
-
writeEntrypoint
protected void writeEntrypoint(java.lang.String ep)
-
addDefaultHandlerInvocations
protected void addDefaultHandlerInvocations()
-
makePos
protected com.ibm.wala.cast.tree.CAstSourcePositionMap.Position makePos(ITag governingTag)
-
handleEndTag
public void handleEndTag(ITag tag)
- Specified by:
handleEndTagin interfaceIHtmlCallback
-
handleText
public void handleText(com.ibm.wala.cast.tree.CAstSourcePositionMap.Position p, java.lang.String text)- Specified by:
handleTextin interfaceIHtmlCallback
-
handleStartTag
public void handleStartTag(ITag tag)
- Specified by:
handleStartTagin interfaceIHtmlCallback
-
handleDOM
protected void handleDOM(ITag tag)
Model the HTML DOM- Parameters:
tag- - the HTML tag to module
-
handleDOM
protected void handleDOM(ITag tag, java.lang.String funcName)
-
writeEntrypoint
protected void writeEntrypoint(java.lang.String text, com.ibm.wala.cast.tree.CAstSourcePositionMap.Position pos, java.net.URL url, boolean b)
-
quotify
protected static com.ibm.wala.util.collections.Pair<java.lang.String,java.lang.Character> quotify(java.lang.String value)
-
handleScript
protected void handleScript(ITag tag)
-
getScriptName
protected java.lang.String getScriptName(java.net.URL url)
-
writeEventLoopHeader
protected void writeEventLoopHeader(SourceRegion finalRegion)
-
writeToFinalRegion
public void writeToFinalRegion(SourceRegion finalRegion)
- Specified by:
writeToFinalRegionin interfaceDomLessSourceExtractor.IGeneratorCallback
-
-