public interface Dictionary extends Iterable<DictionaryCommand>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCommand(BasicCommand command)
Test if a given command is present in a dictionary.
|
boolean |
containsCommand(String command,
int argumentCount)
Test if a given command is present in a dictionary
|
int |
findCommand(BasicCommand command)
Find a given command in the dictionary
|
int |
findCommand(String command,
int argumentCount)
Find a given command in the dictionary.
|
DictionaryCommand |
get(int index)
Get the command at the given index.
|
int |
size()
The size of the dictionary.
|
boolean containsCommand(BasicCommand command)
command - The command (or alias) to search fortrueIf the command is foundint findCommand(BasicCommand command)
command - The command (or alias) to search for-1 if
the command is not found.boolean containsCommand(String command, int argumentCount)
command - The command (or alias) to search forargumentCount - The number of arguments associated with the commandtrueIf the command is foundint findCommand(String command, int argumentCount)
command - The command (or alias) to search forargumentCount - The number of arguments associated with the command-1 if
the command is not found.int size()
DictionaryCommand get(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - If the index is out of bounds.Copyright © 2013 LSST. All Rights Reserved.