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 With extends Ops {
	public void prepTarget(StackEntry stack) {
        Struct var = stack.refFromSource("Target");
        this.setTarget(stackvar);
        
		if (stack.codeHasAttribute("SetTo")) {
	        Struct var3 = stack.refFromSource("SetTo");
			if (var instanceof ScalarStruct
				((ScalarStructvar).adaptValue(var3);
			else 
				stack.log().errorTr(540);
		}
		this.nextOpResume(stack);
	}
	public void runOp(StackEntry stackXElement opStruct target) {
		stack.operate(targetop);
	}
	public void cancel(StackEntry stack) {
		// do nothing, this isn't cancellable
	}
New to GrepCode? Check out our FAQ X