protected static class DomLessSourceExtractor.HtmlCallback extends Object implements DomLessSourceExtractor.IGeneratorCallback
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
protected SourceRegion |
domRegion |
protected SourceRegion |
entrypointRegion |
protected URL |
entrypointUrl |
protected SourceRegion |
scriptRegion |
protected IUrlResolver |
urlResolver |
| Constructor and Description |
|---|
DomLessSourceExtractor.HtmlCallback(URL entrypointUrl,
IUrlResolver urlResolver) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultHandlerInvocations() |
protected String |
getScriptName(URL url) |
protected void |
handleDOM(ITag tag)
Model the HTML DOM
|
protected void |
handleDOM(ITag tag,
String funcName) |
void |
handleEndTag(ITag tag) |
protected void |
handleScript(ITag tag) |
void |
handleStartTag(ITag tag) |
void |
handleText(com.ibm.wala.cast.tree.CAstSourcePositionMap.Position p,
String text) |
protected com.ibm.wala.cast.tree.CAstSourcePositionMap.Position |
makePos(int lineNumber,
ITag governingTag) |
protected com.ibm.wala.cast.tree.CAstSourcePositionMap.Position |
makePos(URL url,
int lineNumber,
ITag governingTag) |
protected static com.ibm.wala.util.collections.Pair<String,Character> |
quotify(String value) |
protected void |
writeEntrypoint(String ep) |
protected void |
writeEntrypoint(String text,
com.ibm.wala.cast.tree.CAstSourcePositionMap.Position pos,
URL url,
boolean b) |
protected void |
writeEventLoopHeader(SourceRegion finalRegion) |
void |
writeToFinalRegion(SourceRegion finalRegion) |
public static final boolean DEBUG
protected final URL entrypointUrl
protected final IUrlResolver urlResolver
protected final SourceRegion scriptRegion
protected final SourceRegion domRegion
protected final SourceRegion entrypointRegion
public DomLessSourceExtractor.HtmlCallback(URL entrypointUrl, IUrlResolver urlResolver)
protected void writeEntrypoint(String ep)
protected void addDefaultHandlerInvocations()
protected com.ibm.wala.cast.tree.CAstSourcePositionMap.Position makePos(int lineNumber,
ITag governingTag)
protected com.ibm.wala.cast.tree.CAstSourcePositionMap.Position makePos(URL url, int lineNumber, ITag governingTag)
public void handleEndTag(ITag tag)
handleEndTag in interface IHtmlCallbackpublic void handleText(com.ibm.wala.cast.tree.CAstSourcePositionMap.Position p,
String text)
handleText in interface IHtmlCallbackpublic void handleStartTag(ITag tag)
handleStartTag in interface IHtmlCallbackprotected void handleDOM(ITag tag)
tag - - the HTML tag to moduleprotected void writeEntrypoint(String text, com.ibm.wala.cast.tree.CAstSourcePositionMap.Position pos, URL url, boolean b)
protected void handleScript(ITag tag)
protected String getScriptName(URL url) throws MalformedURLException
MalformedURLExceptionprotected void writeEventLoopHeader(SourceRegion finalRegion)
public void writeToFinalRegion(SourceRegion finalRegion)
writeToFinalRegion in interface DomLessSourceExtractor.IGeneratorCallbackCopyright © 2017. All rights reserved.