From daceafeeb90680116c289a7c301c42eb3e57eb97 Mon Sep 17 00:00:00 2001 From: bjculkin Date: Tue, 28 Mar 2017 16:48:43 -0400 Subject: Mostly finish FDS core The major changes this time are that we have both data/command macros, as well as proper Unicode character support. --- BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/fds/FDSMode.java') 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 { * * @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 { * * @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 { * * @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 { * @throws FDSException * If there is no command bound to that character. */ - FDSCommand getCommand(char c) throws FDSException; + FDSCommand getCommand(String c) throws FDSException; /** * Get the command attached to a given character. @@ -91,7 +91,7 @@ public interface FDSMode { * @throws FDSException * If there is no command bound to that character. */ - FDSMode getSubmode(char c) throws FDSException; + FDSMode getSubmode(String c) throws FDSException; /* * Help utilities @@ -106,7 +106,7 @@ public interface FDSMode { * * @return The help for what's bound to the character. */ - default Collection getHelp(char c) { + default Collection getHelp(String c) { return DEFAULT_HELP; } } -- cgit v1.2.3