com.vladium.emma.report
Class SrcFileItem

java.lang.Object
  extended bycom.vladium.emma.report.Item
      extended bycom.vladium.emma.report.SrcFileItem
All Implemented Interfaces:
IItem

public final class SrcFileItem
extends Item

Author:
Vlad Roubtsov, (C) 2003

Nested Class Summary
protected static class Item.ItemMetadata
           
 class SrcFileItem.LineCoverageData
           
 
Field Summary
protected  int[] m_aggregates
           
private  int m_firstLine
           
private  java.lang.String m_fullVMName
           
private  IntObjectMap m_lineCoverage
           
private  java.lang.String m_name
           
protected  IItem m_parent
           
private static Item.ItemMetadata METADATA
           
 
Fields inherited from interface com.vladium.emma.report.IItem
COVERAGE_BLOCK_COUNT, COVERAGE_BLOCK_INSTR, COVERAGE_CLASS_COUNT, COVERAGE_LINE_COUNT, COVERAGE_LINE_INSTR, COVERAGE_METHOD_COUNT, NUM_OF_AGGREGATES, PRECISION, TOTAL_BLOCK_COUNT, TOTAL_BLOCK_INSTR, TOTAL_CLASS_COUNT, TOTAL_LINE_COUNT, TOTAL_METHOD_COUNT, TOTAL_SRCFILE_COUNT
 
Constructor Summary
SrcFileItem(IItem parent, java.lang.String name, java.lang.String fullVMName)
           
 
Method Summary
 void accept(IItemVisitor visitor, java.lang.Object ctx)
           
protected  void addChild(IItem item)
           
 int getAggregate(int type)
           
 IItemAttribute getAttribute(int attributeID, int unitsID)
           
 int getChildCount()
           
 java.util.Iterator getChildren()
           
 java.util.Iterator getChildren(ItemComparator order)
           
 int getFirstLine()
           
 java.lang.String getFullVMName()
           
 IntObjectMap getLineCoverage()
           
 IItemMetadata getMetadata()
           
 java.lang.String getName()
           
 IItem getParent()
           
static IItemMetadata getTypeMetadata()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_name

private final java.lang.String m_name

m_fullVMName

private final java.lang.String m_fullVMName

m_lineCoverage

private IntObjectMap m_lineCoverage

m_firstLine

private int m_firstLine

METADATA

private static final Item.ItemMetadata METADATA

m_parent

protected final IItem m_parent

m_aggregates

protected final int[] m_aggregates
Constructor Detail

SrcFileItem

public SrcFileItem(IItem parent,
                   java.lang.String name,
                   java.lang.String fullVMName)
Method Detail

getName

public java.lang.String getName()

getFullVMName

public java.lang.String getFullVMName()

getFirstLine

public int getFirstLine()

getLineCoverage

public IntObjectMap getLineCoverage()

getAggregate

public int getAggregate(int type)
Specified by:
getAggregate in interface IItem
Overrides:
getAggregate in class Item

accept

public void accept(IItemVisitor visitor,
                   java.lang.Object ctx)

getMetadata

public final IItemMetadata getMetadata()

getTypeMetadata

public static IItemMetadata getTypeMetadata()

getChildCount

public final int getChildCount()
Specified by:
getChildCount in interface IItem

getParent

public final IItem getParent()
Specified by:
getParent in interface IItem

getChildren

public final java.util.Iterator getChildren()
Specified by:
getChildren in interface IItem

getChildren

public final java.util.Iterator getChildren(ItemComparator order)
Specified by:
getChildren in interface IItem
Parameters:
order - [null is equivalent to no sort]
Returns:

getAttribute

public final IItemAttribute getAttribute(int attributeID,
                                         int unitsID)
Specified by:
getAttribute in interface IItem

addChild

protected void addChild(IItem item)