|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.tracing.Counter
The functional part of the counting aspect: a counter object.
This component is used by the SimpleCountingWrapper and the OptimizedCountingWrapper to count the invocations performed on the counted methods.
SimpleCountingWrapper
,
OptimizedCountingWrapper
Constructor Summary | |
Counter()
|
Method Summary | |
int |
get()
Gets the counter value. |
void |
incr(int value)
Increments the counter with a given value. |
void |
printCounter()
Print the counter in System.out . |
void |
set(int value)
Sets the counter value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Counter()
Method Detail |
public void incr(int value)
public void set(int value)
value
- the new counter valueget()
,
incr(int)
public int get()
set(int)
,
incr(int)
public void printCounter()
System.out
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |