blob: a6e3e2276575670f0943b04cfc912eecc275823f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.debug.internal.jsd2.jsdi;
import org.eclipse.wst.jsdt.debug.core.jsdi.UndefinedValue;
import org.eclipse.wst.jsdt.debug.core.jsdi.VirtualMachine;
/**
* Default implementation of {@link UndefinedValue} for JSD2.
*
* @since 1.0
*/
public class UndefinedValueImpl extends MirrorImpl implements UndefinedValue {
/**
* Textual representation of undefined<br><br>
* value is: <code>undefined</code>
*/
public static final String UNDEFINED = "undefined"; //$NON-NLS-1$
/**
* Constructor
*
* @param vm the underlying {@link VirtualMachine}
*/
public UndefinedValueImpl(VirtualMachine vm) {
super(vm);
}
/* (non-Javadoc)
* @see org.eclipse.wst.jsdt.debug.core.jsdi.Value#valueString()
*/
public String valueString() {
return UNDEFINED;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
return valueString();
}
}