public abstract class AbstractCommand extends java.lang.Object implements PlaybackCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_PREFIX |
Constructor and Description |
---|
AbstractCommand(java.lang.String text,
int line) |
AbstractCommand(java.lang.String text,
int line,
boolean executeInAwt) |
Modifier and Type | Method and Description |
---|---|
protected abstract Promise<java.lang.Object> |
_execute(PlaybackContext context) |
boolean |
canGoFurther() |
void |
dumpCommand(PlaybackContext context) |
void |
dumpError(PlaybackContext context,
java.lang.String text) |
Promise<java.lang.Object> |
execute(PlaybackContext context) |
int |
getLine() |
java.io.File |
getScriptDir() |
java.lang.String |
getText() |
protected boolean |
isAwtThread() |
protected boolean |
isToDumpCommand() |
PlaybackCommand |
setScriptDir(java.io.File scriptDir) |
public static final java.lang.String CMD_PREFIX
public AbstractCommand(java.lang.String text, int line)
public AbstractCommand(java.lang.String text, int line, boolean executeInAwt)
public java.lang.String getText()
public int getLine()
public boolean canGoFurther()
canGoFurther
in interface PlaybackCommand
public final Promise<java.lang.Object> execute(PlaybackContext context)
execute
in interface PlaybackCommand
protected boolean isToDumpCommand()
protected boolean isAwtThread()
protected abstract Promise<java.lang.Object> _execute(PlaybackContext context)
public void dumpCommand(PlaybackContext context)
public void dumpError(PlaybackContext context, java.lang.String text)
public java.io.File getScriptDir()
getScriptDir
in interface PlaybackCommand
public PlaybackCommand setScriptDir(java.io.File scriptDir)