Whole refactor.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugIntValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugIntValue extends XDebugAbstractValue {
6         public XDebugIntValue(XDebugStackFrame frame, Node value) {
7                 super(frame, value);
8         }
9         
10         public boolean supportsValueModification() {
11                 return true;
12         }
13                 
14         public void renderValueString(String dataString) {
15                 fValueString = dataString;
16         }
17         
18         public boolean verifyValue(String expression) {
19                 try {
20                         Integer.parseInt(expression);
21                 } catch (NumberFormatException e) {
22                         return false;
23                 }
24                 return true;
25         }
26 }