blob: ae6ecaacae9980a2163c5f9b3f43c0d6d6248740 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.debug.eval.ast.instructions;
/**
* Pushes an int literal onto the stack.
*/
public class PushInt extends SimpleInstruction {
private int fValue;
public PushInt(int value) {
fValue = value;
}
public void execute() {
pushNewValue(fValue);
}
public String toString() {
return InstructionsEvaluationMessages.getString("PushInt.push__1") + fValue; //$NON-NLS-1$
}
}