com.vladium.emma.report
Class MethodItem

java.lang.Object
  extended by com.vladium.emma.report.Item
      extended by com.vladium.emma.report.MethodItem
All Implemented Interfaces:
IItem

public final class MethodItem
extends Item

Author:
Vlad Roubtsov, (C) 2003

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vladium.emma.report.Item
Item.ItemMetadata
 
Field Summary
private  java.lang.String m_descriptor
           
private  int m_firstLine
           
private  int m_ID
           
private  java.lang.String m_name
           
private  java.lang.String m_userName
           
private static Item.ItemMetadata METADATA
           
 
Fields inherited from class com.vladium.emma.report.Item
m_aggregates, m_parent
 
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
MethodItem(IItem parent, int ID, java.lang.String name, java.lang.String descriptor, int firstLine)
           
 
Method Summary
 void accept(IItemVisitor visitor, java.lang.Object ctx)
           
 int getAggregate(int type)
           
 int getFirstLine()
           
 int getID()
           
 IItemMetadata getMetadata()
           
 java.lang.String getName()
           
static IItemMetadata getTypeMetadata()
           
 
Methods inherited from class com.vladium.emma.report.Item
addChild, getAttribute, getChildCount, getChildren, getChildren, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_ID

private final int m_ID

m_name

private final java.lang.String m_name

m_descriptor

private final java.lang.String m_descriptor

m_firstLine

private final int m_firstLine

m_userName

private transient java.lang.String m_userName

METADATA

private static final Item.ItemMetadata METADATA
Constructor Detail

MethodItem

public MethodItem(IItem parent,
                  int ID,
                  java.lang.String name,
                  java.lang.String descriptor,
                  int firstLine)
Method Detail

getName

public java.lang.String getName()

getID

public int getID()

getFirstLine

public int getFirstLine()

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()