public class CmndProc extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CmndProc.Command
Inner class to implement command decoding
|
static interface |
CmndProc.Dispatch
Inner interface to define command dispatching
|
static class |
CmndProc.Lookup
Inner class to implement lookup tables
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CMD_AMBIG |
static int |
CMD_UNKNOWN |
| Constructor and Description |
|---|
CmndProc()
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(CmndProc.Dispatch disp,
CmndProc.Command cmnd)
Adds a command processor
|
boolean |
process(String line)
Processes a command line
|
static int |
scanArgs(Scanner scan,
String types,
Object[] args,
CmndProc.Lookup... lookup) |
public static final int CMD_AMBIG
public static final int CMD_UNKNOWN
public void add(CmndProc.Dispatch disp, CmndProc.Command cmnd)
public boolean process(String line)
public static int scanArgs(Scanner scan, String types, Object[] args, CmndProc.Lookup... lookup)
Copyright © 2022 LSST. All rights reserved.