Java Doc for ResourceTracker.java in  » Code-Analyzer » findbugs » edu » umd » cs » findbugs » ba » 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 » findbugs » edu.umd.cs.findbugs.ba 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.umd.cs.findbugs.ba.ResourceTracker

ResourceTracker
public interface ResourceTracker (Code)
A ResourceTracker is used with ResourceValueAnalysis to determine where in a method a certain kind of resource is created, and to model the effect of instructions on the state of that resource.
author:
   David Hovemeyer
See Also:   ResourceValueAnalysis




Method Summary
public  ResourceValueFrameModelingVisitorcreateVisitor(Resource resource, ConstantPoolGen cpg)
     Create a ResourceValueFrameModelingVisitor to model the effect of instructions on the state of the resource.
public  booleanignoreExceptionEdge(Edge edge, Resource resource, ConstantPoolGen cpg)
     Determine whether the analysis should ignore given exception edge.
public  booleanignoreImplicitExceptions(Resource resource)
     Determine whether the analysis should ignore exception edges on which only implicit exceptions are propagated. This allows different resource types to be tracked with varying precision.
public  booleanisParamInstance(Resource resource, int slot)
     Return if the given parameter slot contains the resource instance upon entry to the method.
public  booleanisResourceClose(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg, Resource resource, ResourceValueFrame frame)
     Determine if the given instruction is the site where a resource is closed.
public  ResourceisResourceCreation(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg)
     Determine if the given instruction is the site where a resource is created.



Method Detail
createVisitor
public ResourceValueFrameModelingVisitor createVisitor(Resource resource, ConstantPoolGen cpg)(Code)
Create a ResourceValueFrameModelingVisitor to model the effect of instructions on the state of the resource.
Parameters:
  resource - the resource we are tracking
Parameters:
  cpg - the ConstantPoolGen of the method a ResourceValueFrameModelingVisitor



ignoreExceptionEdge
public boolean ignoreExceptionEdge(Edge edge, Resource resource, ConstantPoolGen cpg)(Code)
Determine whether the analysis should ignore given exception edge. This allows the analysis to customize which kinds of exceptions are significant.
Parameters:
  edge - the exception edge
Parameters:
  resource - the resource
Parameters:
  cpg - the ConstantPoolGen true if exception edge should be ignored, false if it should be considered



ignoreImplicitExceptions
public boolean ignoreImplicitExceptions(Resource resource)(Code)
Determine whether the analysis should ignore exception edges on which only implicit exceptions are propagated. This allows different resource types to be tracked with varying precision. For example, we might want to ignore implicit exceptions for stream objects, but treat them as significant for database resources.
Parameters:
  resource - the resource being tracked true if implicit exceptions are significant,false if they should be ignore



isParamInstance
public boolean isParamInstance(Resource resource, int slot)(Code)
Return if the given parameter slot contains the resource instance upon entry to the method. This is for resources passed as parameters.
Parameters:
  resource - the resource
Parameters:
  slot - the local variable slot true if the slot contains the resource instance,false otherwise



isResourceClose
public boolean isResourceClose(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg, Resource resource, ResourceValueFrame frame) throws DataflowAnalysisException(Code)
Determine if the given instruction is the site where a resource is closed.
Parameters:
  basicBlock - basic block containing the instruction
Parameters:
  handle - the instruction
Parameters:
  cpg - the ConstantPoolGen for the method
Parameters:
  resource - the resource, as returned by isResourceCreation()
Parameters:
  frame - the ResourceValueFrame representing the stack prior to executingthe instruction true if the resource is closed here, false otherwise



isResourceCreation
public Resource isResourceCreation(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg) throws DataflowAnalysisException(Code)
Determine if the given instruction is the site where a resource is created.
Parameters:
  basicBlock - basic block containing the instruction
Parameters:
  handle - the instruction
Parameters:
  cpg - the ConstantPoolGen for the method an opaque Resource object if it is a creation site, ornull if it is not a creation site



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