org.xnap.cmdl
Class Executer

java.lang.Object
  extended by org.xnap.cmdl.Executer

public class Executer
extends java.lang.Object

This class is thread safe.


Method Summary
static void add(Command command)
          Adds command.
static void add(Command[] commands)
           
static Command getCommand(java.lang.String command)
           
static Command[] getCommands()
           
static Completer getCompleter()
          Returns the default completer.
static boolean parse(java.lang.String args, Console console)
           
static void remove(Command command)
           
static void remove(Command[] commands)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCompleter

public static Completer getCompleter()
Returns the default completer.


add

public static void add(Command command)
Adds command. Only the first command is added to the readline completer.


add

public static void add(Command[] commands)

getCommand

public static Command getCommand(java.lang.String command)

getCommands

public static Command[] getCommands()

parse

public static boolean parse(java.lang.String args,
                            Console console)
Returns:
true, if the command existed and was executed

remove

public static void remove(Command command)

remove

public static void remove(Command[] commands)


Copyright © 2001-2005 XNap Team. All Rights Reserved.