blob: c8b5767f4c7f8d85a737916c2b215a544f6f7359 (
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
|
<?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> > <a href="index.source.html" class="el_package">bjc.everge</a> > <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="L56"> final int prime = 31;</span>
<span class="nc" id="L57"> int result = 1;</span>
<span class="nc bnc" id="L58" title="All 2 branches missed."> result = prime * result + (defMulti ? 1231 : 1237);</span>
<span class="nc" id="L59"> result = prime * result + defPrior;</span>
<span class="nc" id="L60"> result = prime * result + defStage;</span>
<span class="nc bnc" id="L61" title="All 2 branches missed."> result = prime * result + ((defStatus == null) ? 0 : defStatus.hashCode());</span>
<span class="nc bnc" id="L62" title="All 2 branches missed."> result = prime * result + (isDebug ? 1231 : 1237);</span>
<span class="nc bnc" id="L63" title="All 2 branches missed."> result = prime * result + (isPerf ? 1231 : 1237);</span>
<span class="nc bnc" id="L64" title="All 2 branches missed."> result = prime * result + (isTrace ? 1231 : 1237);</span>
<span class="nc" id="L65"> return result;</span>
}
@Override
public boolean equals(Object obj) {
<span class="nc bnc" id="L69" title="All 2 branches missed."> if (this == obj) return true;</span>
<span class="nc bnc" id="L70" title="All 2 branches missed."> if (obj == null) return false;</span>
<span class="nc bnc" id="L71" title="All 2 branches missed."> if (getClass() != obj.getClass()) return false;</span>
<span class="nc" id="L72"> ReplOpts other = (ReplOpts) obj;</span>
<span class="nc bnc" id="L73" title="All 2 branches missed."> if (defMulti != other.defMulti) return false;</span>
<span class="nc bnc" id="L74" title="All 2 branches missed."> if (defPrior != other.defPrior) return false;</span>
<span class="nc bnc" id="L75" title="All 2 branches missed."> if (defStage != other.defStage) return false;</span>
<span class="nc bnc" id="L76" title="All 2 branches missed."> if (defStatus != other.defStatus) return false;</span>
<span class="nc bnc" id="L77" title="All 2 branches missed."> if (isDebug != other.isDebug) return false;</span>
<span class="nc bnc" id="L78" title="All 2 branches missed."> if (isPerf != other.isPerf) return false;</span>
<span class="nc bnc" id="L79" title="All 2 branches missed."> if (isTrace != other.isTrace) return false;</span>
<span class="nc" id="L80"> 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>
|