summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/everge/ReplOpts.java
blob: aa836b0ef7c53ae2ea38882f7b3d1d551b9dffa2 (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
package bjc.everge;

/**
 * Options for processing ReplPairs.
 *
 * @author Ben Culkin.
 */
public class ReplOpts {
	/**
	 * The default priority.
	 */
	public int defPrior;
	/**
	 * The default stage.
	 */
	public int defStage;

	/**
	 * Whether to process multi-line defns.
	 */
	public boolean defMulti;

	/**
	 * Default status.
	 */
	public StageStatus defStatus;

	/**
	 * Enable debug info.
	 */
	public boolean isDebug;

	/**
	 * Create a default set of options.
	 */
	public ReplOpts() {
		defPrior = 0;
		defStage = 0;

		defMulti = false;

		defStatus = StageStatus.BOTH;

		isDebug = false;
	}

	/**
	 * Create a new set of repl. opts
	 *
	 * @param p
	 * 		The default priority to use
	 * @param s
	 * 		The default stage to use
	 * @param m
	 * 		Whether to process multi-line defns.
	 * @param t
	 * 		The default status.
	 */
	public ReplOpts(int p, int s, boolean m, StageStatus t, boolean d) {
		defPrior = p;
		defStage = s;

		defMulti = m;

		defStatus = t;

		isDebug = d;
	}
}