Coverage Report - org.webslinger.ext.wiki.parser.WikiFloatingPointLiteral
 
Classes in this File Line Coverage Branch Coverage Complexity
WikiFloatingPointLiteral
0%
0/14
0%
0/1
1.111
 
 1  
 package org.webslinger.ext.wiki.parser;
 2  
 
 3  
 public class WikiFloatingPointLiteral extends SimpleNode implements Literal {
 4  
     protected double value;
 5  
 
 6  
     public WikiFloatingPointLiteral(int id) {
 7  0
         super(id);
 8  0
     }
 9  
 
 10  
     public WikiFloatingPointLiteral(Wiki p, int id) {
 11  0
         super(p, id);
 12  0
     }
 13  
 
 14  
     public double getValue() {
 15  0
         return value;
 16  
     }
 17  
 
 18  
     public void setValue(double value) {
 19  0
         this.value = value;
 20  0
     }
 21  
 
 22  
     public void setStringValue(String value) {
 23  0
         setValue(Double.parseDouble(value));
 24  0
     }
 25  
 
 26  
     public String getStringValue() {
 27  0
         return Double.toString(getValue());
 28  
     }
 29  
 
 30  
     protected String stripL(String value) {
 31  0
         if (value.endsWith("l") || value.endsWith("L")) value = value.substring(0, value.length() - 1);
 32  0
         return value;
 33  
     }
 34  
 
 35  
     public Object jjtAccept(WikiVisitor visitor, Object data) {
 36  0
         return visitor.visit(this, data);
 37  
     }
 38  
 
 39  
     public String toString() {
 40  0
         return super.toString() + '(' + getValue() + ')';
 41  
     }
 42  
 }