summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/everge/ReplOpts.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2019-06-13 19:07:28 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2019-06-13 19:07:28 -0400
commit7ece1ed3e64770561a1e50085969dcfa6bda20a9 (patch)
tree4653612556ad33ec02a205945c6c2b89dd18f6de /src/main/java/bjc/everge/ReplOpts.java
parentf46810bf4277d2b2ef78819af3c1f8bf69494f2d (diff)
Rename package
Things are now in package bjc.everge, not bjc.replpair
Diffstat (limited to 'src/main/java/bjc/everge/ReplOpts.java')
-rw-r--r--src/main/java/bjc/everge/ReplOpts.java69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/main/java/bjc/everge/ReplOpts.java b/src/main/java/bjc/everge/ReplOpts.java
new file mode 100644
index 0000000..aa836b0
--- /dev/null
+++ b/src/main/java/bjc/everge/ReplOpts.java
@@ -0,0 +1,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;
+ }
+}