public class ChainedCommandSource extends CommandSource
Modifier and Type | Field and Description |
---|---|
protected int |
curSourceNum |
protected boolean |
exitOnAnyError |
protected CommandSource[] |
sources |
err
Constructor and Description |
---|
ChainedCommandSource(boolean exitOnAnyError,
CommandSource... sources) |
ChainedCommandSource(CommandSource... sources) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getNextCommand(java.util.List<java.lang.String> buf) |
boolean |
reportError(java.lang.String message)
Reports an error back to the user.
|
reportError
protected final CommandSource[] sources
protected int curSourceNum
protected final boolean exitOnAnyError
public ChainedCommandSource(CommandSource... sources)
public ChainedCommandSource(boolean exitOnAnyError, CommandSource... sources)
public java.util.List<java.lang.String> getNextCommand(java.util.List<java.lang.String> buf)
getNextCommand
in class CommandSource
public boolean reportError(java.lang.String message)
CommandSource
reportError
in class CommandSource