summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/replpair/ReplOpts.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2019-06-12 21:48:59 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2019-06-12 21:48:59 -0400
commit6be017f0b44dae0b43a127d82c9e8d3bc6637bce (patch)
tree042f7ff591f27b9c0b4ed0fa661714f76be10094 /src/main/java/bjc/replpair/ReplOpts.java
parent5392663881d49fed1df32c58c99f63242b38733f (diff)
Tests & Debugging
Added another test, this time for staging. Also added some debugging capabilities.
Diffstat (limited to 'src/main/java/bjc/replpair/ReplOpts.java')
-rw-r--r--src/main/java/bjc/replpair/ReplOpts.java69
1 files changed, 69 insertions, 0 deletions
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;
+ }
+}