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

COVERAGE SUMMARY FOR SOURCE FILE [SimpleParamsVisitor.java]

nameclass, %method, %block, %line, %
SimpleParamsVisitor.java0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/23)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SimpleParamsVisitor0%   (0/1)0%   (0/5)0%   (0/62)0%   (0/23)
SimpleParamsVisitor (Writer, TypePrinter): void 0%   (0/1)0%   (0/15)0%   (0/6)
setPrintParamNumber (boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
setSeparatorString (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
visitParamSeparator (Class): void 0%   (0/1)0%   (0/13)0%   (0/5)
visitParamType (Class, int, Class): void 0%   (0/1)0%   (0/26)0%   (0/8)

1//
2// (c) Copyright, Moebius Solutions, 2002
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//
10/*
11 * $Id: SimpleParamsVisitor.java,v 1.1.1.5 2004/05/25 20:23:29 hastings Exp $
12 */
13package com.moesol.generator;
14 
15import java.io.*;
16import com.moesol.generator.core.*;
17import com.moesol.generator.printer.*;
18import com.moesol.generator.visitor.*;
19 
20public class SimpleParamsVisitor implements ParamTypeVisitor{
21    public SimpleParamsVisitor(Writer out, TypePrinter printer) {
22        this.out = out;
23        this.printer = printer;
24    }
25    public void setPrintParamNumber(boolean v) {
26        m_print_param_number = v;
27    }
28    public void setSeparatorString(String sep_string) {
29        m_sep_string = sep_string;
30    }
31    public void visitParamType(Class c, int nparam, Class paramType) throws ApplyException {
32        try {
33            printer.print(paramType, out);
34            if (m_print_param_number) {
35                out.write(" p");
36                out.write(Integer.toString(nparam));
37            }
38        } catch (IOException e) {
39            throw new ApplyException(e);
40        }
41    }
42    public void visitParamSeparator(Class c) throws ApplyException {
43        try {
44            out.write(m_sep_string);
45        } catch (IOException e) {
46            throw new ApplyException(e);
47        }
48    }
49    
50    private Writer out;
51    private TypePrinter printer;
52    private boolean m_print_param_number = true;
53    private String m_sep_string = ", ";
54}

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