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