Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java')
-rw-r--r--org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java30
1 files changed, 20 insertions, 10 deletions
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java
index f18368e9e..843e81f06 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java
+++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIVoidValue.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 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
@@ -10,36 +10,41 @@
*******************************************************************************/
package org.eclipse.jdt.internal.debug.core.model;
-
import java.util.Collections;
import java.util.List;
+import org.eclipse.debug.core.model.IValue;
import org.eclipse.jdt.debug.core.IJavaType;
+import org.eclipse.jdt.debug.core.IJavaValue;
+import org.eclipse.jdt.debug.core.IJavaVariable;
/**
* Represents a value of "void"
*/
public class JDIVoidValue extends JDIValue {
-
-
+
public JDIVoidValue(JDIDebugTarget target) {
- super(target, target.getVM()!=null?target.getVM().mirrorOfVoid():null);
+ super(target, target.getVM() != null ? target.getVM().mirrorOfVoid()
+ : null);
}
- protected List getVariablesList() {
+ @Override
+ protected List<IJavaVariable> getVariablesList() {
return Collections.EMPTY_LIST;
}
-
+
/**
* @see IValue#getReferenceTypeName()
*/
+ @Override
public String getReferenceTypeName() {
return "void"; //$NON-NLS-1$
}
-
+
/**
* @see IValue#getValueString()
*/
+ @Override
public String getValueString() {
return "null"; //$NON-NLS-1$
}
@@ -47,6 +52,7 @@ public class JDIVoidValue extends JDIValue {
/**
* @see IJavaValue#getSignature()
*/
+ @Override
public String getSignature() {
return "V"; //$NON-NLS-1$
}
@@ -54,19 +60,23 @@ public class JDIVoidValue extends JDIValue {
/**
* @see IJavaValue#getArrayLength()
*/
+ @Override
public int getArrayLength() {
return -1;
}
-
+
/**
* @see IJavaValue#getJavaType()
*/
+ @Override
public IJavaType getJavaType() {
- return new JDIVoidType((JDIDebugTarget)getDebugTarget());
+ return new JDIVoidType((JDIDebugTarget) getDebugTarget());
}
+
/**
* @see java.lang.Object#toString()
*/
+ @Override
public String toString() {
return "void"; //$NON-NLS-1$
}

Back to the top