From 7ece1ed3e64770561a1e50085969dcfa6bda20a9 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 13 Jun 2019 19:07:28 -0400 Subject: Rename package Things are now in package bjc.everge, not bjc.replpair --- src/main/java/bjc/everge/ReplOpts.java | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/main/java/bjc/everge/ReplOpts.java (limited to 'src/main/java/bjc/everge/ReplOpts.java') 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; + } +} -- cgit v1.2.3