EMMA Coverage Report (generated Mon Mar 20 21:34:30 PST 2006)
[all classes][com.moesol.generator]

COVERAGE SUMMARY FOR SOURCE FILE [ConstructorCallable.java]

nameclass, %method, %block, %line, %
ConstructorCallable.java100% (1/1)44%  (4/9)45%  (19/42)55%  (6/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ConstructorCallable100% (1/1)44%  (4/9)45%  (19/42)55%  (6/11)
getExceptionTypes (): Class [] 0%   (0/1)0%   (0/4)0%   (0/1)
getModifiers (): int 0%   (0/1)0%   (0/4)0%   (0/1)
getReturnType (): Class 0%   (0/1)0%   (0/2)0%   (0/1)
isImpl (): boolean 0%   (0/1)0%   (0/2)0%   (0/1)
isOverloaded (): boolean 0%   (0/1)0%   (0/11)0%   (0/1)
ConstructorCallable (Constructor): void 100% (1/1)100% (6/6)100% (3/3)
getDeclaringClass (): Class 100% (1/1)100% (4/4)100% (1/1)
getName (): String 100% (1/1)100% (5/5)100% (1/1)
getParameterTypes (): Class [] 100% (1/1)100% (4/4)100% (1/1)

1//
2// (c) Copyright, Moebius Solutions, 2002, 2003
3//
4//                       All Rights Reserved
5//
6// This material may be reproduced by or for the U. S. Government
7// pursuant to the copyright license under the clause at
8// DFARS 252.227-7013 (OCT 1988).
9//
10package com.moesol.generator;
11 
12import java.lang.reflect.*;
13 
14public class ConstructorCallable extends Callable {
15    public ConstructorCallable(Constructor constructor) {
16        this.constructor = constructor;
17    }
18    public Class getDeclaringClass() {
19        return constructor.getDeclaringClass();
20    }
21    public Class getReturnType() {
22        return null;
23    }
24    public Class[] getParameterTypes() {
25        return constructor.getParameterTypes();
26    }
27    public Class[] getExceptionTypes() {
28        return constructor.getExceptionTypes();
29    }
30    public String getName() {
31        return ClassGenerator.stripPackageName(constructor.getName());
32    }
33    public int getModifiers() {
34        return constructor.getModifiers();
35    }
36    public boolean isOverloaded() {
37        return constructor.getDeclaringClass().getDeclaredConstructors().length > 1;
38    }
39        public boolean isImpl() {
40                // TODO Auto-generated method stub
41                return false;
42        }
43    
44        Constructor constructor;    
45}

[all classes][com.moesol.generator]
EMMA 2.0.5312 (C) Vladimir Roubtsov