| /******************************************************************************* |
| * Copyright (c) 2010 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.jsdt.debug.internal.chrome.jsdi; |
| |
| import org.eclipse.wst.jsdt.debug.core.jsdi.NullValue; |
| import org.eclipse.wst.jsdt.debug.core.jsdi.VirtualMachine; |
| |
| /** |
| * Chrome impl of {@link NullValue} |
| * |
| * @since 1.0 |
| */ |
| public class NullImpl extends MirrorImpl implements NullValue { |
| |
| /** |
| * String representation of the value<br><br> |
| * Value is: <code>null</code> |
| */ |
| public static final String NULL = "null"; //$NON-NLS-1$ |
| |
| /** |
| * Constructor |
| * |
| * @param vm the underlying {@link VirtualMachine} |
| */ |
| public NullImpl(VirtualMachine vm) { |
| super(vm); |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.wst.jsdt.debug.core.jsdi.Value#valueString() |
| */ |
| public String valueString() { |
| return NULL; |
| } |
| |
| /* (non-Javadoc) |
| * @see java.lang.Object#toString() |
| */ |
| public String toString() { |
| return valueString(); |
| } |
| } |