Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  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;
public class Return extends Instruction {
	public void run(final StackEntry stack) {
        if (this..hasAttribute("Target")) {
        	Struct target = stack.refFromElement(this."Target");        	
        	stack.getExecutingStack().setLastResult(target);
        }
        
        if (stack.boolFromSource("ResetFlag"true))
        	stack.getActivity().clearErrored();
        
    	stack.setState(.);
		stack.resume();
	}
	public void cancel(StackEntry stack) {
		// do nothing, this isn't cancellable
	}
New to GrepCode? Check out our FAQ X