jp.vmi.selenium.selenese.command.EndLoopImpl Maven / Gradle / Ivy
package jp.vmi.selenium.selenese.command;
import jp.vmi.selenium.selenese.Context;
import jp.vmi.selenium.selenese.result.Result;
import static jp.vmi.selenium.selenese.result.Success.*;
/**
*
*/
public abstract class EndLoopImpl extends AbstractCommand implements EndLoop {
EndLoopImpl(int index, String name, String[] args, ArgumentType... argTypes) {
super(index, name, args, argTypes);
}
@Override
public boolean mayUpdateScreen() {
return false;
}
@Override
protected Result executeImpl(Context context, String... curArgs) {
StartLoop startLoop = getStartLoop();
startLoop.incrementReachedCount();
context.getCommandListIterator().jumpTo(startLoop);
return SUCCESS;
}
}