Java Doc for CFGToDotGraph.java in  » Code-Analyzer » soot » soot » util » cfgcmd » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Code Analyzer » soot » soot.util.cfgcmd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   soot.util.cfgcmd.CFGToDotGraph

CFGToDotGraph
public class CFGToDotGraph (Code)
Class that creates a DotGraph visualization of a control flow graph.



Constructor Summary
public  CFGToDotGraph()
    

Returns a CFGToDotGraph converter which will draw the graph as a single arbitrarily-sized page, with full-length node labels.

If asked to draw a ExceptionalGraph, the converter will identify the exceptions that will be thrown.


Method Summary
public  DotGraphdrawCFG(DirectedGraph graph, Body body)
     Create a DotGraph whose nodes and edges depict a control flow graph without distinguished exceptional edges.
Parameters:
  graph - a DirectedGraph representing a CFG(probably an instance of UnitGraph, BlockGraph,or one of their subclasses).
Parameters:
  body - the Body represented by graph (usedto format the text within nodes).
public  DotGraphdrawCFG(ExceptionalGraph graph)
     Create a DotGraph whose nodes and edges depict the control flow in a ExceptionalGraph, with distinguished edges for exceptional control flow.
public  voidsetBriefLabels(boolean useBrief)
     Specify whether to abbreviate the text in node labels.
public  voidsetExceptionEdgeAttr(String id, String value)
     Specify the dot graph attribute to use for edges depicting the exceptions each node may throw, and their handlers.
public  voidsetExceptionalControlFlowAttr(String id, String value)
     Specify the dot graph attribute to use for exceptional control flow edges.
public  voidsetHeadAttr(String id, String value)
     Specify the dot graph attribute to use for head nodes (in addition to filling in the nodes).
public  voidsetOnePage(boolean onePage)
     Specify whether to split the graph into pages.
public  voidsetShowExceptions(boolean showExceptions)
     Specify whether the graph should depict the exceptions which each node may throw, in the form of an edge from the throwing node to the handler (if any), labeled with the possible exception types.
public  voidsetTailAttr(String id, String value)
     Specify the dot graph attribute to use for tail nodes (in addition to filling in the nodes).
public  voidsetUnexceptionalControlFlowAttr(String id, String value)
     Specify the dot graph attribute to use for regular control flow edges.


Constructor Detail
CFGToDotGraph
public CFGToDotGraph()(Code)

Returns a CFGToDotGraph converter which will draw the graph as a single arbitrarily-sized page, with full-length node labels.

If asked to draw a ExceptionalGraph, the converter will identify the exceptions that will be thrown. By default, it will distinguish different edges by coloring regular control flow edges black, exceptional control flow edges red, and thrown exception edges light gray. Head and tail nodes are filled in, head nodes with gray, and tail nodes with light gray.





Method Detail
drawCFG
public DotGraph drawCFG(DirectedGraph graph, Body body)(Code)
Create a DotGraph whose nodes and edges depict a control flow graph without distinguished exceptional edges.
Parameters:
  graph - a DirectedGraph representing a CFG(probably an instance of UnitGraph, BlockGraph,or one of their subclasses).
Parameters:
  body - the Body represented by graph (usedto format the text within nodes). If no body is available, passnull. a visualization of graph.



drawCFG
public DotGraph drawCFG(ExceptionalGraph graph)(Code)
Create a DotGraph whose nodes and edges depict the control flow in a ExceptionalGraph, with distinguished edges for exceptional control flow.
Parameters:
  graph - the control flow graph a visualization of graph.



setBriefLabels
public void setBriefLabels(boolean useBrief)(Code)
Specify whether to abbreviate the text in node labels. This is most relevant when the nodes represent basic blocks: abbreviated node labels contain only a numeric label for the block, while unabbreviated labels contain the code of its instructions.
Parameters:
  useBrief - indicates whether to abbreviate the text of node labels.



setExceptionEdgeAttr
public void setExceptionEdgeAttr(String id, String value)(Code)
Specify the dot graph attribute to use for edges depicting the exceptions each node may throw, and their handlers. This parameter has an effect only when drawing ExceptionalGraphs.
Parameters:
  id - The attribute name, for example "style" or "color".
Parameters:
  value - The attribute value, for example "dotted" or "lightgray".
See Also:    "Drawing graphs with dot"



setExceptionalControlFlowAttr
public void setExceptionalControlFlowAttr(String id, String value)(Code)
Specify the dot graph attribute to use for exceptional control flow edges. This parameter has an effect only when drawing ExceptionalGraphs.
Parameters:
  id - The attribute name, for example "style" or "color".
Parameters:
  value - The attribute value, for example "dashed" or "red".
See Also:    "Drawing graphs with dot"



setHeadAttr
public void setHeadAttr(String id, String value)(Code)
Specify the dot graph attribute to use for head nodes (in addition to filling in the nodes).
Parameters:
  id - The attribute name, for example "fillcolor".
Parameters:
  value - The attribute value, for example "gray".
See Also:    "Drawing graphs with dot"



setOnePage
public void setOnePage(boolean onePage)(Code)
Specify whether to split the graph into pages.
Parameters:
  onePage - indicates whether to produce the graph as asingle, arbitrarily-sized page (if onePage istrue) or several 8.5x11-inch pages (ifonePage is false).



setShowExceptions
public void setShowExceptions(boolean showExceptions)(Code)
Specify whether the graph should depict the exceptions which each node may throw, in the form of an edge from the throwing node to the handler (if any), labeled with the possible exception types. This parameter has an effect only when drawing ExceptionalGraphs.
Parameters:
  showExceptions - indicates whether to show possible exceptionsand their handlers.



setTailAttr
public void setTailAttr(String id, String value)(Code)
Specify the dot graph attribute to use for tail nodes (in addition to filling in the nodes).
Parameters:
  id - The attribute name, for example "fillcolor".
Parameters:
  value - The attribute value, for example "lightgray".
See Also:    "Drawing graphs with dot"



setUnexceptionalControlFlowAttr
public void setUnexceptionalControlFlowAttr(String id, String value)(Code)
Specify the dot graph attribute to use for regular control flow edges. This parameter has an effect only when drawing ExceptionalGraphs.
Parameters:
  id - The attribute name, for example "style" or "color".
Parameters:
  value - The attribute value, for example "solid" or "black".
See Also:    "Drawing graphs with dot"



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.