blob: c3e55a9409318ec7bf2c1c088f12c3e64022e3a8 [file] [log] [blame]
package org.eclipse.jdt.internal.debug.eval.ast.instructions;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import com.sun.jdi.ReferenceType;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.Signature;
/**
* Pushes a reference type onto the stack.
*/
public class PushType extends SimpleInstruction {
private String fTypeName;
public PushType(String signature) {
fTypeName= signature;
}
public void execute() throws CoreException {
push(getType(fTypeName));
}
public String toString() {
return InstructionsEvaluationMessages.getString("PushType.push_type__1") + fTypeName; //$NON-NLS-1$
}
}