rero.client.user
Class UserHandler

java.lang.Object
  extended byrero.client.Feature
      extended byrero.client.user.UserHandler
All Implemented Interfaces:
InputListener

public class UserHandler
extends Feature
implements InputListener


Field Summary
protected  BuiltInCommands builtInCommands
           
protected static Pattern commandParametersPattern
           
protected  HashMap commands
           
protected  InternalDataList ircData
           
protected  AliasEnvironment scriptedAliases
           
 
Fields inherited from class rero.client.Feature
abilities
 
Constructor Summary
UserHandler()
           
 
Method Summary
 String getQuery()
           
 Collection getScriptedAliases()
           
 void init()
           
 boolean isNickComplete(String text)
           
 void onInput(UserInputEvent ev)
           
 void processCommand(String text)
           
 void processCommandBuiltIn(String text)
           
 void processInput(String text)
           
 void processNickCompletion(String text)
           
 void registerCommand(String name, ClientCommand command)
          this is an internal API so there is no effort to remember "prior" commands.
 void runAlias(String command, String parameters)
           
 void runAliasBuiltIn(String command, String parameters)
           
 void storeDataStructures(WeakHashMap data)
           
 
Methods inherited from class rero.client.Feature
cleanup, getCapabilities, installCapabilities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandParametersPattern

protected static Pattern commandParametersPattern

scriptedAliases

protected AliasEnvironment scriptedAliases

commands

protected HashMap commands

builtInCommands

protected BuiltInCommands builtInCommands

ircData

protected InternalDataList ircData
Constructor Detail

UserHandler

public UserHandler()
Method Detail

getScriptedAliases

public Collection getScriptedAliases()

storeDataStructures

public void storeDataStructures(WeakHashMap data)
Overrides:
storeDataStructures in class Feature

init

public void init()
Specified by:
init in class Feature

isNickComplete

public boolean isNickComplete(String text)

processNickCompletion

public void processNickCompletion(String text)

getQuery

public String getQuery()

onInput

public void onInput(UserInputEvent ev)
Specified by:
onInput in interface InputListener

processInput

public void processInput(String text)

registerCommand

public void registerCommand(String name,
                            ClientCommand command)
this is an internal API so there is no effort to remember "prior" commands. It is assumed that the command being registered doesn't exist otherwise


runAlias

public void runAlias(String command,
                     String parameters)

runAliasBuiltIn

public void runAliasBuiltIn(String command,
                            String parameters)

processCommand

public void processCommand(String text)

processCommandBuiltIn

public void processCommandBuiltIn(String text)