org.cdlib.xtf.lazyTree
Class ProfilingListener.ProfileCount

Object
  extended by ProfilingListener.ProfileCount
Enclosing class:
ProfilingListener

public static class ProfilingListener.ProfileCount
extends Object

Simple data structure to keep track of counts.


Field Summary
 int count
          Count of how many nodes were referenced to serve this instr
 int lineNum
          Line number of the instruction within the XSLT file
 HashMap nodes
          Map of each node hit by this instruction
 String systemId
          ID representing the XSLT file of the instruction
 
Constructor Summary
ProfilingListener.ProfileCount()
          Construct an empty ProfileCount
ProfilingListener.ProfileCount(String systemId, int lineNum)
          Construct a ProfileCount referencing a specific instruction
 
Method Summary
 boolean equals(Object other)
          Determine if this ProfileCount is the same as another
 int hashCode()
          Obtain a hash code so that ProfileCounts can be stored in a map
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemId

public String systemId
ID representing the XSLT file of the instruction


lineNum

public int lineNum
Line number of the instruction within the XSLT file


count

public int count
Count of how many nodes were referenced to serve this instr


nodes

public HashMap nodes
Map of each node hit by this instruction

Constructor Detail

ProfilingListener.ProfileCount

public ProfilingListener.ProfileCount()
Construct an empty ProfileCount


ProfilingListener.ProfileCount

public ProfilingListener.ProfileCount(String systemId,
                                      int lineNum)
Construct a ProfileCount referencing a specific instruction

Method Detail

hashCode

public int hashCode()
Obtain a hash code so that ProfileCounts can be stored in a map

Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Determine if this ProfileCount is the same as another

Overrides:
equals in class Object