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.
|
DictionaryCommand |
findCommand(BasicCommand tc)
Find a given command in the dictionary
|
DictionaryCompleter |
getDictionaryCompleter()
Get the DictionaryCompleter for this Dictionary.
|
DictionaryHelpGenerator |
getHelpGenerator()
Get the DictionaryHelpGenerator for this Dictionary.
|
Iterator<DictionaryCommand> |
iterator() |
void |
remove(Dictionary commandDictionary) |
int |
size()
The size of the dictionary.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void add(Dictionary commandDictionary)
public void remove(Dictionary commandDictionary)
public DictionaryCompleter getDictionaryCompleter()
DictionarygetDictionaryCompleter in interface Dictionarypublic boolean containsCommand(BasicCommand tc) throws CommandArgumentMatchException
DictionarycontainsCommand in interface Dictionarytc - The command (or alias) to search fortrueIf the command is foundCommandArgumentMatchException - if there is an illegal argument.public DictionaryCommand findCommand(BasicCommand tc) throws CommandArgumentMatchException
DictionaryfindCommand in interface Dictionarytc - The command (or alias) to search fornull if
the command is not found.CommandArgumentMatchException - if there is an illegal argument.public Iterator<DictionaryCommand> iterator()
iterator in interface Iterable<DictionaryCommand>public int size()
Dictionarysize in interface Dictionarypublic DictionaryHelpGenerator getHelpGenerator()
DictionarygetHelpGenerator in interface DictionaryCopyright © 2017 LSST. All rights reserved.