blob: 3442c4f3a96ccd17cb435aad0fc80517993fcfc4 [file] [log] [blame]
/*
* (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.debug.eval.ast.instructions;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.debug.core.IJavaPrimitiveValue;
public class NotOperator extends UnaryOperator {
public NotOperator(int expressionTypeId, int start) {
super(expressionTypeId, start);
}
/*
* @see Instruction#execute()
*/
public void execute() throws CoreException {
IJavaPrimitiveValue value= (IJavaPrimitiveValue)popValue();
pushNewValue(!value.getBooleanValue());
}
public String toString() {
return InstructionsEvaluationMessages.getString("NotOperator._!___operator_1"); //$NON-NLS-1$
}
}