javassist.runtime
Class Cflow
java.lang.Object
java.lang.ThreadLocal
javassist.runtime.Cflow
public class Cflow
- extends ThreadLocal
A support class for implementing $cflow
.
This support class is required at runtime
only if $cflow
is used.
- See Also:
CtBehavior.useCflow(String)
Constructor Summary |
Cflow()
|
Method Summary |
void |
enter()
Increments the counter. |
void |
exit()
Decrements the counter. |
protected Object |
initialValue()
|
int |
value()
Returns the value of the counter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cflow
public Cflow()
initialValue
protected Object initialValue()
- Overrides:
initialValue
in class ThreadLocal
enter
public void enter()
- Increments the counter.
exit
public void exit()
- Decrements the counter.
value
public int value()
- Returns the value of the counter.
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.