abstract class Item extends java.lang.Object implements IItem
Modifier and Type | Class and Description |
---|---|
protected static class |
Item.ItemMetadata |
Modifier and Type | Field and Description |
---|---|
protected int[] |
m_aggregates |
private java.util.List |
m_children |
protected IItem |
m_parent |
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
Modifier and Type | Method and Description |
---|---|
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) |
IItem |
getParent() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getMetadata, getName
protected final IItem m_parent
protected final int[] m_aggregates
private final java.util.List m_children
Item(IItem parent)
public final int getChildCount()
getChildCount
in interface IItem
public final java.util.Iterator getChildren()
getChildren
in interface IItem
public final java.util.Iterator getChildren(ItemComparator order)
getChildren
in interface IItem
order
- [null is equivalent to no sort]public final IItemAttribute getAttribute(int attributeID, int unitsID)
getAttribute
in interface IItem
public int getAggregate(int type)
getAggregate
in interface IItem
protected void addChild(IItem item)