public class CompositeCommandDictionary extends Object implements Dictionary
| Constructor and Description |
|---|
CompositeCommandDictionary() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Dictionary commandDictionary) |
boolean |
containsCommand(BasicCommand tc)
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
|
DictionaryCommand |
findCommand(BasicCommand tc)
Find a given command in the dictionary
|
DictionaryCommand |
findCommand(String command,
int argumentCount)
Find a given command in the dictionary.
|
Iterator<DictionaryCommand> |
iterator() |
void |
remove(Dictionary commandDictionary) |
int |
size()
The size of the dictionary.
|
public void add(Dictionary commandDictionary)
public void remove(Dictionary commandDictionary)
public boolean containsCommand(BasicCommand tc)
DictionarycontainsCommand in interface Dictionarytc - The command (or alias) to search fortrueIf the command is foundpublic DictionaryCommand findCommand(BasicCommand tc)
DictionaryfindCommand in interface Dictionarytc - The command (or alias) to search fornull if
the command is not found.public boolean containsCommand(String command, int argumentCount)
DictionarycontainsCommand in interface Dictionarycommand - The command (or alias) to search forargumentCount - The number of arguments associated with the commandtrueIf the command is foundpublic DictionaryCommand findCommand(String command, int argumentCount)
DictionaryfindCommand in interface Dictionarycommand - The command (or alias) to search forargumentCount - The number of arguments associated with the commandnull if
the command is not found.public Iterator<DictionaryCommand> iterator()
iterator in interface Iterable<DictionaryCommand>public int size()
Dictionarysize in interface DictionaryCopyright © 2014 LSST. All rights reserved.