blob: df5746b996ef08d634fb79f066989348e7801bbb [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.core.model;
import java.util.Collections;
import java.util.List;
import org.eclipse.jdt.debug.core.IJavaType;
/**
* Represents a value of "void"
*/
public class JDIVoidValue extends JDIValue {
public JDIVoidValue(JDIDebugTarget target) {
super(target, null);
}
protected List getVariablesList() {
return Collections.EMPTY_LIST;
}
/**
* @see IValue#getReferenceTypeName()
*/
public String getReferenceTypeName() {
return "void"; //$NON-NLS-1$
}
/**
* @see IValue#getValueString()
*/
public String getValueString() {
return "null"; //$NON-NLS-1$
}
/**
* @see IJavaValue#getSignature()
*/
public String getSignature() {
return "V"; //$NON-NLS-1$
}
/**
* @see IJavaValue#getArrayLength()
*/
public int getArrayLength() {
return -1;
}
/**
* @see IJavaValue#getJavaType()
*/
public IJavaType getJavaType() {
return new JDIVoidType((JDIDebugTarget)getDebugTarget());
}
/**
* @see java.lang.Object#toString()
*/
public String toString() {
return "void"; //$NON-NLS-1$
}
}