Coverage Report - org.webslinger.rules.CSSAction
 
Classes in this File Line Coverage Branch Coverage Complexity
CSSAction
71%
10/14
100%
1/1
1.125
 
 1  
 package org.webslinger.rules;
 2  
 
 3  
 import java.io.IOException;
 4  
 import javax.servlet.ServletRequest;
 5  
 
 6  
 import org.webslinger.Webslinger;
 7  
 import org.webslinger.container.WebslingerContainer;
 8  
 
 9  
 public class CSSAction extends SimpleNode {
 10  
     private Action action;
 11  
     private AbstractValue value;
 12  
 
 13  
     public CSSAction(int id) {
 14  0
         super(id);
 15  0
     }
 16  
 
 17  
     public CSSAction(Rules p, int id) {
 18  124
         super(p, id);
 19  124
     }
 20  
 
 21  
     /** Accept the visitor. **/
 22  
     public Object jjtAccept(RulesVisitor visitor, Object data) {
 23  0
         return visitor.visit(this, data);
 24  
     }
 25  
 
 26  
     void setAction(Action action) {
 27  124
         this.action = action;
 28  124
     }
 29  
 
 30  
     public Action getAction() {
 31  124
         return action;
 32  
     }
 33  
 
 34  
     public void compile(WebslingerContainer container) throws IOException {
 35  122
         if (jjtGetNumChildren() > 0) {
 36  103
             value = (AbstractValue) jjtGetChild(0);
 37  103
             value.compile(container);
 38  
         }
 39  122
     }
 40  
 
 41  
     public AbstractValue getValue() {
 42  2309
         return value;
 43  
     }
 44  
 
 45  
     public String toString() {
 46  0
         return "Action(" + getAction() + ")";
 47  
     }
 48  
 }