EMMA Coverage Report (generated Sat Jun 02 16:47:50 EDT 2012)
[all classes][net.sf.madmap]

COVERAGE SUMMARY FOR SOURCE FILE [HprofStackTraceData.java]

nameclass, %method, %block, %line, %
HprofStackTraceData.java100% (1/1)67%  (2/3)20%  (12/61)45%  (5/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class HprofStackTraceData100% (1/1)67%  (2/3)20%  (12/61)45%  (5/11)
toString (): String 0%   (0/1)0%   (0/49)0%   (0/6)
HprofStackTraceData (int, Vector): void 100% (1/1)100% (9/9)100% (4/4)
getStackVector (): Vector 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright 2008 Eric Caspole
3 * 
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
5 * file except in compliance with the License. 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 distributed under
10 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11 * KIND, either express or implied. See the License for the specific language governing
12 * permissions and limitations under the License.
13 */
14 
15package net.sf.madmap;
16 
17import java.util.*;
18import java.io.*;
19 
20public class HprofStackTraceData extends HprofData {
21  int     _id;
22  Vector  _elements;
23  
24  public HprofStackTraceData( int id, Vector elems ) {
25    _id       = id;
26    _elements = elems;
27  }
28  
29  public Vector getStackVector() { return _elements; }
30  
31  public String toString() {
32    StringBuffer p = new StringBuffer();
33 
34    p.append("TRACE " + _id + ":\n");
35    for (int i = 0; i < _elements.size(); i++) {
36      String s = (String) _elements.elementAt( i );
37      p.append("  " + s + "\n");
38    }
39    return p.toString();
40  }
41  
42}

[all classes][net.sf.madmap]
EMMA 2.0.5312 (C) Vladimir Roubtsov