|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcppncss.measure.Measure
public final class Measure
Stores a result measure.
| Constructor Summary | |
|---|---|
Measure(java.lang.String item,
java.lang.String filename,
int line,
int count)
Create a measure. |
|
| Method Summary | |
|---|---|
void |
accept(MeasureObserver observer)
Accept a visitor. |
int |
compareTo(java.lang.Object object)
|
java.lang.String |
toString()
|
void |
update(java.lang.String item,
java.lang.String filename,
int line,
int count)
Add a measure value to the recorded values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Measure(java.lang.String item,
java.lang.String filename,
int line,
int count)
item - the name of the measured itemfilename - the name of the file containing the itemline - the location of the item within the filecount - the value of the measure| Method Detail |
|---|
public void update(java.lang.String item,
java.lang.String filename,
int line,
int count)
If the item name does not match the measure the value is not recorded.
item - the item namefilename - the file name of the itemline - the location of the itemcount - the measure to recordpublic void accept(MeasureObserver observer)
observer - a measure observerpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||