Coverage Report - org.webslinger.ext.wiki.parser.WikiText
 
Classes in this File Line Coverage Branch Coverage Complexity
WikiText
73%
8/11
N/A
1
 
 1  
 package org.webslinger.ext.wiki.parser;
 2  
 
 3  
 public class WikiText extends SimpleNode implements InlineNode {
 4  
     protected String text;
 5  
 
 6  
     public WikiText(int id) {
 7  0
         super(id);
 8  0
     }
 9  
 
 10  
     public WikiText(Wiki p, int id) {
 11  78
         super(p, id);
 12  78
     }
 13  
 
 14  
     public String getText() {
 15  77
         return text;
 16  
     }
 17  
 
 18  
     public void setText(String text) {
 19  77
         this.text = text;
 20  77
     }
 21  
 
 22  
     public void addText(String text) {
 23  22
         this.text += text;
 24  22
     }
 25  
 
 26  
     public Object jjtAccept(WikiVisitor visitor, Object data) {
 27  105
         return visitor.visit(this, data);
 28  
     }
 29  
 
 30  
     public String toString() {
 31  0
         return super.toString() + '(' + getText() + ')';
 32  
     }
 33  
 }