/* ************************************************************************
#
# DivConq
#
# http://divconq.com/
#
# Copyright:
# Copyright 2014 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# * Andy White
#
************************************************************************ */
package divconq.script.inst;
import divconq.script.ExecuteState;
import divconq.script.Instruction;
import divconq.script.StackEntry;
public class Break extends Instruction {
@Override
public void run(final StackEntry stack) {
stack.setState(ExecuteState.Break);
stack.resume();
}
@Override
public void cancel(StackEntry stack) {
// do nothing, this isn't cancellable
}
}