From 6be017f0b44dae0b43a127d82c9e8d3bc6637bce Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 12 Jun 2019 21:48:59 -0400 Subject: Tests & Debugging Added another test, this time for staging. Also added some debugging capabilities. --- src/main/java/bjc/replpair/ReplOpts.java | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/main/java/bjc/replpair/ReplOpts.java (limited to 'src/main/java/bjc/replpair/ReplOpts.java') diff --git a/src/main/java/bjc/replpair/ReplOpts.java b/src/main/java/bjc/replpair/ReplOpts.java new file mode 100644 index 0000000..a1645bb --- /dev/null +++ b/src/main/java/bjc/replpair/ReplOpts.java @@ -0,0 +1,69 @@ +package bjc.replpair; + +/** + * 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; + } +} -- cgit v1.2.3