aspoev.interpreter.runtime
Interface CommandExecutioner


public interface CommandExecutioner

An interface for registering callback behavior with the Command Line Evironment. An implementor registers itself with the command line environment to be notified when keywords, or cues precede input commands.


Method Summary
 boolean executeCommand(java.lang.String[] args)
          Called back by the Command Line Environment when this command's key word is recognized.
 java.lang.String getCommandCue()
           
 

Method Detail

getCommandCue

public java.lang.String getCommandCue()
Returns:
- the (one word) keyword that cues for this command to accept the remainder of the input.

executeCommand

public boolean executeCommand(java.lang.String[] args)
Called back by the Command Line Environment when this command's key word is recognized. The first String in the argument array is the keword cue. Returns true if this command processed the command, false if this command executioner does not handle this command, or wants to hand the command down.