03a6439a87e73e4a18dfda8d709fa9101dfacf9f
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugFloatValue.java
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,
8                         String TypeName) {
9                 super(variable, varNode, TypeName);
10
11         }
12
13         public boolean supportsValueModification() {
14                 return true;
15         }
16
17         public void setType(String typeName) {
18                 fType = XDebugAbstractValue.VALUETYPE_FLOAT;
19                 fTypeName = typeName;
20         }
21
22         public void renderValueString(String data) {
23                 fValueString = data;
24         }
25
26         public boolean verifyValue(String expression) {
27                 try {
28                         Float.parseFloat(expression);
29                 } catch (NumberFormatException e) {
30                         return false;
31                 }
32                 return true;
33         }
34
35 }