Package pro.gravit.utils.command
Class JLineCommandHandler
- java.lang.Object
-
- pro.gravit.utils.command.CommandHandler
-
- pro.gravit.utils.command.JLineCommandHandler
-
- All Implemented Interfaces:
java.lang.Runnable
public class JLineCommandHandler extends CommandHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJLineCommandHandler.JLineConsoleCompleter-
Nested classes/interfaces inherited from class pro.gravit.utils.command.CommandHandler
CommandHandler.Category, CommandHandler.CommandWalk
-
-
Constructor Summary
Constructors Constructor Description JLineCommandHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbell()If supported, sends a bell signal to the consolevoidclear()Cleans the consolejava.lang.StringreadLine()Reads a line from the console-
Methods inherited from class pro.gravit.utils.command.CommandHandler
eval, eval, evalNative, findCategory, findCommand, getBaseCategory, getCategories, lookup, registerCategory, registerCommand, run, unregisterCategory, unregisterCommand, walk
-
-
-
-
Method Detail
-
bell
public void bell()
Description copied from class:CommandHandlerIf supported, sends a bell signal to the console- Specified by:
bellin classCommandHandler
-
clear
public void clear()
Description copied from class:CommandHandlerCleans the console- Specified by:
clearin classCommandHandler
-
readLine
public java.lang.String readLine()
Description copied from class:CommandHandlerReads a line from the console- Specified by:
readLinein classCommandHandler- Returns:
- command line
-
-