public abstract class XDebugAbstractValue extends XDebugElement implements IValue {
private IVariable[] fVariables;
protected String fValueString;
- protected String fTypeName;
+ /*protected*/private String fTypeName;
private boolean fhasChanged;
- public XDebugAbstractValue(XDebugStackFrame frame, Node varNode) {
+ public XDebugAbstractValue(XDebugStackFrame frame, Node varNode) throws DebugException {
super((XDebugTarget) frame.getDebugTarget());
fTypeName = PHPDebugUtils.getAttributeValue(varNode,"type");
return (fVariables.length > 0);
}
- public abstract void renderValueString(String data);
+ public abstract void renderValueString(String data) throws DebugException;
public abstract boolean verifyValue(String expression);
- public boolean setValue(String expression) {
+ public boolean setValue(String expression) throws DebugException {
if (!verifyValue(expression)) {
return false;
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugArrayValue extends XDebugAbstractValue {
- public XDebugArrayValue(XDebugStackFrame variable, Node value) {
+ public XDebugArrayValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
- public void renderValueString(String data) {
+ public void renderValueString(String data) throws DebugException {
if (data.equals("")) {
fValueString = "empty";
} else {
- if ("array".equals(fTypeName)) {
+ if ("array".equals(getReferenceTypeName())) {
fValueString = "array";
} else {
fValueString = data;
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugBooleanValue extends XDebugAbstractValue {
- public XDebugBooleanValue(XDebugStackFrame variable, Node value) {
+ public XDebugBooleanValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugFloatValue extends XDebugAbstractValue {
- public XDebugFloatValue(XDebugStackFrame variable, Node value) {
+ public XDebugFloatValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugIntValue extends XDebugAbstractValue {
- public XDebugIntValue(XDebugStackFrame frame, Node value) {
+ public XDebugIntValue(XDebugStackFrame frame, Node value) throws DebugException {
super(frame, value);
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugObjectValue extends XDebugAbstractValue {
- public XDebugObjectValue(XDebugStackFrame variable, Node value) {
+ public XDebugObjectValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugResourceValue extends XDebugAbstractValue {
- public XDebugResourceValue(XDebugStackFrame variable, Node value) {
+ public XDebugResourceValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
return fVariables;
}
- private void parseVariable(Node localVariables, Node globalVariables) {
+ private void parseVariable(Node localVariables, Node globalVariables) throws DebugException {
NodeList property = localVariables.getChildNodes();
NodeList propertyGlobal = globalVariables.getChildNodes();
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugStringValue extends XDebugAbstractValue {
- public XDebugStringValue(XDebugStackFrame variable, Node value) {
+ public XDebugStringValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
package net.sourceforge.phpeclipse.xdebug.php.model;
+import org.eclipse.debug.core.DebugException;
import org.w3c.dom.Node;
public class XDebugValue extends XDebugAbstractValue {
- public XDebugValue(XDebugStackFrame variable, Node value) {
+ public XDebugValue(XDebugStackFrame variable, Node value) throws DebugException {
super(variable, value);
}
* @param frame owning stack frame
* @param name variable name
*/
- public XDebugVariable(XDebugStackFrame frame, Node property) {
+ public XDebugVariable(XDebugStackFrame frame, Node property) throws DebugException {
if (frame != null ) {
//super((XDebugTarget) frame.getDebugTarget());
fFrame = frame;