summaryrefslogtreecommitdiff
path: root/docs/jacoco-ut/bjc.everge/ReplOpts.java.html
blob: 990571822dcac08f0d0b8ba2682a65bb41b48c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?><!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=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ReplOpts.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">everge</a> &gt; <a href="index.source.html" class="el_package">bjc.everge</a> &gt; <span class="el_source">ReplOpts.java</span></div><h1>ReplOpts.java</h1><pre class="source lang-java linenums">package bjc.everge;

import java.io.PrintStream;

/**
 * Options for processing ReplPairs.
 *
 * @author Ben Culkin.
 */
<span class="fc" id="L10">public class ReplOpts {</span>
	/**
	 * The default priority.
	 */
<span class="fc" id="L14">	public int defPrior = 0;</span>

	/**
	 * The default stage.
	 */
<span class="fc" id="L19">	public int defStage = 0;</span>

	/**
	 * Whether to process multi-line defns.
	 */
<span class="fc" id="L24">	public boolean defMulti = false;</span>

	/**
	 * Default status.
	 */
<span class="fc" id="L29">	public StageStatus defStatus = StageStatus.BOTH;</span>

	/**
	 * Enable debug info.
	 */
<span class="fc" id="L34">	public boolean isDebug = true;</span>

	/**
	 * Enable trace info.
	 */
<span class="fc" id="L39">	public boolean isTrace = false;</span>

	/**
	 * Enable performance info.
	 */
<span class="fc" id="L44">	public boolean isPerf = false;</span>

	/**
	 * The stream to print normal output on.
	 */
<span class="fc" id="L49">	public PrintStream outStream = System.out;</span>
	/**
	 * The stream to print error output on.
	 */
<span class="fc" id="L53">	public PrintStream errStream = System.err;</span>

	@Override
	public int hashCode() {
<span class="nc" id="L57">		final int prime = 31;</span>
<span class="nc" id="L58">		int result = 1;</span>
<span class="nc bnc" id="L59" title="All 2 branches missed.">		result = prime * result + (defMulti ? 1231 : 1237);</span>
<span class="nc" id="L60">		result = prime * result + defPrior;</span>
<span class="nc" id="L61">		result = prime * result + defStage;</span>
<span class="nc bnc" id="L62" title="All 2 branches missed.">		result = prime * result + ((defStatus == null) ? 0 : defStatus.hashCode());</span>
<span class="nc bnc" id="L63" title="All 2 branches missed.">		result = prime * result + (isDebug ? 1231 : 1237);</span>
<span class="nc bnc" id="L64" title="All 2 branches missed.">		result = prime * result + (isPerf ? 1231 : 1237);</span>
<span class="nc bnc" id="L65" title="All 2 branches missed.">		result = prime * result + (isTrace ? 1231 : 1237);</span>
<span class="nc" id="L66">		return result;</span>
	}

	@Override
	public boolean equals(Object obj) {
<span class="nc bnc" id="L71" title="All 2 branches missed.">		if (this == obj)</span>
<span class="nc" id="L72">			return true;</span>
<span class="nc bnc" id="L73" title="All 2 branches missed.">		if (obj == null)</span>
<span class="nc" id="L74">			return false;</span>
<span class="nc bnc" id="L75" title="All 2 branches missed.">		if (getClass() != obj.getClass())</span>
<span class="nc" id="L76">			return false;</span>
<span class="nc" id="L77">		ReplOpts other = (ReplOpts) obj;</span>
<span class="nc bnc" id="L78" title="All 2 branches missed.">		if (defMulti != other.defMulti)</span>
<span class="nc" id="L79">			return false;</span>
<span class="nc bnc" id="L80" title="All 2 branches missed.">		if (defPrior != other.defPrior)</span>
<span class="nc" id="L81">			return false;</span>
<span class="nc bnc" id="L82" title="All 2 branches missed.">		if (defStage != other.defStage)</span>
<span class="nc" id="L83">			return false;</span>
<span class="nc bnc" id="L84" title="All 2 branches missed.">		if (defStatus != other.defStatus)</span>
<span class="nc" id="L85">			return false;</span>
<span class="nc bnc" id="L86" title="All 2 branches missed.">		if (isDebug != other.isDebug)</span>
<span class="nc" id="L87">			return false;</span>
<span class="nc bnc" id="L88" title="All 2 branches missed.">		if (isPerf != other.isPerf)</span>
<span class="nc" id="L89">			return false;</span>
<span class="nc bnc" id="L90" title="All 2 branches missed.">		if (isTrace != other.isTrace)</span>
<span class="nc" id="L91">			return false;</span>
<span class="nc" id="L92">		return true;</span>
	}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html>