Class Cflow
- java.lang.Object
-
- java.lang.ThreadLocal<Cflow.Depth>
-
- org.hotswap.agent.javassist.runtime.Cflow
-
public class Cflow extends ThreadLocal<Cflow.Depth>
A support class for implementing$cflow. This support class is required at runtime only if$cflowis used.- See Also:
javassist.CtBehavior#useCflow(String)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCflow.Depth
-
Constructor Summary
Constructors Constructor Description Cflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter()Increments the counter.voidexit()Decrements the counter.protected Cflow.DepthinitialValue()intvalue()Returns the value of the counter.-
Methods inherited from class java.lang.ThreadLocal
get, remove, set, withInitial
-
-
-
-
Method Detail
-
initialValue
protected Cflow.Depth initialValue()
- Overrides:
initialValuein classThreadLocal<Cflow.Depth>
-
enter
public void enter()
Increments the counter.
-
exit
public void exit()
Decrements the counter.
-
value
public int value()
Returns the value of the counter.
-
-