1 /* Created on 23.11.2004
3 * TODO To change the template for this generated file go to
4 * Window - Preferences - Java - Code Style - Code Templates
6 package net.sourceforge.phpeclipse.xdebug.php.model;
8 import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils;
10 import org.eclipse.debug.core.DebugException;
11 import org.eclipse.debug.core.model.IValue;
12 import org.eclipse.debug.core.model.IVariable;
13 import org.w3c.dom.Node;
18 * TODO To change the template for this generated type comment go to
19 * Window - Preferences - Java - Code Style - Code Templates
22 public /*abstract*/ class XDebugAbstractValue extends XDebugElement implements IValue {
23 private IVariable[] fVariables;
24 private String fValueString;
25 private String fTypeName;
26 private boolean fhasChanged;
27 protected String rowValue;
29 public XDebugAbstractValue(XDebugStackFrame frame, Node value) throws DebugException {
30 super(frame == null ? null : (XDebugTarget)frame.getDebugTarget());
32 fTypeName = PHPDebugUtils.getAttributeValue(value, "type");
34 fVariables = new IVariable[0];
38 rowValue = value.getFirstChild().getNodeValue();
39 } catch (NullPointerException e) {
44 public boolean hasChanged() {
49 * @see org.eclipse.debug.core.model.IValue#getReferenceTypeName()
51 public String getReferenceTypeName() throws DebugException {
56 * @see org.eclipse.debug.core.model.IValue#getValueString()
58 public String getValueString() throws DebugException {
63 * @see org.eclipse.debug.core.model.IValue#isAllocated()
65 public boolean isAllocated() throws DebugException {
70 * @see org.eclipse.debug.core.model.IValue#getVariables()
72 public IVariable[] getVariables() throws DebugException {
77 * @see org.eclipse.debug.core.model.IValue#hasVariables()
79 public boolean hasVariables() throws DebugException {
80 return (fVariables.length > 0);
83 public boolean setValue(String expression) throws DebugException {
87 protected boolean verifyValue(String expression) {
91 protected boolean supportsValueModification() {
95 protected void setValueString(String valueString) {
96 fValueString = valueString;
99 protected void setChildren(IVariable[] newChildren) {
100 fVariables = newChildren;