1 11 package org.eclipse.jdt.internal.debug.eval.ast.instructions; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.jdt.debug.core.IJavaPrimitiveValue; 15 16 public class ConditionalJump extends Jump { 17 private boolean fJumpOnTrue; 18 19 public ConditionalJump(boolean jumpOnTrue) { 20 fJumpOnTrue= jumpOnTrue; 21 } 22 23 26 public void execute() throws CoreException { 27 IJavaPrimitiveValue condition= (IJavaPrimitiveValue)popValue(); 28 29 if (!(fJumpOnTrue ^ condition.getBooleanValue())) { 30 jump(fOffset); 31 } 32 } 33 34 37 public String toString() { 38 return InstructionsEvaluationMessages.ConditionalJump_conditional_jump_1; 39 } 40 41 } 42 | Popular Tags |