af573eae7df15bcbaf8d90fb01013ce1da51d6e2
[phpeclipse.git] /
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugIntValue extends XDebugAbstractValue {
6
7         public XDebugIntValue(XDebugVariable variable, Node varNode,String TypeName) {
8                 super(variable, varNode,TypeName);
9                 
10         }
11         
12         public XDebugIntValue(XDebugVariable variable,String TypeName) {
13                 super(variable,TypeName);
14                 
15         }
16         
17         public void setType(String typeName) {
18                 fType=XDebugAbstractValue.VALUETYPE_INT;
19                 fTypeName=typeName;
20         }
21         
22         public boolean supportsValueModification() {
23                 return true;
24         }
25                 
26         public void renderValueString(String dataString) {
27                 fValueString=dataString;
28         }
29
30         
31         public boolean verifyValue(String expression) {
32                 try {
33                         Integer.parseInt(expression);
34                 } catch (NumberFormatException e) {
35                         return false;
36                 }
37                 return true;
38         }
39         
40         /*public String toString() {
41                 return null;
42         }*/
43
44 }