blob: 63ef3dadd4e4b87c09d921eb6d8997e4d4271b51 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href=".resources/doc.css" charset="ISO-8859-1" type="text/css" />
<link rel="stylesheet" href="../coverage/.resources/prettify.css" charset="ISO-8859-1" type="text/css" />
<script type="text/javascript" src="../coverage/.resources/prettify.js"></script>
<title>JaCoCo - API Usage Examples</title>
</head>
<body onload="prettyPrint()">
<div class="breadcrumb">
<a href="../index.html" class="el_session">JaCoCo</a> &gt;
<a href="index.html" class="el_group">Documentation</a> &gt;
<span class="el_source">API Usage Examples</span>
</div>
<div id="content">
<h1>API Usage Examples</h1>
<p>
To get familiar with the API these examples demonstrate different aspects of
the JaCoCo API. Each example can be separately compiled and executed as a Java
main program. Some examples require additional command line arguments.
</p>
<table class="coverage">
<thead>
<tr>
<td>File</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td><a href="examples/CoreTutorial.java">CoreTutorial.java</a></td>
<td>This tutorial-like example instruments, executes and analyzes a single
target class. Finally line coverage information is printed to the
console.
</td>
</tr>
<tr>
<td><a href="examples/ClassInfo.java">ClassInfo.java</a></td>
<td>This example writes JaCoCo specific information for given Java class
files.
</td>
</tr>
<tr>
<td><a href="examples/ExecDump.java">ExecDump.java</a></td>
<td>Utility to dump the content of execution data files in readable form.
</td>
</tr>
</tbody>
</table>
</div>
<div class="footer">
<div class="versioninfo"><a href="@jacoco.home.url@">JaCoCo</a> @qualified.bundle.version@</div>
<a href="license.html">Copyright</a> &copy; @copyright.years@ Mountainminds GmbH &amp; Co. KG and Contributors
</div>
</body>
</html>