|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.sdr.CommandInput.PossibleCommand
public abstract static class CommandInput.PossibleCommand
A CommandInput.PossibleCommand
is an Apply
corresponding to
the most likely interpretation of the user's input. If this
Apply
is inapplicable to the given formation, we can
use the next()
method to get the
next-most-likely interpretation of the input, and try that
before giving up and complaining to the user.
Constructor Summary | |
---|---|
CommandInput.PossibleCommand()
|
Method Summary | |
---|---|
abstract Apply |
getApply()
Return the parsed command possibility; throwing BadCallException if there is a problem with the parse. |
abstract long |
getEndTime()
Return the time the user input was complete, in milliseconds since the epoch. |
abstract long |
getStartTime()
Return the time the user input began, in milliseconds since the epoch. |
abstract String |
getUserInput()
Return the raw user input. |
Iterator<CommandInput.PossibleCommand> |
iterator()
|
abstract CommandInput.PossibleCommand |
next()
Return the next possible command, or null if there are no more. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandInput.PossibleCommand()
Method Detail |
---|
public abstract String getUserInput()
public abstract long getStartTime()
public abstract long getEndTime()
public abstract Apply getApply() throws BadCallException
BadCallException
if there is a problem with the parse.
BadCallException
public abstract CommandInput.PossibleCommand next()
public final Iterator<CommandInput.PossibleCommand> iterator()
iterator
in interface Iterable<CommandInput.PossibleCommand>
|
sdr 0.21 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |