2 * Created on 23.11.2004
4 * TODO To change the template for this generated file go to
5 * Window - Preferences - Java - Code Style - Code Templates
7 package net.sourceforge.phpeclipse.xdebug.core;
9 import org.eclipse.debug.core.DebugException;
10 import org.eclipse.debug.core.model.IValue;
11 import org.eclipse.debug.core.model.IVariable;
16 * TODO To change the template for this generated type comment go to
17 * Window - Preferences - Java - Code Style - Code Templates
19 public class XDebugVariable extends XDebugElement implements IVariable {
23 private XDebugStackFrame fFrame;
26 * Constructs a variable contained in the given stack frame
27 * with the given name.
29 * @param frame owning stack frame
30 * @param name variable name
32 public XDebugVariable(XDebugStackFrame frame, String name) {
33 super((XDebugTarget) frame.getDebugTarget());
38 * @see org.eclipse.debug.core.model.IVariable#getValue()
40 public IValue getValue() throws DebugException {
41 return ((XDebugTarget)getDebugTarget()).getVariableValue(this);
44 * @see org.eclipse.debug.core.model.IVariable#getName()
46 public String getName() throws DebugException {
50 * @see org.eclipse.debug.core.model.IVariable#getReferenceTypeName()
52 public String getReferenceTypeName() throws DebugException {
53 // TODO Auto-generated method stub
57 * @see org.eclipse.debug.core.model.IVariable#hasValueChanged()
59 public boolean hasValueChanged() throws DebugException {
60 // TODO Auto-generated method stub
64 * @see org.eclipse.debug.core.model.IValueModification#setValue(java.lang.String)
66 public void setValue(String expression) throws DebugException {
69 * @see org.eclipse.debug.core.model.IValueModification#setValue(org.eclipse.debug.core.model.IValue)
71 public void setValue(IValue value) throws DebugException {
74 * @see org.eclipse.debug.core.model.IValueModification#supportsValueModification()
76 public boolean supportsValueModification() {
80 * @see org.eclipse.debug.core.model.IValueModification#verifyValue(java.lang.String)
82 public boolean verifyValue(String expression) throws DebugException {
86 * @see org.eclipse.debug.core.model.IValueModification#verifyValue(org.eclipse.debug.core.model.IValue)
88 public boolean verifyValue(IValue value) throws DebugException {
93 * Returns the stack frame owning this variable.
95 * @return the stack frame owning this variable
97 protected XDebugStackFrame getStackFrame() {