|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cppast.AbstractVisitor cppncss.counter.AbstractCounter
public class AbstractCounter
Factorizes counters common behaviours.
Constructor Summary | |
---|---|
AbstractCounter(java.lang.String label,
CounterObserver observer)
Create an abstract counter. |
Method Summary | |
---|---|
void |
flush(java.lang.String item,
int line)
Notify the end of a measure. |
protected void |
increment()
Increments the counter. |
Methods inherited from class cppast.AbstractVisitor |
---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cppast.ParserVisitor |
---|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Constructor Detail |
---|
public AbstractCounter(java.lang.String label, CounterObserver observer)
label
- the name of the measureobserver
- a counter observerMethod Detail |
---|
public final void flush(java.lang.String item, int line)
flush
in interface Counter
item
- the item measuredline
- the location of the itemprotected final void increment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |