Package pro.gravit.utils.command
Class StdCommandHandler
- java.lang.Object
-
- pro.gravit.utils.command.CommandHandler
-
- pro.gravit.utils.command.StdCommandHandler
-
- All Implemented Interfaces:
java.lang.Runnable
public class StdCommandHandler extends CommandHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class pro.gravit.utils.command.CommandHandler
CommandHandler.Category, CommandHandler.CommandWalk
-
-
Constructor Summary
Constructors Constructor Description StdCommandHandler(boolean readCommands)
-
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() throws java.io.IOExceptionDescription copied from class:CommandHandlerCleans the console- Specified by:
clearin classCommandHandler- Throws:
java.io.IOException- Internal Error
-
readLine
public java.lang.String readLine() throws java.io.IOExceptionDescription copied from class:CommandHandlerReads a line from the console- Specified by:
readLinein classCommandHandler- Returns:
- command line
- Throws:
java.io.IOException- Internal Error
-
-