summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java
diff options
context:
space:
mode:
authorbjculkin <bjculkin@mix.wvu.edu>2017-03-28 16:48:43 -0400
committerbjculkin <bjculkin@mix.wvu.edu>2017-03-28 16:48:43 -0400
commitdaceafeeb90680116c289a7c301c42eb3e57eb97 (patch)
tree77e4656d7559bc84ff381fc95f285a41c4c7d867 /BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java
parent32041545ef34fa83aeea682d97be4ca9a94659f2 (diff)
Mostly finish FDS core
The major changes this time are that we have both data/command macros, as well as proper Unicode character support.
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java b/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java
index b59b345..60aeb38 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java
@@ -37,7 +37,7 @@ public interface FDSMode<S> {
*
* @return All of the characters registered to something in this mode.
*/
- char[] registeredChars();
+ String[] registeredChars();
/*
* Check for the existence of commands/submodes.
@@ -51,7 +51,7 @@ public interface FDSMode<S> {
*
* @return Whether or not there is a command bound to that character.
*/
- boolean hasCommand(char c);
+ boolean hasCommand(String c);
/**
* Check if there is a submode registered to the given character.
@@ -61,7 +61,7 @@ public interface FDSMode<S> {
*
* @return Whether or not there is a submode bound to that character.
*/
- boolean hasSubmode(char c);
+ boolean hasSubmode(String c);
/*
* Get commands and submodes.
@@ -78,7 +78,7 @@ public interface FDSMode<S> {
* @throws FDSException
* If there is no command bound to that character.
*/
- FDSCommand<S> getCommand(char c) throws FDSException;
+ FDSCommand<S> getCommand(String c) throws FDSException;
/**
* Get the command attached to a given character.
@@ -91,7 +91,7 @@ public interface FDSMode<S> {
* @throws FDSException
* If there is no command bound to that character.
*/
- FDSMode<S> getSubmode(char c) throws FDSException;
+ FDSMode<S> getSubmode(String c) throws FDSException;
/*
* Help utilities
@@ -106,7 +106,7 @@ public interface FDSMode<S> {
*
* @return The help for what's bound to the character.
*/
- default Collection<CommandHelp> getHelp(char c) {
+ default Collection<CommandHelp> getHelp(String c) {
return DEFAULT_HELP;
}
}