Clover coverage report - PMD - 3.7
Coverage timestamp: Wed May 31 2006 09:25:59 EDT
file stats: LOC: 72   Methods: 5
NCLOC: 27   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ViewerModelEvent.java - 0% 0% 0%
coverage
 1    package net.sourceforge.pmd.util.viewer.model;
 2   
 3    /**
 4    * The event which will be sent every time the model changes
 5    * <p/>
 6    * <p/>
 7    * <p/>
 8    * <p/>
 9    * <p/>
 10    * Note: the instances will be immutable
 11    * <p/>
 12    * </p>
 13    *
 14    * @author Boris Gruschko ( boris at gruschko.org )
 15    * @version $Id: ViewerModelEvent.java,v 1.7 2006/02/10 14:15:31 tomcopeland Exp $
 16    */
 17    public class ViewerModelEvent {
 18    /**
 19    * reason in the case of code recompilation
 20    */
 21    public static final int CODE_RECOMPILED = 1;
 22    /**
 23    * reason in the case of node selection
 24    */
 25    public static final int NODE_SELECTED = 2;
 26    /**
 27    * reason in the case of path extension
 28    */
 29    public static final int PATH_EXPRESSION_APPENDED = 3;
 30    /**
 31    * reason in the case of path expression evaluation
 32    */
 33    public static final int PATH_EXPRESSION_EVALUATED = 4;
 34    private Object source;
 35    private int reason;
 36    private Object parameter;
 37   
 38    /**
 39    * Creates an event
 40    *
 41    * @param source event's source
 42    * @param reason event's reason
 43    */
 44  0 public ViewerModelEvent(Object source, int reason) {
 45  0 this(source, reason, null);
 46    }
 47   
 48    /**
 49    * Creates an event
 50    *
 51    * @param source event's source
 52    * @param reason event's reason
 53    * @param parameter parameter object
 54    */
 55  0 public ViewerModelEvent(Object source, int reason, Object parameter) {
 56  0 this.source = source;
 57  0 this.reason = reason;
 58  0 this.parameter = parameter;
 59    }
 60   
 61  0 public int getReason() {
 62  0 return reason;
 63    }
 64   
 65  0 public Object getSource() {
 66  0 return source;
 67    }
 68   
 69  0 public Object getParameter() {
 70  0 return parameter;
 71    }
 72    }