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

COVERAGE SUMMARY FOR SOURCE FILE [ValuePrinter.java]

nameclass, %method, %block, %line, %
ValuePrinter.java100% (1/1)50%  (1/2)15%  (3/20)17%  (1/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ValuePrinter100% (1/1)50%  (1/2)15%  (3/20)17%  (1/6)
toString (Object): String 0%   (0/1)0%   (0/17)0%   (0/5)
ValuePrinter (): void 100% (1/1)100% (3/3)100% (1/1)

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: ValuePrinter.java,v 1.1.1.5 2004/05/25 20:23:30 hastings Exp $
12 */
13package com.moesol.generator.printer;
14 
15import java.io.*;
16 
17/**
18 * Print the value of an object. For primitive and array types
19 * subclasses print the value suitable for their language.
20 */
21public abstract class ValuePrinter {
22    public abstract void print(Object value, Writer out) throws IOException;
23    public String toString(Object value) {
24        try {
25            StringWriter sw = new StringWriter();
26            print(value, sw);
27            return sw.toString();
28        } catch (IOException e) {
29            throw new RuntimeException(e);
30        }
31    }
32}

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