Clover coverage report - Code Coverage for hivemind release 1.0
Coverage timestamp: Wed Sep 22 2004 08:05:25 EDT
file stats: LOC: 41   Methods: 0
NCLOC: 6   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
MethodFab.java - - - -
coverage
 1   
 //  Copyright 2004 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.hivemind.service;
 16   
 
 17   
 /**
 18   
  * Represents a created method on a class; used to add catch handlers.
 19   
  * @see org.apache.hivemind.service.ClassFab#addMethod(int, String, Class, Class[], Class[], String)
 20   
  */
 21   
 public interface MethodFab
 22   
 {
 23   
     /**
 24   
      * Adds a catch to the method.  The body must end with a return or throw.
 25   
      * The special Javassist varaiable <code>$e</code> represents the caught exception. 
 26   
      */
 27   
     public void addCatch(Class exceptionClass, String catchBody);
 28   
 
 29   
     /**
 30   
      * Extends the existing method with additional code. The new body can reference the
 31   
      * return value generated by the existing body using the special variable
 32   
      * <code>$_</code>, for example <code>$_ = 2 * $_</code>.
 33   
      *  
 34   
      * @param body a block to execute after any existing code in the method
 35   
      * @param asFinally if true, the block provided wil execute as with a finally block (even
 36   
      * if an exception is thrown)
 37   
      */
 38   
 
 39   
     public void extend(String body, boolean asFinally);
 40   
 }
 41