Java Doc for StmtRegistry.java in  » Test-Coverage » Quilt » org » quilt » cover » stmt » 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 » Test Coverage » Quilt » org.quilt.cover.stmt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.quilt.reg.Registry
      org.quilt.reg.QuiltRegistry
         org.quilt.cover.stmt.StmtRegistry

StmtRegistry
public class StmtRegistry extends QuiltRegistry (Code)

Registry for statement coverage information. As Quilt-instrumented classes are loaded, they register their q$$q hit count arrays and are assigned an ID unique in the life of the registry. The registry maintains:

  • hit counts, keyed on class name
  • method end counter indexes, keyed on class and method name
  • line number ranges, keyed on class and counter index

This and other information in the registry allows it the generate a number of reports summarizing coverage at

  • package level (soon)
  • class level (now)
  • method level (now)
  • line level (soonish)

The registry is associated with the Quilt class loader when it is created. Information can been retrieved from the registry at any time. It will be accumulated as new instances of Quilt-instrumented classes are run.


author:
   Jim Dixon



Constructor Summary
public  StmtRegistry(QuiltClassLoader qcl)
     Constructor specifying Quilt class loader the registry is associated with.

Method Summary
 intgetClassCoverage(String className)
     Get the percentage of counters in the class that have counts greater than zero.
public  intgetClassID(String className)
    
public  int[]getCounts(String className)
     Get a reference to the hit count array for a class.
 EphemeragetEphemera(String className)
    
public static  StmtRegistrygetInstance()
     Returns a reference to the latest instance to announce itself.
 intgetMethodCoverage(String className, int n)
     Get the percentage of counters in the Nth method that have counts greater than zero.
public  intgetQuiltVersion(String className)
    
public  StringgetReport()
     Dump the registry as plain text.
 booleanputEphemera(String className, Ephemera eph)
    
public  intregisterClass(String name, org.quilt.cover.stmt.QIC junk)
    
public  intregisterCounts(String className, int[] counts)
     Register a class by passing a reference to its integer hit count array.
public  voidregisterMethods(String className, String[] methods, int[] endCounts)
    
 EphemeraremoveEphemera(String className)
     Remove the reference from the registry.
public  voidreset()
     Clear counters associated with registry entries.


Constructor Detail
StmtRegistry
public StmtRegistry(QuiltClassLoader qcl)(Code)
Constructor specifying Quilt class loader the registry is associated with.




Method Detail
getClassCoverage
int getClassCoverage(String className)(Code)
Get the percentage of counters in the class that have counts greater than zero. The percentage is rounded down. If no class information is found, returns zero. an integer between 0 and 100, zero if class not found



getClassID
public int getClassID(String className)(Code)



getCounts
public int[] getCounts(String className)(Code)
Get a reference to the hit count array for a class.



getEphemera
Ephemera getEphemera(String className)(Code)
get reference to temporary data for class



getInstance
public static StmtRegistry getInstance()(Code)
Returns a reference to the latest instance to announce itself.



getMethodCoverage
int getMethodCoverage(String className, int n)(Code)
Get the percentage of counters in the Nth method that have counts greater than zero. The percentage is rounded down. If no class or method information is found, returns zero. XXX The 'methodEnds' array actually contains cumulative counts, so values must be reduced by one. an integer between 0 and 100, zero if class not found



getQuiltVersion
public int getQuiltVersion(String className)(Code)



getReport
public String getReport()(Code)
Dump the registry as plain text.



putEphemera
boolean putEphemera(String className, Ephemera eph)(Code)
add temporary data for class to registry



registerClass
public int registerClass(String name, org.quilt.cover.stmt.QIC junk)(Code)
STUB



registerCounts
public int registerCounts(String className, int[] counts)(Code)
Register a class by passing a reference to its integer hit count array. Returns a class ID which is unique within this run. The ID will be stored in a static in the class, public static int q$$qID XXX So far absolutely no value to using String array as key; could just be String.
Parameters:
  className - Name of the class being registered.
Parameters:
  counts - Reference to the class's public static hit count array. A unique class ID on success, -1 on failure.



registerMethods
public void registerMethods(String className, String[] methods, int[] endCounts)(Code)



removeEphemera
Ephemera removeEphemera(String className)(Code)
Remove the reference from the registry.
Parameters:
  className - Name of the class we are storing information about The reference or null if none was found or null was the stored value.



reset
public void reset()(Code)
Clear counters associated with registry entries.



Fields inherited from org.quilt.reg.QuiltRegistry
protected ClassXformer cxf(Code)(Java Doc)
protected GraphXformer gxf(Code)(Java Doc)
protected MethodXformer mxf(Code)(Java Doc)
protected QuiltClassLoader qcl_(Code)(Java Doc)

Methods inherited from org.quilt.reg.QuiltRegistry
abstract public String getReport()(Code)(Java Doc)
abstract public void reset()(Code)(Java Doc)
final public void setTransformers()(Code)(Java Doc)

Methods inherited from org.quilt.reg.Registry
final public void clear()(Code)(Java Doc)
final public boolean containsKey(String[] key)(Code)(Java Doc)
final public Object get(String[] key)(Code)(Java Doc)
final public boolean isEmpty()(Code)(Java Doc)
public Set keySet()(Code)(Java Doc)
final public Object put(String[] key, Object value)(Code)(Java Doc)
final public Object remove(String[] key)(Code)(Java Doc)
final public int size()(Code)(Java Doc)
final public String[] splitClassName(String name)(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.