Java Doc for TrapUnitGraph.java in  » Code-Analyzer » soot » soot » toolkits » graph » 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.toolkits.graph 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   soot.toolkits.graph.UnitGraph
      soot.toolkits.graph.TrapUnitGraph

All known Subclasses:   soot.toolkits.graph.ClassicCompleteUnitGraph,  soot.jbco.util.SimpleExceptionalGraph,
TrapUnitGraph
public class TrapUnitGraph extends UnitGraph (Code)

Represents a CFG for a Body instance where the nodes are Unit instances, and where, in additional to unexceptional control flow edges, edges are added from every trapped Unit to the Trap 's handler Unit, regardless of whether the trapped Units may actually throw the exception caught by the Trap.

There are three distinctions between the exceptional edges added in TrapUnitGraph and the exceptional edges added in ExceptionalUnitGraph :

  1. In ExceptionalUnitGraph, the edges to Traps are associated with Units which may actually throw an exception which the Trap catches (according to the soot.toolkits.exceptions.ThrowAnalysis ThrowAnalysis used in the construction of the graph). In TrapUnitGraph, there are edges from every trapped Unit to the Trap, regardless of whether it can throw an exception caught by the Trap.
  2. In ExceptionalUnitGraph, when a Unit may throw an exception that is caught by a Trap there are edges from every predecessor of the excepting Unit to the Trap's handler. In TrapUnitGraph, edges are not added from the predecessors of excepting Units.
  3. In ExceptionalUnitGraph, when a Unit may throw an exception that is caught by a Trap, there may be no edge from the excepting Unit itself to the Trap (depending on the possibility of side effects and the setting of the omitExceptingUnitEdges parameter). In TrapUnitGraph, there is always an edge from the excepting Unit to the Trap.



Constructor Summary
public  TrapUnitGraph(Body body)
     Constructs the graph from a given Body instance.

Method Summary
protected  voidbuildExceptionalEdges(Map unitToSuccs, Map unitToPreds)
     Method to compute the edges corresponding to exceptional control flow.


Constructor Detail
TrapUnitGraph
public TrapUnitGraph(Body body)(Code)
Constructs the graph from a given Body instance.
Parameters:
  the - Body instance from which the graph is built.




Method Detail
buildExceptionalEdges
protected void buildExceptionalEdges(Map unitToSuccs, Map unitToPreds)(Code)
Method to compute the edges corresponding to exceptional control flow.
Parameters:
  unitToSuccs - A Map from Units to Lists of Units. This is an “outparameter”; buildExceptionalEdgeswill add a mapping for every Unitwithin the scope of one or more Traps to a List of the handlerunits of those Traps.
Parameters:
  unitToPreds - A Map from Units to Lists of Units. This is an“out parameter”;buildExceptionalEdges will add amapping for every Trap handler toall the Units within the scope ofthat Trap.



Fields inherited from soot.toolkits.graph.UnitGraph
protected Body body(Code)(Java Doc)
List heads(Code)(Java Doc)
protected SootMethod method(Code)(Java Doc)
List tails(Code)(Java Doc)
protected Chain unitChain(Code)(Java Doc)
protected Map unitToPreds(Code)(Java Doc)
protected Map unitToSuccs(Code)(Java Doc)

Methods inherited from soot.toolkits.graph.UnitGraph
protected void addEdge(Map unitToSuccs, Map unitToPreds, Unit head, Unit tail)(Code)(Java Doc)
protected void buildHeadsAndTails()(Code)(Java Doc)
protected void buildUnexceptionalEdges(Map unitToSuccs, Map unitToPreds)(Code)(Java Doc)
protected Map combineMapValues(Map mapA, Map mapB)(Code)(Java Doc)
public Body getBody()(Code)(Java Doc)
public List<Unit> getExtendedBasicBlockPathBetween(Unit from, Unit to)(Code)(Java Doc)
public List<Unit> getHeads()(Code)(Java Doc)
public List<Unit> getPredsOf(Unit u)(Code)(Java Doc)
public List<Unit> getSuccsOf(Unit u)(Code)(Java Doc)
public List<Unit> getTails()(Code)(Java Doc)
public Iterator<Unit> iterator()(Code)(Java Doc)
protected static void makeMappedListsUnmodifiable(Map<?, List<Unit>> map)(Code)(Java Doc)
public int size()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.