Clover coverage report - DrJava Test Coverage (drjava-20120304-r5456)
Coverage timestamp: Sun Mar 4 2012 03:13:23 CST
file stats: LOC: 84   Methods: 9
NCLOC: 13   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DummyInteractionsListener.java - - 22.2% 22.2%
coverage coverage
 1    /*BEGIN_COPYRIGHT_BLOCK
 2    *
 3    * Copyright (c) 2001-2010, JavaPLT group at Rice University (drjava@rice.edu)
 4    * All rights reserved.
 5    *
 6    * Redistribution and use in source and binary forms, with or without
 7    * modification, are permitted provided that the following conditions are met:
 8    * * Redistributions of source code must retain the above copyright
 9    * notice, this list of conditions and the following disclaimer.
 10    * * Redistributions in binary form must reproduce the above copyright
 11    * notice, this list of conditions and the following disclaimer in the
 12    * documentation and/or other materials provided with the distribution.
 13    * * Neither the names of DrJava, the JavaPLT group, Rice University, nor the
 14    * names of its contributors may be used to endorse or promote products
 15    * derived from this software without specific prior written permission.
 16    *
 17    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 18    * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 19    * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 20    * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 21    * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 22    * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 23    * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 24    * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 25    * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 26    * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 27    * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 28    *
 29    * This software is Open Source Initiative approved Open Source Software.
 30    * Open Source Initative Approved is a trademark of the Open Source Initiative.
 31    *
 32    * This file is part of DrJava. Download the current version of this project
 33    * from http://www.drjava.org/ or http://sourceforge.net/projects/drjava/
 34    *
 35    * END_COPYRIGHT_BLOCK*/
 36   
 37    package edu.rice.cs.drjava.model.repl;
 38   
 39    import java.io.File;
 40   
 41    /** A dummy InteractionsListener that does nothing.
 42    * @version $Id: DummyInteractionsListener.java 5175 2010-01-20 08:46:32Z mgricken $
 43    */
 44    public class DummyInteractionsListener implements InteractionsListener {
 45   
 46    /** Called after an interaction is started by the GlobalModel. */
 47  0 public void interactionStarted() { }
 48   
 49    /** Called when an interaction has finished running. */
 50  0 public void interactionEnded() { }
 51   
 52    /** Called when the interactions window generates a syntax error.
 53    * @param offset the error's offset into the InteractionsDocument
 54    * @param length the length of the error
 55    */
 56  0 public void interactionErrorOccurred(int offset, int length) { }
 57   
 58    /** Called when the interactionsJVM has begun resetting. */
 59  1 public void interpreterResetting() { }
 60   
 61    /** Called when the interactions window is reset. */
 62  3 public void interpreterReady(File wd) { }
 63   
 64    /** Called when the interactions JVM was closed by System.exit
 65    * or by being aborted. Immediately after this the interactions
 66    * will be reset.
 67    * @param status the exit code
 68    */
 69  0 public void interpreterExited(int status) { }
 70   
 71    /** Called if the interpreter reset failed. (Subclasses must maintain listeners.) */
 72  0 public void interpreterResetFailed(Throwable t) { }
 73   
 74    /** Called when the active interpreter is changed.
 75    * @param inProgress Whether the new interpreter is currently processing an interaction (i.e. whether an
 76    * interactionEnded event will be fired)
 77    */
 78  0 public void interpreterChanged(boolean inProgress) { }
 79   
 80    /** Called when enter was typed in the interactions pane but the interaction was incomplete. */
 81  0 public void interactionIncomplete() { }
 82   
 83    }
 84