public class RhinoASTToFlowgraph extends Object
| Constructor and Description |
|---|
RhinoASTToFlowgraph()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildFromFiles(List<String> files)
Builds a flow graph for a list of source files.
|
void |
buildFromSources(List<HtmlSource> elements,
List<JavaScriptSource> newEventHandlers,
List<JavaScriptSource> sources)
Builds a flow graph for a list of sources gathered from an HTML file.
|
FlowGraph |
close()
Finishes the flow graph being constructed by this builder and returns the
flow graph.
|
FlowGraphFragment |
extendFlowgraph(FlowGraph fg,
String sourceString,
String normalizedSourceString,
CallNode n,
FlowGraphFragment previousExt,
String varName)
Dynamically adds a piece of code to the flow graph at the call node n and returns the entry block for the code.
|
int |
extendFlowgraphWithCallAtNode(FlowGraph fg,
AbstractNode n,
int baseReg)
Dynamically splits a basic block above node n and inserts the code.
|
FlowGraphFragment |
extendFlowGraphWithEventHandler(FlowGraph fg,
String sourceString,
FlowGraphFragment previousExt,
LoadNode n)
Dynamically adds a piece of code to the flow graph at the call node n and returns the entry block for the code.
|
public RhinoASTToFlowgraph()
public void buildFromFiles(List<String> files)
IOExceptionpublic void buildFromSources(List<HtmlSource> elements, List<JavaScriptSource> newEventHandlers, List<JavaScriptSource> sources)
public FlowGraph close()
public FlowGraphFragment extendFlowgraph(FlowGraph fg, String sourceString, String normalizedSourceString, CallNode n, FlowGraphFragment previousExt, String varName)
public int extendFlowgraphWithCallAtNode(FlowGraph fg, AbstractNode n, int baseReg)
public FlowGraphFragment extendFlowGraphWithEventHandler(FlowGraph fg, String sourceString, FlowGraphFragment previousExt, LoadNode n)
Copyright © 2012 Aarhus University