blob: a9ad7cb1712355a6e4ece81f040c37690d781e01 [file] [log] [blame]
package org.eclipse.jdi.internal;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import com.sun.jdi.Value;
import com.sun.jdi.VoidType;
/**
* this class implements the corresponding interfaces
* declared by the JDI specification. See the com.sun.jdi package
* for more information.
*
*/
public class VoidTypeImpl extends TypeImpl implements VoidType {
/**
* Creates new instance.
*/
public VoidTypeImpl(VirtualMachineImpl vmImpl) {
super("VoidType", vmImpl, "void" , "V"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
/**
* @return Returns text representation of this type.
*/
public String name() {
return fName;
}
/**
* @return JNI-style signature for this type.
*/
public String signature() {
return fSignature;
}
/**
* @return Returns modifier bits.
*/
public int modifiers() {
throw new InternalError(JDIMessages.getString("VoidTypeImpl.A_VoidType_does_not_have_modifiers_1")); //$NON-NLS-1$
}
/**
* @return Create a null value instance of the type.
*/
public Value createNullValue() {
return new VoidValueImpl(virtualMachineImpl());
}
}