|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.analysis.XMLAnalysis
public class XMLAnalysis
Program analysis for XACT.
XMLAnalysis
can safely be run in parallel.
However, because Soot does not support separate instances of itself running,
the initial phase will lock soot.G.class to prevent interference.
The remaining phases will run concurrently with other analyses.
setTaskRunner(XactTaskRunner)
or setExecutorService(ExecutorService)
. The analysis will be single-threaded
if neither method is called before starting the analysis.
Constructor Summary | |
---|---|
XMLAnalysis(String soot_classpath,
List<String> classes)
Initializes XACT program analysis for the given classes. |
Method Summary | |
---|---|
void |
analyze()
Runs the analysis. |
void |
analyzeXMLGraphs(FlowGraph g,
XMLGraphBuilder b)
Analyzes the XML graphs. |
TranslationResult |
buildFlowGraph()
Builds the flow graph and finds schema URLs. |
XMLGraphBuilder |
buildXMLGraphs(FlowGraph g)
Builds the XML graphs. |
(package private) static void |
endPhase()
Marks the end of a phase. |
List<ErrorReport> |
getErrors()
|
void |
loadClasses()
Loads the class files. |
void |
printMessages()
|
void |
printMessages(PrintStream out)
|
void |
printMessages(PrintWriter out)
|
void |
releaseSoot()
Resets Soot. |
void |
setConfiguration(Configuration config)
Sets the Configuration object to be used in the analysis. |
void |
setDiagnostics(Diagnostics diag)
Sets the Diagnostics object to receive event notifications. |
void |
setExecutorService(ExecutorService executor)
Sets an ExecutorService used to perform parallelizable tasks. |
void |
setTaskRunner(XactTaskRunner tasks)
Sets the XactTaskRunner used to perform parallelizable tasks. |
(package private) static void |
startPhase(String msg)
Marks the start of a phase. |
void |
transformFlowGraph(FlowGraph g)
Performs various transformations of the given flow graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLAnalysis(String soot_classpath, List<String> classes)
soot_classpath
- the class path for the classes to be analyzed
(if null, just use the normal class path)classes
- names of the classes to be analyzedMethod Detail |
---|
public void analyze()
public void analyzeXMLGraphs(FlowGraph g, XMLGraphBuilder b)
public TranslationResult buildFlowGraph()
public XMLGraphBuilder buildXMLGraphs(FlowGraph g)
static void endPhase()
public List<ErrorReport> getErrors()
public void loadClasses()
public void printMessages()
public void printMessages(PrintStream out)
public void printMessages(PrintWriter out)
public void releaseSoot()
public void setConfiguration(Configuration config)
Configuration
object to be used in the analysis.
public void setDiagnostics(Diagnostics diag)
Diagnostics
object to receive event notifications.
public void setExecutorService(ExecutorService executor)
ExecutorService
used to perform parallelizable tasks.
This is equivalent to
setTaskRunner(new ExecutorTaskRunner(executor));
executor
- an executor serviceExecutors
,
setTaskRunner(XactTaskRunner)
public void setTaskRunner(XactTaskRunner tasks)
XactTaskRunner
used to perform parallelizable tasks.
tasks
- the tasks runnersetExecutorService(ExecutorService)
static void startPhase(String msg)
public void transformFlowGraph(FlowGraph g)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |