Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jChatBox.Command
Class CommandParser

    java.lang.Object
      |
      +--jChatBox.Command.CommandParser

public class CommandParser
extends java.lang.Object

This class implements a Command Parser.

Field Summary
`static java.lang.String[][]` | `alias`

Constructor Summary
`CommandParser()` Parser constructor.

Method Summary
`java.lang.String` | `getAction()` Returns parsed action.
`CommandParams` | `getParams()` Returns parsed parameters.
`static void` | `main(java.lang.String[] args)` Parser tester.
`java.lang.String` | `parse()` Runs parser.
`void` | `setCommand(java.lang.String command)` Sets command to parse.
`void` | `setRoomID(int roomID)` Sets room ID involved in commmand.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### alias

    public static final java.lang.String[][] alias

Constructor Detail

### CommandParser

    public CommandParser()

  Parser constructor.

Method Detail

### main

    public static void main(java.lang.String[] args)

  Parser tester.

### setCommand

    public void setCommand(java.lang.String command)

  Sets command to parse.

### setRoomID

    public void setRoomID(int roomID)

  Sets room ID involved in commmand.

### getParams

    public CommandParams getParams()

  Returns parsed parameters.

### parse

    public java.lang.String parse()
                           throws CommandException

  Runs parser.

    `CommandException`

### getAction

    public java.lang.String getAction()

  Returns parsed action.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD